Hi to all,
I wanted to try clang with some test projects, but I saw a weird behavior. When I set the clang as default compiler everything is fine and the program compiles correctly. The board I am using is a STM32F1 discovery and it runs perfectly. SInce I am stydiing how the debugger works, I set later the assembler to clang. Here is where problems come. The program compiles correctly but when I launch the debugger and run the program it goes IMMEDIATELY into Hardfault Handler. No matter what I do, the first instruction the program executes is to go into Hardfault. If the Assembler is set to GCC everything is fine, but no way to get the program run with clang assembler.
I did also a test with the most simple program "Hello World" but no way... Do you have some idea on this problem ? Do I need to set some flags?
Please sign in to leave a comment.