This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
s340:platformio_ide_integration_for_the_nrf52840_feather_express_with_s340 [2020/03/29 20:43] orrmany |
s340:platformio_ide_integration_for_the_nrf52840_feather_express_with_s340 [2020/03/29 20:51] orrmany [Adding S340 support to Plaform IO] |
||
---|---|---|---|
Line 28: | Line 28: | ||
* On Windows: ''%HOMEDIR%\.platformio\packages\framework-arduinoadafruitnrf52\bootloader\feather_nrf52840_express'' | * On Windows: ''%HOMEDIR%\.platformio\packages\framework-arduinoadafruitnrf52\bootloader\feather_nrf52840_express'' | ||
- Copy the bootloader .zip (''0.3.0_s340_6.1.1.zip'') and .hex (''0.3.0_s340_6.1.1.hex'') from the build directory of the freshly modified bootloader package here. | - Copy the bootloader .zip (''0.3.0_s340_6.1.1.zip'') and .hex (''0.3.0_s340_6.1.1.hex'') from the build directory of the freshly modified bootloader package here. | ||
+ | - Go to ''.../.platformio/packages/framework-arduinoadafruitnrf52/''. Modify ''boards.txt'' just like I did for the Arduino IDE. See sub-step "1" within the section [[s340:arduino_ide_integration_for_the_nrf52840_feather_express_with_s340#third_major_stepadd_s340_to_the_bsp|Second major step: replace the bootloader with the modified bootloader]] at the Arduino IDE adaptation page. | ||
+ | - While being at the same subdir also copy the ''adafruit_feather_nrf52840.json'' and name it ''adafruit_feather_nrf52840_s340.json''. Change the following entries:<code json> | ||
+ | "ldscript": "nrf52840_s340_v6.ld", | ||
+ | "softdevice": { | ||
+ | "sd_flags": "-DS340", | ||
+ | "sd_name": "s340", | ||
+ | "sd_version": "6.1.1", | ||
+ | "sd_fwid": "0x00B9" | ||
+ | }</code> | ||
- Go to ''.../.platformio/packages/framework-arduinoadafruitnrf52/cores/nRF5/linker''. Copy/duplicate the S140 linker script as nrf52840_s140_v6.ld. Modify the linker script memory settings just like I did for the Arduino IDE. See sub-step "2" within the section [[s340:arduino_ide_integration_for_the_nrf52840_feather_express_with_s340#third_major_stepadd_s340_to_the_bsp|Second major step: replace the bootloader with the modified bootloader]] at the Arduino IDE adaptation page. | - Go to ''.../.platformio/packages/framework-arduinoadafruitnrf52/cores/nRF5/linker''. Copy/duplicate the S140 linker script as nrf52840_s140_v6.ld. Modify the linker script memory settings just like I did for the Arduino IDE. See sub-step "2" within the section [[s340:arduino_ide_integration_for_the_nrf52840_feather_express_with_s340#third_major_stepadd_s340_to_the_bsp|Second major step: replace the bootloader with the modified bootloader]] at the Arduino IDE adaptation page. | ||
+ | - Modify ''.../.platformio/packages/framework-arduinoadafruitnrf52/platform.txt'' file because the Adafruit bootloader is now 0.3.0:<code bash> | ||
+ | # Bootloader version | ||
+ | # tools.bootburn.bootloader.file={runtime.platform.path}/bootloader/{build.variant}/{build.variant}_bootloader-0.2.13_{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> | ||
+ | |||
+ | Now you should be ready to rock. Restart PlatformIO IDE and select ''Adafruit Bluefruit Feather nRF52840 Express w.ANT'' as your board type :) |