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

M3 Cortex

I'm using Keil uvison3 and the Ulink2 Debugger.

I have a board with device STM32F103CBT6. I have set up a project, and wrote a simple programme setting up the clocks and GPIO and switching on a LED. The programe run's fine untill i try to use Breakpoints or halt.

When i use either of these my programme jumps to the fault handler "HardFault_Handler" the hard_fault_status changes to 0x40000000.

I belive this is something to do with the Debug Halting Control and Status Register and C_DEBUGEN!? Have i simply missed a setting in the options for target or should i be writting to this register while debugging?

Thankyou

0