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?

Parents
  • 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

  • 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.

Reply
  • 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.

Children
No Data
Related