Hello,
I caused a hardfault error and triggered the HardFault_Handler in "hardfault_handler_gcc.c". But instead seeint its source, I could only see the message no source available for "0x0" in eclipse.
What went wrong ?
Best regards,
Hello,
I caused a hardfault error and triggered the HardFault_Handler in "hardfault_handler_gcc.c". But instead seeint its source, I could only see the message no source available for "0x0" in eclipse.
What went wrong ?
Best regards,
Hi,
Try to remove the compiler optimization. In the makefile: CFLAGS += -Wall -Werror -O0 -g3
Actually, this is my current setting in the makefile. However, this did not solve the problem.
Hi, I believe this devzone post should answer your question. Quote RK:
the entire source of the hardfault handler is that piece of assembler on the right hand side which does nothingbut branch to itself forever. of course there's no source for the hardfault handler - it's not a C function.
Why does it work in the KEIL uvision environemnt ? There I am able to step through the "hardfault_handler_keil.c" until I get into the HardFault_c_handler of "hardfault_implementation.c"
I guess there are some settings in the Eclipse project or in Eclipse environment itself which are not right.
GCC/eclipse is a bit more demanding to get working compared to Keil where everything works out of the box, but should work quite nicely once you get it up and running.
The hardfault handler is declared in the startup file, but CDT does not parse this file since it's an assembly file. Note that you can re-declare it in your application. ( WEAK declaration in startup)
Steps to incude asm files in CDT: