BMD-360 EVK debugging issue

Hello,

I'm starting development with  nordic arm processors. Therefore we purchased the BMD-360 EVK. This board features the NRF52811 processor and has the same pins as the PCA10040. I'm currently trying to setup a firmware project and faced some issues there.

i'm using segger embedded studio v6.32a and nordic sdk 17.1.0

i copied the "blinky" exanmple from the example forlder and i'm trying to change the project for my board.

here's what i've done so far:

the project was not compiling by default so i had to change the "flash_placement.xml"

- i removed size="0x4" there and the project compiled

<ProgramSection alignment="4" load="Yes" name=".text" size="0x4" />
<ProgramSection alignment="4" load="Yes" name=".rodata" size="0x4" />

- in segger embedded studio i changed some project settings to switch to the NRF52811  processor

i can connect to the board via jlink and i can upload new sketches. But i never reach a breakpoint in the code so i guess there are still isuues with the project file. If i debug the program always stops at the same point before hitting any breakpoint in the code.

does anybody know why the firmware sketch is not executed?

best,

Parents
  • Hi,

    Please see Developing for nRF52811, particularly the section Transferring the project to nRF52811 hardware. This is unfortunately not 100% complete, but contains the most important points.

    Looking at the configuration changes you have described I notice the following:

    1. The changes you have described done to flash_placement.xml does not make sense to me, and should be reverted. If the project does not compile without it, we need to look at the build error and see if we can make sense of it.
    2. The linker settings does not reflect the flash and RAM size. That most likely does not matter, but it depends a bit on where the linker places things. So you should adjust that, and ensure that the start address + size of both ROM and RAM is within the physically available memory (192 kB / 24 kb).

    The main issue though, seems to be this: You are using an application that does not depend on the SoftDevice, so it should start at address 0. But your FLASH_START is 0x26000, which would only be correct if you had a SoftDevice with that size first in the flash. This does not seem to be the case (at least you do not use it), and if so, the memory at address 0 is uninitialized and the CPU will not have any code to execute. So, you need to sett FLASH_START in the linker settings to 0.

  • Hello,

    thank you for the answer. changing the adresses solved the issue.

    best,
    martin

Reply Children
No Data
Related