Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?

The zipped project attached to this blog doesn't say what SDK version it should work with - but it certainly doesn't work with v15.

https://devzone.nordicsemi.com/b/blog/posts/segger-embedded-studio-part-2-monitor-mode-debuggi

Having fixed the Include Paths (whose stupid idea was it to make them absolute?!), I can get the source to compile with SDK v15 - but the link fails:

cannot move location counter backwards (from fffffffffffffc00 to 0000000000000000)

The point at which this is flagged is:

__stack_load_start__ = __SRAM_segment_end__ - 1024;
.stack __SRAM_segment_end__ - 1024 (NOLOAD) : AT(__SRAM_segment_end__ - 1024)
{
__stack_start__ = .;
*(.stack .stack.*)
. = ALIGN(MAX(__stack_start__ + __STACKSIZE__ , .), 8);
}

What is wrong, and how to I fix it?

Parents
  • So I junked the example project, and just put the source files into a known-working SDK 15 Project.

    That seems to be working, but This blog has an additional J-Link command, not featured in the above-mentioned blog:

    mon exec SetMonModeVTableAddr=0x1f000


    Is that also necessary?

    I guess it would be needed in an application with a SoftDevice? I guess one would change the 0x1f000 to match the FLASH_START value?

    But that's a lot of guessing ...

Reply
  • So I junked the example project, and just put the source files into a known-working SDK 15 Project.

    That seems to be working, but This blog has an additional J-Link command, not featured in the above-mentioned blog:

    mon exec SetMonModeVTableAddr=0x1f000


    Is that also necessary?

    I guess it would be needed in an application with a SoftDevice? I guess one would change the 0x1f000 to match the FLASH_START value?

    But that's a lot of guessing ...

Children
No Data
Related