This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Cannot step through c code source, only disassembly

I cannot step through source c code, only disassembly. This only applies to custom source, such as main, that appear not in the SDK file folder but the code that resides in the same relative file folder as with all the examples, that is, 3 levels below the project folder. In options all the path names are provided to the relevant SDK folders, but also to the custom source folder (ie, ../../../). When i set a breakpoint in main() for example, the code breaks at the breakpoint but then if I "step into" it always goes to the disassembly window. Using SES.

Parents Reply
  • Hi, 

    As far as I know, the segger jumps into disassembly, if it was not able to figure out where the source files for that part of the code section is. 

    In your case, if you are stepping one line in the same source file, then it is a bit strange that it jumps into disassembly.

    1. Make sure that there are no unintentional breakpoints set in the disassembly code.
    2. Understand what lies at the address of the disassembly code where the execution jumps to. 
    3. If the assembly instruction does not show any jump to the code section of the disassembly section, then it could be a segger IDE bug, please contact them through forum do understand more.

    -Amanda H.

Children
No Data
Related