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

Running ANT IO demo on nRF52840 DK, using to developement kit boards.

Good day

I'm trying to run the ANT IO demo using two nRF52840 DKs. In order to do that I am trying to migrate the example from softdevice s212 to s340. I am currently using Segger Embeded Studio and the SDK v16.0.0 on windows 7.  In other similar questions I have seen that only two steps are needed in order to achieve that:

1. Set the user defined directories to the correct softdevice. I have changed the configuration as shown in the image.

2. Set the correct values to FLASH start and RAM start in the "set section placement macros". In this case I set them as suggested in this tutorial

The solution can be compiled and  uploaded to the boards, but there is no evidence that they are communicating. 

I have not been able to get any output on the debug terminal to verify if there is any incorrect adjustments to the memory settings. I have already enabled NRF_LOG_BACKEND_RTT using CMSIS configurator yet there is still no output on the debug terminal. 

I would like to know if there is any additional step that I have not taken into consideration for the debugger and the project to work correctly?

Thanks In advance,

Guillermo

  • Update:

    I realized that my memory adjustments did not meeted this conditions "Edit the values RAM_START and FLASH_START, note that FLASH_SIZE should not be larger than (FLASH_PH_SIZE -  FLASH_START), and that (RAM_SIZE + RAM_START) should not be larger than (RAM_PH_START + RAM_PH_SIZE)." I corrected the values as follows:

    But the examples are still not working as expected. 

  • Hi,

    It can be pretty much anything at this point. For instance are you sure the correct softdevice is programmed, if you single step the application code does it run to main(), is it possible to single step the code to check where it fails, and/or trigger hardfault? Have you considered taking one of the examples made for the S340 + nRF52840 (e.g. pca10056), and include the application specific files from your S212 project, instead of modifying the S212 project to "become" an S340?

    Best regards,
    Kenneth

  • Hi Kenneth,

    Thanks for your response. I solved the problem a few minutes ago. I had not modified the board definition header files. After replacing the content of "pca10040.h" with the content of "pca10056.h" the example worked fine. The problem was that the LEDs and push-buttons are maped differently in the nRF52840 compared to other boards. Probably, as you said, including the application files to a s340 project would have been a better aproach. 

Related