I'm trying to use CMSIS-RTOS2+RTX5 on a LPC1768. at startup, before the main function is called osKernelInitialize() occurs and fails because the whole global osRtxInfo structure is fully 0xFF'ed.
if (osRtxInfo.kernel.state != osRtxKernelInactive) {
EvrRtxKernelError((int32_t)osError);
//lint -e{904} "Return statement before end of function" [MISRA Note 1]
return osError;
}
And obviously returns error as kernel.state is non-zero. When dumping the RAM, a large part is zero-ed, some arent but only osRtxInfo gets 0xff'ed all along. I've tried relocating this specific symbol in a different region either with no luck.
Nevermind, the deprecated LPC1700_DFP pack was not really compatible with CMSIS-toolbox generating faulty scatter file, stack was then broken before starting up.
Hi,
I'm trying to use CMSIS-RTOS2+RTX5 on a LPC1768. at startup, before the main function is called osKernelInitialize() occurs and fails because the whole global
osRtxInfo
structure is fully 0xFF'ed.Then, osKernelInitialize checks that:
And obviously returns error as kernel.state is non-zero. When dumping the RAM, a large part is zero-ed, some arent but only
osRtxInfo
gets 0xff'ed all along. I've tried relocating this specific symbol in a different region either with no luck.This is my scatter file:
I'm using CMSIS-6, CMSIS-RTOS2, CMSIS-RTX5 (Source variant), ARMCC6 and VSCode extensions.