J-LinkGDB Server and Cortex-M3: mixed up registers

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

  • J-LinkGDB Server and Cortex-M3: mixed up registers

    Hello,

    I am trying to use the GDB server (V3.80a) with a CORTEX-M3 CPU (STM32). This does not work because the CPU registers seem to be mixed up:

    (gdb) monitor reg pc
    Reading register (R9 = 0x080060B8 )
    (gdb) monitor reg sp
    Reading register (R15 = 0x08000120)

    pc maps to R9 and sp to R15 but I expect it to be pc -> R15 sp -> R13.

    Is there a setting to change the mapping?

    Regards,

    Anton
  • Hello Anton,

    we have not yet tested the GDB Server with Cortex-M3.
    The register assignments for stack pointer and pc need to be different for Cortex-M3,
    so this certainly needs to be changed.

    We'll make these changes and create a new Beta version.

    Can you get in touch with support@segger.com so we can inform you when ready ?
    (We'll also post this here)

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