Is there any freertos demo for MPC574x

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Is there any freertos demo for MPC574x

跳至解决方案
2,786 次查看
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?

标签 (1)
0 项奖励
回复
1 解答
1,821 次查看
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 项奖励
回复
7 回复数
1,822 次查看
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 项奖励
回复
1,822 次查看
abhiram_d
Contributor I

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

0 项奖励
回复
1,822 次查看
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 项奖励
回复
1,822 次查看
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 项奖励
回复
1,822 次查看
yuehedeng
Contributor III

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

0 项奖励
回复
1,822 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

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

Regards,

Lukas

0 项奖励
回复
1,822 次查看
yuehedeng
Contributor III

Thanks you very much.

0 项奖励
回复