Hello everyone: I never wrote on Stackoverflow, but I have always been asking for help for many years.
I have a question and a problem regarding debugging in eclipse using the STLINK STM32 Discovery board. I looked online for an answer and followed many tutorials, but I still can't get it to work correctly. I will try to ask here.
I set up the eclipse environment correctly with my compiler and gdb server (as far as I know). First, I make sure the server is running before pushing debug in eclipse. I am using atllic STLINK gdb server. I tried a lot of exe-ebi-gdb exe type while debugging, but they all seem to be the same. My debug configuration is configured to use arm-none-eabi-gdb on port 61234 (Attolic). When I press debug, the program starts correctly and goes into the debug view in eclipse. The program loads correctly on my search bar. I know this because I got debugging to work partially and went through the code without failing in some cases, depending on the compiled code and launch debugging configuration settings. The code is a simple LED indicator on the board. If I unplug the USB cable and plug it back in,my code works fine because the LEDs light up, so we know that the environment is probably configured correctly, because the code is loaded to run through eclipse commands.
The problem is the actual debugging steps. 99% of the time when the arm-none-eabi-gdb.exe program will work when in the debug view after a few "steps in" with the debugger commands at the top of eclipse. After the first line of my main function is reached, I try to enter the first line, and I get the arm-eabi.exe program window crash. The debug console in eclipse reads the gdb error: ....... dwarf2: Internal error C10xx is an unknown CFA rule. Now ... depending on how I set the parameters in the debug configuration in relation to the launch tab, different parameters give different results, and the following parameters were switched: Halt, resume, break point at: main, etc. This failure also seems to depend on the code compiled in the main function.
, , gdb server arm-none-eabi-gdb.exe? , Atollic Keil sourcery IAR, Attollic gdb service + arm-none-eabi-gdb ? - ? , EVAL IAR. workbench, STLINK, .
CFA? ? - ? , IAR cstartup.
.
,
LostTime77
share