LPC2378 freertos
Trying to convert LPC2129 port rtos code to PLC2378(using keil compiler), for that i changed project startup file and all neccessary changes i did (means changing header file and IC name in project),but still its not working, when i am trying to run code then it hangs at DABt Handler instruction in startup file whose PC=0x0000004C so please suggest to come out of this problem
LPC2378 freertos
If you changed the start up code then you will probably have replaced
the vector table. Did you install the FreeRTOS interrupt handlers?
LPC2378 freertos
Thank you for quick responce
This is already available in startup file so i think thereis no need to add interrupt handler
still if you suggest to add interrupt handler then please guid me with few words in that way
Vectors LDR PC, ResetAddr
LDR PC, UndefAddr LDR PC, SWIAddr LDR PC, PAbtAddr LDR PC, DAbtAddr NOP ; Reserved Vector ; LDR PC, IRQAddr LDR PC, [PC, #-0x0120] ; Vector from VicVectAddr LDR PC, FIQ_Addr ResetAddr DCD ResetHandler UndefAddr DCD UndefHandler SWIAddr DCD SWIHandler PAbtAddr DCD PAbtHandler DAbtAddr DCD DAbtHandler DCD 0 ; Reserved Address IRQAddr DCD IRQHandler FIQAddr DCD FIQHandler UndefHandler B UndefHandler SWIHandler B SWIHandler PAbtHandler B PAbtHandler DAbtHandler B DAbtHandler IRQHandler B IRQHandler FIQHandler B FIQHandler ; Reset Handler
LDR PC, UndefAddr LDR PC, SWIAddr LDR PC, PAbtAddr LDR PC, DAbtAddr NOP ; Reserved Vector ; LDR PC, IRQAddr LDR PC, [PC, #-0x0120] ; Vector from VicVectAddr LDR PC, FIQ_Addr ResetAddr DCD ResetHandler UndefAddr DCD UndefHandler SWIAddr DCD SWIHandler PAbtAddr DCD PAbtHandler DAbtAddr DCD DAbtHandler DCD 0 ; Reserved Address IRQAddr DCD IRQHandler FIQAddr DCD FIQHandler UndefHandler B UndefHandler SWIHandler B SWIHandler PAbtHandler B PAbtHandler DAbtHandler B DAbtHandler IRQHandler B IRQHandler FIQHandler B FIQHandler ; Reset Handler
EXPORT Reset_Handler
Reset_Handler
LPC2378 freertos
You need to install the FreeRTOS handlers. Just copy how it is done in the vector table defined in the start up file included in the project you used as a base.
LPC2378 freertos
and one more thing LPC 2129 Demo code is working and same code i am converting in LPC 2378 in same compiler so i think there should not be interrupt handler issue
LPC2378 freertos
I think you are right, you are talking about changes in port.c file where ISR handlers defined
LPC2378 freertos
LPC2378 freertos
when i am debugging i found after scheduler start program hangs at “DAbt handler” i think it means tick is not working properly so i checked interrupt vector add tables for LPC2129 and LPC2378 and timer initialization also but i am not able to trace exact problem so please help…