In the SCFW source for IMX8X, where is the SCU hardware watchdog enabled?

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

In the SCFW source for IMX8X, where is the SCU hardware watchdog enabled?

46,523 Views
Gandalf-kern
Contributor IV

According to the Porting Guide, the SCU watchdog timer is enabled by default.  The virtual watchdogs are disabled by default (i.e., just not enabled in the SCFW). 

To enable the virtual watchdog timers in the SCFW, it is necessary to configure the MCU watchdog to be on and locked by default.  For example, on the QXP MEK, add the following to board_system_config() in boot.c in the SCFW:

timer_set_wdog_timeout(pt_mcu_0, 5000U);
timer_set_wdog_action(pt_boot, pt_mcu_0, SC_TIMER_WDOG_ACTION_BOARD);
timer_start_wdog(pt_mcu_0, SC_TRUE);

What is unclear is where the SCU hardware watchdog timer is enabled by default?

I see where the PMIC watchdog timer is enabled and serviced by the SCFW, but isn't this different from the SCU hardware watchdog?

0 Kudos
2 Replies

46,508 Views
Gandalf-kern
Contributor IV

Adding the following to board_system_config():

timer_set_wdog_timeout(pt_m4_0, 5000U);
timer_set_wdog_action(pt_boot, pt_m4_0, SC_TIMER_WDOG_ACTION_BOARD);
timer_start_wdog(pt_m4_0, SC_TRUE);

This configures the MCU watchdog to be on and locked by default.  What is the difference between this and setting the WDT for the boot partition like the following?

 

timer_set_wdog_timeout(pt_boot, 120000);

timer_set_sdog_action(SC_PT, pt_boot, SC_TIMER_WDOG_ACTION_BOARD);

timer_start_wdog(pt_boot,0);

0 Kudos

46,516 Views
igorpadykov
NXP Employee
NXP Employee

Hi Tracy

 

part of SCFW is provided as binaries (not all SCFW is available in sources), also please look at

below Release Notes(sc_fw_rn.pdf) p.1 from  SCFW Porting Kit​ 1.9.0

 

1.jpg

Best regards
igor

0 Kudos