Regarding Hard Fault Handler Issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Regarding Hard Fault Handler Issue

331 Views
lpcware
NXP Employee
NXP Employee
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!!!
0 Kudos
1 Reply

293 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Apr 15 00:12:09 MST 2015
In the first place, please see:

http://www.lpcware.com/content/faq/lpcxpresso/debugging-hard-fault

Regards,
LPCXpresso Support
0 Kudos