This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
s340:platformio_ide_integration_for_the_nrf52840_feather_express_with_s340 [2020/03/29 22:45] orrmany [Adding S340 support to Plaform IO] |
s340:platformio_ide_integration_for_the_nrf52840_feather_express_with_s340 [2020/03/29 22:57] orrmany [Adding S340 support to Plaform IO] |
||
---|---|---|---|
Line 104: | Line 104: | ||
tools.bootburn.bootloader.file={runtime.platform.path}/bootloader/{build.variant}/{build.variant}_bootloader-0.3.0_{build.sd_name}_{build.sd_version} | tools.bootburn.bootloader.file={runtime.platform.path}/bootloader/{build.variant}/{build.variant}_bootloader-0.3.0_{build.sd_name}_{build.sd_version} | ||
</code> | </code> | ||
- | + | - Add the S340 API headers to ''.../.platformio/packages/framework-arduinoadafruitnrf52/cores/nRF5/nordic/softdevice/''. | |
- | Now you should be ready to rock. Restart PlatformIO IDE and select ''Adafruit Bluefruit Feather nRF52840 Express w.ANT'' as your board type :) | + | - Make ''s340_nrf52_6.1.1_API'' and the corresponding dir tree below it: Copy the ''include '' subdirectory of the S340 SoftDevice under this ''s340_nrf52_6.1.1_API'' subdirectory:<code txt>.../s340_nrf52_6.1.1_API |
+ | └── include | ||
+ | ├── ant_error.h | ||
+ | ├── ant_interface.h | ||
+ | ├── ant_parameters.h | ||
+ | ├── ble.h | ||
+ | ├── ble_err.h | ||
+ | ├── ble_gap.h | ||
+ | ├── ble_gatt.h | ||
+ | ├── ble_gattc.h | ||
+ | ├── ble_gatts.h | ||
+ | ├── ble_hci.h | ||
+ | ├── ble_l2cap.h | ||
+ | ├── ble_ranges.h | ||
+ | ├── ble_types.h | ||
+ | ├── nrf52 | ||
+ | │ └── nrf_mbr.h | ||
+ | ├── nrf_error.h | ||
+ | ├── nrf_error_sdm.h | ||
+ | ├── nrf_error_soc.h | ||
+ | ├── nrf_nvic.h | ||
+ | ├── nrf_sd_def.h | ||
+ | ├── nrf_sdm.h | ||
+ | ├── nrf_soc.h | ||
+ | └── nrf_svc.h | ||
+ | </code> | ||
+ | - Go to ''bootloader/feather_nrf52840_express''. You will find ''feather_nrf52840_express_bootloader-0.3.0_s**1**40_6.1.1.zip'' and ''feather_nrf52840_express_bootloader-0.3.0_s**1**40_6.1.1.hex'' here. Now copy the corresponding files or s340 as ''feather_nrf52840_express_bootloader-0.3.0_s**3**40_6.1.1.hex'' and ''feather_nrf52840_express_bootloader-0.3.0_s**3**40_6.1.1.zip'' from where you have built the modified bootloader with S340 (see page [[arduino:s340_softdevice_adafruit_nrf52840_feather_express|S340 SoftDevice & Adafruit nRF52840 Express Feather]] about how to build it). That is, the directory ''bootloader/feather_nrf52840_express'' should look like this<code txt> | ||
+ | .../feather_nrf52840_express | ||
+ | ├── feather_nrf52840_express_bootloader-0.2.1_s140_6.1.1.zip | ||
+ | ├── feather_nrf52840_express_bootloader-0.2.1_s140_6.1.1.hex | ||
+ | ├── feather_nrf52840_express_bootloader-0.3.0_s340_6.1.1.hex | ||
+ | └── feather_nrf52840_express_bootloader-0.3.0_s340_6.1.1.zip | ||
+ | </code> | ||
+ | Now you should be ready to rock. Restart PlatformIO IDE and select ''Adafruit Bluefruit Feather nRF52840 Express S340'' as your board type :) |