Hello! I am learning the interrupt configuration on MPC4758G, and trying to understand how the hello_pll_interrupt example in s32ds works.
I found that this example can't flash any LEDs on DEVKit board. Looks like the PIT interrupt set up in PIT0_init(40000000) can't be directed to corresponding PIT0_irs().
Could someone please help? Thanks!
Charlie
解決済! 解決策の投稿を見る。
Hi,
looks PRC_SELNx bits of used INTC PSR registers are not properly set. Use attached pit.c file and modify related code in all projects. Also in hello-pll-interrupt_z4_1.c modify SW_INT_1_init() to use register access for PSR register too, i.e.
INTC.PSR[1].R = 0x400F;
Then it seems there is wrong behavior in S32DS for debugging multicore projects, when PIT does not start when FRZ was set and some of other core was in debug/halted state. If other cores was in running or reset state PIT worked as expected. Single core project work normally.
Below guide shows how to debug multicore projects in S32DS;
https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-debug-multi-core-project-in-S32-...
BR, Petr
Hi,
looks PRC_SELNx bits of used INTC PSR registers are not properly set. Use attached pit.c file and modify related code in all projects. Also in hello-pll-interrupt_z4_1.c modify SW_INT_1_init() to use register access for PSR register too, i.e.
INTC.PSR[1].R = 0x400F;
Then it seems there is wrong behavior in S32DS for debugging multicore projects, when PIT does not start when FRZ was set and some of other core was in debug/halted state. If other cores was in running or reset state PIT worked as expected. Single core project work normally.
Below guide shows how to debug multicore projects in S32DS;
https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-debug-multi-core-project-in-S32-...
BR, Petr
Thanks! Petr,
I got this example work. Also want to mention that Z2 core need to be start first, followed by Z4_1 and Z4_2. S32DS RMT sdk example has better documentation about this special sequence.
Best regards,
Charlie