SWT0 to reset core0 in MPC5746R

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SWT0 to reset core0 in MPC5746R

661件の閲覧回数
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 件の賞賛
2 返答(返信)

505件の閲覧回数
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 件の賞賛

505件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

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 件の賞賛