Is there any freertos demo for MPC574x

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is there any freertos demo for MPC574x

Jump to solution
2,269 Views
yuehedeng
Contributor III

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?

Labels (1)
0 Kudos
1 Solution
1,304 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

View solution in original post

0 Kudos
7 Replies
1,305 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

0 Kudos
1,305 Views
abhiram_d
Contributor I

Hi Lukas,
Is it possible to port this MPC5746C FreeRTOS for MPC5645S ?

0 Kudos
1,305 Views
yuehedeng
Contributor III

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?

0 Kudos
1,305 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

0 Kudos
1,305 Views
yuehedeng
Contributor III

After modify the vectors api, now it can work. Thank u very much.

0 Kudos
1,305 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

I have asked, I will let you know later...

Regards,

Lukas

0 Kudos
1,305 Views
yuehedeng
Contributor III

Thanks you very much.

0 Kudos