[SOLVED] Debugging Assembler project with J-Link Edu

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Debugging Assembler project with J-Link Edu

    Hello,

    I have created a Assembler project. I use a C/C++ template project and change the needed parts (linker script, processor, etc.). My project gets compiled and linked and I can start the debugger, but the breakpoints doesn´t work as I expected. I can place the breakpoint but the debugger doesn´t trigger at the breakpoint and the breakpoint is marked with a questionmark (see Screenshot).
    I change the following parts in the project settings:

    Code:
    • Generate Assembler Listing File - Yes
    • Always Rebuild - Yes
    • ARM Architecture - v6
    • ARM Core Type - ARM1136J-S
    • ARM FPU Type - VFP
    • Byte Order - Little
    • Use Manual Linker Script - Yes
    • Linker Script File - Path to script
    • Entry Point - _start
    • Linker - GNU
    Debugger:

    • Target Device - ARM11
    • Run To - _start
    • Startup Completion Point - _start
    And I can place breakpoints in the disassembly window. This breakpoints get triggered after I restart the debug session. Is this the normal behaviour?

    Thanks and greetings
    Daniel
    Images
    • Breakpoint.png

      9.48 kB, 451×251, viewed 317 times
  • Hello,

    Thank you for your inquiry.
    A question mark on a breakpoint usually indicates that for this code part no instructions have been compiled and it is not part of the currently debugged application.
    This can be due to compiler optimization, not using the file in the project, preprocessor exclusion etc.
    Make sure this code/file is linked to the application image and you should be able to set a breakpoint.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.