Skip to main content
Visitor II
January 27, 2021
Question

Errors while debugging a project in STM32CubeIDE

  • January 27, 2021
  • 15 replies
  • 14018 views

Hello everyone,

I succeeded to import a project for a STM32F405 inside the STM32CubeIDE. It means i created an empty STM32Cube project and imported my own sources and Makefile. I succeeded to compile it and run a debug session after modifying the project and adding the debug flags in the different Makefiles of my project. The debug session works well, i can use live expression, and make step by step.

But when i reach one particular function, then i can't use any buttons like "Step over" or others. I can only pause the debug session and then i get this message : "Break at address "0x1fff36a8" with no debug information available, or outside of program code".

I checked in the memory map and saw that this is the system memory but i don't know why it goes there.

I also several time got this error : No source available for "(gdb[23].proc[42000].threadGroup[i1],gdb[23].proc[42000].OSthread[1]).thread[1].frame[0]"

Did anyone already dealed with those ?

I attach the configuration files of my project if anyone knows how to read them and could find the problem.

Let me know if any other information could be helpful.

Thanks for your answer,

Thomas

    This topic has been closed for replies.

    15 replies

    Visitor II
    February 1, 2021

    I will try to help, wait

    Visitor II
    February 1, 2021

    I get many compilation errors.

    TKopp.67Author
    Visitor II
    February 1, 2021

    Ah really it was working and sent it to one colleague and he could compile it. You imported it as STM32Cube project ? I will download it and try to compile it by myself. But thanks for the help anyway

    Visitor II
    February 1, 2021

    Without MSYS2 with proper package i can't help you. opencmsis have strange build system, it will be hard to proper implement this in cubeide. I don't like this type of libraries. Debuging software that use .a libraries always is much more difficult.

    With this build system, you are losing, many very useful eclipse (cubeide) functions.

    TKopp.67Author
    Visitor II
    February 1, 2021

    Really ? can you explain a litte bit more ? The libopencm3 is linkef from a .a file yes but we have all the sources and it seemed able during debugging session to jump into it's source code.

    Visitor II
    February 1, 2021

    Then, you have proper configuration, for this sources.

    Error: Cannot find the specified linker script. Check the linker settings in the build configuration.

    this is first error that i get.

    TKopp.67Author
    Visitor II
    February 1, 2021

    Strange, the specified linker is in the 0_sys folder and in the makefile

    Maybe it's the way you imported it so you did it as i explained ? (Import -> Import existing project into workspace -> select archive file) ?

    Sadly i don't have currently a colleague that can try to import it. If you did that, i will have to wait tomorrow to make someone else try it.

    Thanks anyway for your help :)

    TKopp.67Author
    Visitor II
    February 10, 2021

    Hello everyone, i just wanted to tell you that i succeeded a week ago to make it work. Instead of using the libopencm3 linker script, i use the autogenerated one from the IDE with the startup file. In the startup file, i included an irqhandler.h file which contains defines to "match" the names between my code using the libopencm3 and the interrupt names in the startup file. Just the startup file has to be with .S extension and not .s to force the preprocessor use.

    Now the debugging works fine.

    Still thanks everyone,

    Thomas