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

Debug Memory Error about nRF51822 with SEGGER Embedded Studio

@Michael Dietz

Hi, Michael & everyone. I'm using nRF51822 now. I followed the post Segger Embedded Studio & import the beacon example in SDK 10.0.0 . In Keil, the memory is like this: image description

Then, I changed the "flash_placement.xml" flash: start="0x18000", RAM: start="0x20002000" and set Loader Option located at the S110 8.0.0 hex in the SDK 10.

After doing that, when I build & debug, the following window will jump out. image description

I don't know how to set the flash & memory correctly about nRF51822 (PCA10028). Is there a guide about this?

Thanks.

Parents
  • Only one of the two projects you got when importing from Keil should be used. This is described in the updated post. I have tried folliwing the guide, using the beacon example from SDK 10 with S110 for the nRF51, and it seems to work. There are some minor changes from the procedure outlined in the post (as it uses a different SDK version, project and target). The addresses should be as you have already stated, and you can ignore the step with retarget.c.

    Can you try following the updated blog post, and see if you still run into problems?

Reply
  • Only one of the two projects you got when importing from Keil should be used. This is described in the updated post. I have tried folliwing the guide, using the beacon example from SDK 10 with S110 for the nRF51, and it seems to work. There are some minor changes from the procedure outlined in the post (as it uses a different SDK version, project and target). The addresses should be as you have already stated, and you can ignore the step with retarget.c.

    Can you try following the updated blog post, and see if you still run into problems?

Children
Related