We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all, I tried to port one of RTX demos which is based on MCB2300 to my LPC2888 board my modifying the RTX_Config.c And I used my old startup.s (with modification of importing SWI_Handler).
But as soon as I called the os_sys_init() function, the ARM7 core hangs on this line of startup.s PAbt_Handler B PAbt_Handler
From my googling, I found out that Prefetch Abort exception occurs when the processor tried to read an instruction in a non existing memory address, What did I do wrong?
Thanks
Here is my disassembly tracks: inside os_sys_init() function call:
0x10401B5C E28FC001 ADD R12,PC,#0x00000001 0x10401B60 E12FFF1C BX R12 os_sys_init_user: 0x10401B64 B570 PUSH {R4-R6,LR} 0x10401B66 4C1E LDR R4,[PC,#0x0078] 0x10401B68 6060 STR R0,[R4,#0x04] {VALUE of R12} when executing "BX R12" is 0x10401B65
and after executing BX R12, the processor directly goes to Prefetch Abort state,
Is there something wrong with my stack settings? or something wrong with the ARM/Thumb interworking settings?
Can someone please help me, what can I do to fix this?