Question
Hard Fault when accessing dwt control register
Posted on April 04, 2014 at 00:54
Hello!
I would like to add watchpoints from application to DWT periphery on stm32f100, which would then trigger DebugMon_Handler to perform some diagnostic task. I have already written a simple driver which does that. The driver works when using GNU toolchain. Unfortunately, when trying to import the same code to Keil (uVision 4) HardFault occurs. The fault occurs when CoreDebug->DEMCR is accessed. Does anyone have any clues what might be wrong? Thanks. Bojan #dwt-keil-stm32f100-watchpoint