We plan to transplant OS into MPC5748G ECU. AndI saw in V1.1 S32 IDE, there is freertos plugins. So we prefer FreeRTOS.
But there is no demo in Freertos V9.0, and it seems different to do transplant it by myself because we are not so good at asm file modification.Is there any freertos demo for MPC574x?
Solved! Go to Solution.
Hi,
I was told that currently we have version ported only to MPC5746C - see attachment. With little modification (interrupt controller and memory map) it can run also on MPC5748G.
Regards,
Lukas
Hi Lukas,
Is it possible to port this MPC5746C FreeRTOS for MPC5645S ?
Hi, the attached project was not setup based on S32. So I ported it into S32 Project. However, when debug on my board, it enter generic_exception_handler when initial Interrupt.
void OS_PlatformInit(void)
{
unsigned int i;
/* clean interrupt controller */
for (i=0; i<HWINTC_INTERRUPTS; i++)
{
OSInterruptsHandlerTable[ i ] = OS_UnusedInterruptHandler;
OS_DisableINTCInput(i); --------------- when i = 484, then it enter generic_exception_handler
}
HWINTC_MCR = HWINTC_MCR & 0xFFFFFFF0UL; /* clear HVEN0 - software mode */
HWINTC_IACKR = 0x0U; /* set INTC ISR vector table base addr to 0x0000000 as we don't use this field */
HWINTC_CPR = 0x0; /* current priority level set to 0x0 */
}
But I don't know whether it is imported by s32 compiler difference or the original project issue.
Do we have freertos package based on s32 compiler?
Hi,
that's the only package I can currently provide. The project is compiled using makefile and it uses gcc compiler from S32 Design Studio, so there shouldn't be difference.
Lukas
After modify the vectors api, now it can work. Thank u very much.
Hi,
I have asked, I will let you know later...
Regards,
Lukas
Thanks you very much.