2019-05-14 03:52 AM
When I upload my code the controller it was working fine for few cycles after that it gets stuck somewhere else and the code is not running.
I checked it with the debugging mode in that when I run the code is working fine and when it gets struck I stopped the program the breakpoint appears into the hardfault_handler.
could someone help me oi solve the issue
if I tried to upload the same code into another controller if was working good
Thanks in advance
Solved! Go to Solution.
2019-05-18 02:36 AM
Hi thanks for your response I have found the solution to my problem it was dude to memory overflow in UART buffer variable which i used that's why i got this issue..Now after clearing the buffer when it is full it was working fine.
2019-05-17 04:15 AM
Hello,
you need to provide more details if you want to obtain help about your problem.
What toolchain are you using? Most toolchain vendors provide tips to debug hardfault issues: check on the website of your toolchain.
Try to identify what instruction generated the hardfault and the reason of the fault by looking at the device SCB registers.
you may find some helping techniques described in AN4989.
2019-05-17 08:10 AM
Wrong clocks/expectations.
Incorrect Flash wait state settings.
Have your Hard Fault Handler report useful information so you can look at what the prior couple of instructions were doing.
The processor provides many details about faults, use them.
Same board? or different design.
Check clock frequencies, externally, and output via PA8 MCO pin.
Check voltages/capacitors on VCAP pins.
2019-05-18 02:36 AM
Hi thanks for your response I have found the solution to my problem it was dude to memory overflow in UART buffer variable which i used that's why i got this issue..Now after clearing the buffer when it is full it was working fine.