2017-09-08 02:38 AM
Simply I want to know when the hardfault occured(code statement)?I cant use debug so If I try to read program counter in hardfault function this returns me hardfault program counter.How can I know where Hardfault occurs by reading its program counter?So I must find previous statement when It is in the hardfault?At least I must know next statement(program counter's) in hardfault in case it is impossible to know previous statement.
#program-counterSolved! Go to Solution.
2017-09-08 03:24 AM
This is a pretty good description on how to work 'backwards' on hardfaults, including how to decode the SCB registers:
https://duckduckgo.com/?q=keil%20hardfault%20pdf+site:www.keil.com&t=hb
http://www.keil.com/appnotes/files/apnt209.pdf
PS: Links use to make post go into moderation ...
2017-09-08 03:24 AM
This is a pretty good description on how to work 'backwards' on hardfaults, including how to decode the SCB registers:
https://duckduckgo.com/?q=keil%20hardfault%20pdf+site:www.keil.com&t=hb
http://www.keil.com/appnotes/files/apnt209.pdf
PS: Links use to make post go into moderation ...
2017-09-08 05:56 AM
[shameless self-advertisement]... and for those who like one-page cheatsheets,
...[/shameless self-advertisement]