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

SDK 8.1 debugging fail

[edit] This problem is solved! The problem is from project target. I am using uvision5, but I opened the uvision4 project. (\arm4...) Now I am using the example under \arm5_no_packs, and every things work well!! I hope that other developers don't make this mistake...

Hi Nordics!

I am trying to develop ANCS device with SDK 8.1, but I have some problem to debug.


This are my environments.

Board: custom board.

chip: nrf51822AA

SDK 8.1

SD 8.0.0

Debugger: J-link EDU


I opened the project ble_app_ancs_s110_pca10028.uvproj

,and I changed follows.

  1. Device

image description

  1. Memory area

image description

But I can't debug with this message.

image description

I thins this ancs example target is nrf51422 s110 and pca10028.

Is it possible that I use this example with 51822AA chip?

  • I get this message too when my custom board is unpowered and I attempt to flash new firmware into it. Make sure Keil can see the target CPU (listed as SWD 0x0BB11477 on mine):

    image description

    image description

    If you don't see the target CPU, check all the connections between your Keil host and the target device.

  • I can download well.

    But I can not debug.

    My board is power on, and every line is not disconnected.

    This is my debugger set up.

    image description

    image description

    image description

    image description

    [edit] I put the programming algorithm.

    debugging mode is started now.

    But I think address range is not fit.

    It doesn't start from main function.

    image description

    image description

  • this problem is happen when I test it with pca10001. I guess it occurs from RAM size because of new softDevice(8.0.0), and this example target 51422AC but my chip is 51822AA.

  • So now you are able to program you example onto your board, but not debug? Can you see that the example is actually working (without running in debug mode)? Would it help to turn down the Optimization level to 0? The example works fine on my PCA10001 board, but it is a little hard to follow the debugger when Optimization is set to level 3. Setting it to 0 makes it easier.

  • This problem is solved!

    The problem is from project target.

    I am using uvision5.

    But I opened the uvision4 project. \arm4...

    Now I am using the example under \arm5_no_packs, and every things work well!!

    I hope other developer don't make this mistake like me..

Related