[ABANDONED] Breakpoint opens wrong source file

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

  • [ABANDONED] Breakpoint opens wrong source file

    I am using SES V4.18 Windows X64.

    The system I am developing has a Transmitter and a Receiver device. They share a lot of code (at a source code level only).
    I have the Receiver project open, compile the code, download it and set a breakpoint in some place.
    However, when the breakpoint hits, the source browser opens the wrong source .c file -- one that is not even included in this project, but is in the other project.
    The disassembler panel shows the correct code and line numbers (for the correct file), but I can't step through in the source code panel.

    Any idea what's going wrong?
  • Hello,

    Thank you for your inquiry.
    Such an issue is not known to us.
    From the error description it seems that symbol information might be missing from the application.
    Do you have some optimization level enabled for your project?
    Could you provide an example project for reproduction purposes?
    Do you get the same behaviour when debugging with Ozone?
    segger.com/products/development-tools/ozone-j-link-debugger/

    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.
  • If it helps, the problem files are called:
    HT4_USB_Commands.c (the correct file)
    HT4_Rx_Commands.c (the incorrect file, that is not even included in the Project)


    If I rename HT4_Rx_Commands.c to HT4_Rx_Cmds.c, the problem goes away.


    Surely the IDE can distinguish between the 2 original file names?
  • Hello,


    Damon Kelly wrote:

    Surely the IDE can distinguish between the 2 original file names?
    Usually yes, which is why I wrote that the issue is not known to us.

    Could you answer my remaining questions?


    SEGGER - Nino wrote:

    Could you provide an example project for reproduction purposes?
    Do you get the same behaviour when debugging with Ozone?
    segger.com/products/development-tools/ozone-j-link-debugger/

    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.