[MPC5748G][S32DS] FreeRTOS on 2nd Z4 core

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

[MPC5748G][S32DS] FreeRTOS on 2nd Z4 core

跳至解决方案
1,934 次查看
travis_kuo
Contributor III

Hi,

I am using S32DS with SDk version S32_SDK_MPC574xx_RTM_1.0.0. Our HW platform is MPC5748G EVK.

If we use FreeRTOS component on 1st z4 core, there's no issue. However, if I use FreeRTOS component in 2nd z4 core and keep 1st z4 baremetal code, the OS tick on 2nd z4 core doesn't work at all.

Any comment about FreeRTOS support on 2nd z4 core of MPC5748G? Attached my code.

Or any multi-core FreeRTOS example available?

1 解答
1,543 次查看
travis_kuo
Contributor III

Already solved. For 2nd core, manually modify 

SDK\rtos\FreeRTOS_C55\Source\portable\GCC\PowerPC_Z4\cpu_defines.h

#define INTC_CPR_ADDR 0xFC040010
#define INTC_IACKR_PRC_ADDR 0xFC040020
#define INTC_EOIR_PRC_ADDR 0xFC040030

To

#define INTC_CPR_ADDR 0xFC040014
#define INTC_IACKR_PRC_ADDR 0xFC040024
#define INTC_EOIR_PRC_ADDR 0xFC040034

在原帖中查看解决方案

1 回复
1,544 次查看
travis_kuo
Contributor III

Already solved. For 2nd core, manually modify 

SDK\rtos\FreeRTOS_C55\Source\portable\GCC\PowerPC_Z4\cpu_defines.h

#define INTC_CPR_ADDR 0xFC040010
#define INTC_IACKR_PRC_ADDR 0xFC040020
#define INTC_EOIR_PRC_ADDR 0xFC040030

To

#define INTC_CPR_ADDR 0xFC040014
#define INTC_IACKR_PRC_ADDR 0xFC040024
#define INTC_EOIR_PRC_ADDR 0xFC040034