SWT0 to reset core0 in MPC5746R

cancel
Showing results for 
Search instead for 
Did you mean: 

SWT0 to reset core0 in MPC5746R

417 Views
kiranmuniraju
Contributor II

Hi,

I need to do core0 reset alone using SWT0 and core1 reset alone using SWT1? 

I have written the driver codes for SWT0 which generates IRQ[32] when the watchdog timer overflows and now how this can reset core0 alone. What else I need to do to reset the core0.

In the similar way I need to do SWT1 to reset core1 alone.

Please provide some sample code for reference.

Thanks and regards,

Kiran M

0 Kudos
2 Replies

261 Views
kiranmuniraju
Contributor II

Hi,

I am new to this controller, please can u explain more about this 

"Just correctly configure INTC module to react on SWT_1 timeout with core1." and also mode change.

If possible share some sample code.

Best Regards,

Kiran

0 Kudos

261 Views
petervlna
NXP Employee
NXP Employee

Hi,

There is no sample code available for what you are requesting.

However the implementation is quite easy.

Just correctly configure INTC module to react on SWT_1 timeout with core1.

For resetting core1 alone you will need to do:

mode transition for this core with Reset on mode change enabled in interrupt from SWT1:

pastedImage_1.png

are you sure your SWT0 is not resetting whole micro? can you see in debugger that core1 is not reset in SWT0 and still executes code?

Peter

0 Kudos