This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to access core register in c source file

I am using keil mdk arm 5 for controller stm32f0xx.i want to write hard fault handler which prints core resisters value before entering hard fault.i want to write handler in c.so i created one source file having same name as hardfault_handler and try to access sp register through asm keyword but its showing error that r0 and sp is undefined.how can i access core register in source file???

0