This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

TRANSMISSION VIA UART OF INFORMATION GOTTEN VIA ANT+

Hello all!

I'm using a nRF52 DK, which has been already programmed with the soft device s212, since my interest is to be able to connect to sensors using ANT+. 

My purpose is get the information from these sensors and send it via UART. For this, I use libraries provided in SDK version 16.0.0. the project is built correctly. 

The problem comes when I try to flash de board. An error occurs, saying that the program is trying to be allocated in a part of the memory already used by the soft device.

What can I do to sort out this issue?

Thank you very much in advanced!!

  • Hello,

    What example/project did you start with? Did that project initially use the s212 softdevice? If no, did you allocate memory for the softdevice? 

    If not, do you know how to do it? If not, what IDE do you use? Segger Embedded Studio (SES)?

    If the answer to the questions above was mostly "no", then you need to remember to place the application after the softdevice. If you use Segger Embedded Studio:

    1. Check the size of the softdevice, and where it is programmed. If you program it using nrfjprog, you can see, using nRF Connect for Desktop->Programmer, where the softdevice is located:

    It goes up to 0xE91C. 

    I see in the ANT examples, they start the flash for the application on 0x12000, so it leaves a little gap, but if you start with this to see that it is working, and you can move it down if you need more flash for your application later. 

    To set it in SES:

    Best regards,

    Edvin

  • Thank you very much!!! I've been able to flash the board.

    It's first time I work with this IDE, and I didn't know how to do it. 

    Regards.

Related