Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Proper memory settings for S340 SoftDevice Bike Power TX Example?

Currently working on flashing the bike power tx example to my Arduino Nano 33 which uses a NINA-B306 nRF52840. The device is wiped clean with only the s340 softdevice loaded. No bootloader is present. I have defined a custom board definition with nrf_gpio and have successfully flashed some other non-softdevice examples like Blinky. I believe my custom board definition is good, but I'm not fully confident.

When I flash the bike power tx example I start off by erasing the device. Then I flash the s340 softdevice. Finally I flash the bike power tx application via SES.

My Garmin 500 Edge does not receive any ANT+ data, so something is broken. Also two of my board LEDs are stuck in the on position. It could be my board definition, but it could also be my linker_section_placement_macros which are as follows:

FLASH_PH_START=0x0;
FLASH_PH_SIZE=0x80000;
RAM_PH_START=0x20000000;
RAM_PH_SIZE=0x10000;
FLASH_START=0x31000;
FLASH_SIZE=0x6e000;
RAM_START=0x20002000;
RAM_SIZE=0xf480"

I have read the guidelines on memory adjustments but I am still sort of lost. For example, if FLASH_SIZE > FLASH_PH_SIZE - FLASH_START, which one do I adjust? Also, what does the PH even stand for? I cannot find documentation on this unfortunately.

Parents Reply Children
Related