How can i monitor where an HardFault_Handler (for example) exception occured? which function, paramter or line rised this exception.. i think i would need to add a fuction to Handler functions so it will save the stack path to flash memory so i could watch it from the map file.
does it has to be an inline assembly function?
i would welcome any suggestion :)
thanks!
I think you'll find that article is using GCC - not Keil.
Inline assembler is very much an Implementation-Defined thing!
Take a look at the Keil App Note:
http://www.keil.com/appnotes/docs/apnt_209.asp