AnsweredAssumed Answered

Hard Fault when accessing dwt control register

Question asked by musizza.bojan on Apr 4, 2014
Latest reply on Apr 7, 2014 by musizza.bojan

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?