When debugging, How to know reset point in S32DS?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

When debugging, How to know reset point in S32DS?

1,625 Views
kbj
Contributor IV

Hi,

Because of reset, I want find reset point.

But I don't know how to know reset point.

In S32 Design Studio, How can I find reset point?

Best regards,

Byungju.

Labels (2)
Tags (3)
0 Kudos
Reply
8 Replies

1,283 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

which S32DS you are using? I'm not sure what do you mean by reset point, but you can add breakpoint into reset vector handler - like this one for S32K144 in startup_S32K144.S file and continue step by step through startup:

pastedImage_1.png

Jiri

0 Kudos
Reply

1,283 Views
kbj
Contributor IV

Hi Jiri,

I use S32DS for ARM.2018.R1.

When the UART transmit data, MCU is reset.

As you mention, I add break point into reset vector handler. But Any break point does not catch.

I thinks the reason of reset is watchdog timeout by interrupt.

When the UART transmit data , MCU is often reset.

I removed watchdog function.
MCU does not reset.
Blinking LED is stop.

And  A break point was caught in one of the painted parts below.

Therefore, it seems that the operation of interrupt continues to cause reset.

I don't know how to clear interrupt.

1.PNG

Thanks and best regards,

Byungju.

0 Kudos
Reply

1,283 Views
jiri_kral
NXP Employee
NXP Employee

So - good starting point is an example - like lpuart_echo_s32k144 (or for different MCU - I'm not sure which one you are interested in):

pastedImage_1.png

You can find there how to clear IRQ flag for UART and many other related stuff. 

Hope it helps. 

Jiri 

0 Kudos
Reply

1,283 Views
kbj
Contributor IV

Hi Jiri,

I develop with S32K144.

I think LPUART_DRV_SetTxBuffer function is interrupt clear function.

But I don't use the function, Because I don't use S32K14x_RTM_SDK_V2.0.0.

How to import S32K14x_RTM_SDK_V2.0.0.?

1.PNG2.PNG

Thanks and best regards,

Byungju.

0 Kudos
Reply

1,283 Views
jiri_kral
NXP Employee
NXP Employee

The SDK v2.0 RTM is part of Update. You can use this HOWTO: https://community.nxp.com/docs/DOC-341068 

Hope it helps. 

Jiri 

0 Kudos
Reply

1,283 Views
kbj
Contributor IV

Dear Jiri,

I installed the SDK v2.0 RTM. 

I can make sample code with SDK v2.0 RTM

But When I make new project, I can't select SDK v2.0 RTM.

There is not the SDK v2.0 RTM in menu.

What should I do?

Thanks and best regards,

Byungju.

0 Kudos
Reply

1,283 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

you need to select ARM Bare-Metal 32-bit target Binary toolchain: 

pastedImage_1.png

Jiri

1,283 Views
kbj
Contributor IV

Hi Jiri,

I can use SDK RTM 2.0.

Thanks for your help.

Best regards,

Byungju.

0 Kudos
Reply