lpcware

Regarding Hard Fault Handler Issue

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by kuldip rajput on Wed Apr 15 00:00:41 MST 2015
Respected Sir,
  I am running the freertos_demo_1 example code provided by the freertos web resources for GPIO operation. With the gpio i am interfacing the tsop1738 sensor and LED, and the status of the GPIO_PIN register i need to send over another task. so i am using the queue mechanism for data transfer from gpio_task to other task. But while execution of the code it stop its execution at following code structure-


__attribute__ ((section(".after_vectors")))
void HardFault_Handler(void)
{
__asm volatile
(
" tst lr, #4\n"
" ite eq\n"
" mrseq r0, msp\n"
" mrsne r0, psp\n"
" ldr r1, [r0, #24]\n"
" ldr r2, handler_address_const\n"
" bx r2\n"
" handler_address_const: .word pop_registers_from_fault_stack\n"
);
}


I have attached the debug error message with this post.
Would anybody please help me regarding this. I will be very thankful to you!!!

Attachments

Outcomes