S32 Design Studio for S32 platform 3.5 - Watchdog Timer

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

S32 Design Studio for S32 platform 3.5 - Watchdog Timer

899 Views
Anu_123
Contributor I

I tried to be flashing the example code of Watchdog timer from S32K3XX AUTOSAR 4.4-R21-11 RTD 3.0.0 D2303 Example Project in S32 Design Studio for S32 platform 3.5. Whenever after flash and run the code its stuck into DELAY loop of startup_cm7.s file after the PLL while loop is called.
Below I attached the image. How can we recover from this loop and how can we successfully run the watchdog timer code.

Anu_123_0-1721281092356.png

 

Anu_123_1-1721281253907.png

 

Tags (1)
0 Kudos
Reply
7 Replies

877 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Anu_123 

Did you make any changes to the example configurations? Are you using a custom board or an EVB?

 

BR, VaneB

0 Kudos
Reply

850 Views
Anu_123
Contributor I

Initially, it showed errors during the build. So, I made some changes to fix those errors, such as:

  1. I enabled the PIN option.
  2. I switched the package to the S32K344_172MQFP 172 package.

 

After these changes, I generated the code again, but it showed some errors. So, I enabled the driver such as Siul2_Port.

 

I only made the above-mentioned changes. Again, I generated the code and it was error-free. Then I flashing the code, it got stuck in the loop I previously mentioned.

 Here, I attached the image. Please find the attachment and provide the solution.

 

Anu_123_0-1721381405424.png

 

Anu_123_1-1721381421999.png

 

Anu_123_2-1721381431198.png

 

Anu_123_3-1721381443202.png

 

Anu_123_4-1721381453646.png

 

0 Kudos
Reply

838 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Anu_123 

I made the mentioned modifications and the code works as expected. if you have a custom board, please make sure that your clock configurations are correctly set.

0 Kudos
Reply

793 Views
Anu_123
Contributor I

Hi @VaneB 

I have used evaluation board - S32k344Q172. Have I need to modify any configuration?

 

0 Kudos
Reply

765 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Anu_123 

The example codes are ready to run out of the box. Could you please try the Clock_Ip_Example_S32K344 or the Mcu_Example_S32K344 to verify if it is not a clock issue?

0 Kudos
Reply

667 Views
Anu_123
Contributor I

Hi @VaneB ,

 

Sorry for delayed response. I'm flashing the Clock_Ip_Example_S32K344 and Mcu_Example_S32K344 code. 

The Clock_Ip_Example_S32K344 code flashes with no issue. But Mcu_Example_S32K344 shows some error during the flash such as,

  1. PE-ERROR: Warning. Can't read registers while part is running
  2. PE-ERROR: Warning. Can't read memory while part is running

Due to these error, that code does not execute the MCU_SetMode(McuModeSettingConf_0); function.

Anu_123_0-1722410072145.png

 

 

0 Kudos
Reply

661 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Anu_123 

A similar situation has been discussed in the following thread. Take a look at the information, you may find it useful.

S32DS can not debug

Also, could you please try to update the RTD version to the S32K3_M27X Real-Time Drivers Version 3.0.0 P07.

0 Kudos
Reply