This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SDK7.1.0 ble_ant_hrm_app PCA10028

Hey,

I just got my PCA10028 board was trying different examples to see if everything is working before I start with my own application. As my application will be using the S310 Softdevice I wanted to try the ble_ant_hrm to see if everything works. As I am already an ANT+ Adopter I have the Network Key and modified the example so I can use my heart rate belt for the test.

But I just can't get the code to run. Everything compiles without errors and I can program the board. I tried to connect my iPhone to the board first but it does not advertise itself so I can't connect my phone through the nordic heartrate app. I tried waking up the board through pushing one of the buttons but it won't work. Am I missing some #defines or do I have to connect the heart rate belt first to get the bluetooth part running?

Thanks for you help.

Edit:

I just tested it with softdevice 2.0.1 before I tested with 2.0.0 but it won't advertise.

I compiled it with gcc and used nRFJProg on my mac for programming. Perhaps I got something wrong here.

The softdevice is programmed at address 0 and the application at address 0x1d000. I didn't install gdb properly at this point as the first thing was try to get the examples compiling on the mac and get those to work. I can try to install Keil on a windows machine and test it there.

Parents
  • The linker settings are not set correctly for s310 with GCC in SDK 7.1.0. I've reported this internally, and it will be fixed in the upcoming release. Sorry for the inconvenience. However, I see from your last edit that you've already changed the flash start address to the correct value. Did you also make sure that the RAM start address was set to 0x20002400?

    The application worked on my end with GCC and the correct linker settings.

    In the meantime you can replace the linker file in ..\nRF51_SDK_7.1.0\components\toolchain\gcc with the attached one.

    Attachment: gcc_nrf51_s310_xxac.ld

Reply
  • The linker settings are not set correctly for s310 with GCC in SDK 7.1.0. I've reported this internally, and it will be fixed in the upcoming release. Sorry for the inconvenience. However, I see from your last edit that you've already changed the flash start address to the correct value. Did you also make sure that the RAM start address was set to 0x20002400?

    The application worked on my end with GCC and the correct linker settings.

    In the meantime you can replace the linker file in ..\nRF51_SDK_7.1.0\components\toolchain\gcc with the attached one.

    Attachment: gcc_nrf51_s310_xxac.ld

Children
No Data
Related