Hi there
I have a custom board with an MK60DX256 / 4N22D. The project (bsp/psp) is derived from the TWR-K60D100M and, to sort out the linker file, I took the one from the TWR-K40X256 project as a blue print. I'm using the cw10gcc compiler collection with cw10.6 and MQX 4.1.
My hardware is starting up and running into the _mqx() function. There at the end the scheduler should be started by the function
_sched_start_internal(); /* WILL NEVER RETURN FROM HERE */
that calls
ASM_LABEL(_sched_start_internal)
svc SVC_RUN_SCHED
bx lr
ASM_PUBLIC_END(_sched_start_internal)
When I step through the code I can see that the "svc" call behaves badly. It jumps to a strange location and the debugger says:
No source available for "0xBCBD2F46 (0xBCBD2F46)() "
Afterwards the system resets and the RCM_SRS1 register is set to "Reset caused by core LOCKUP event".
Could this be caused by an incorrect linker file (.ld)? Or any other ideas?
Thanks
Mario