lpcware

HardFault_Handler from FreeRTOS - why?

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by dpa on Sat Jul 28 11:41:05 MST 2012
Hi LPC Fans,

I've modified the freertos project in the NXP demos for LPC11xx. A task blinks an led if the value of a variable is !0. The variable value is toggled if we can take a binary semaphore that is given by an interrupt handler invoked by a button connected to a GPIO port. It all seems to work as expected, unless I press the button quickly, repeatedly, and then I end up in the HardFault_Handler. I'm new to the Cortex in general (I know the previous ARM arches) and M0 in particular. How do I debug this?

Best regards,
Dave

Outcomes