Part Number: AM623
Other Parts Discussed in Thread: AM625
Tool/software:
Hi TI Support Team,
I am reopening an unresolved issue that I am currently encountering, as the original discussion thread has been locked:
The issue relates to a crash in U-Boot when the watchdog is enabled on a custom AM623 board. The crash details are as follows:
U-Boot SPL 2023.04-gd74d0993e2 (Oct 18 2023 - 17:49:46 +0000) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.1--v09.01.01 (Kool Koala)') SPL initial stack usage: 1856 bytes Trying to boot from MMC1 Authentication passed Authentication passed U-Boot 2023.04-gd74d0993e2 (Oct 18 2023 - 17:49:46 +0000) SoC: AM62X SR1.0 HS-FS Model: XXXXXXX DRAM: 1 GiB Core: 63 devices, 30 uclasses, devicetree: separate WDT: Started watchdog@e000000 with servicing every 1000ms (60s timeout) WDT: Started watchdog@e010000 with servicing every 1000ms (60s timeout) "Synchronous Abort" handler, esr 0x96000010 elr: 0000000080852d48 lr : 0000000080852d44 (reloc) elr: 00000000bff60d48 lr : 00000000bff60d44 x0 : 00000000bdef3810 x1 : 000000000e020000 x2 : 0000000000000000 x3 : 00000000bff60d30 x4 : 00000000bdedff38 x5 : 0000000000000010 x6 : 000000000000003c x7 : 000000000000000a x8 : 00000000bdee0690 x9 : 0000000000000008 x10: 0000000000001f50 x11: 00000000bdedfcac x12: 0000000000001f1c x13: 0000000000000000 x14: 00000000bdee0690 x15: 0000000000000002 x16: 00000000bff5cc58 x17: 0000000000000000 x18: 00000000bdeeed90 x19: 000000000000ea60 x20: 00000000bffb857e x21: 00000000bffb8566 x22: 00000000000003e8 x23: 00000000deadbeef x24: 0000000000000009 x25: 0000000000000000 x26: 00000000800c25cc x27: 0000000000000000 x28: 0000000000000000 x29: 00000000bdedff20
This is with the following u-boot configuration options:
@@ -85,6 +85,7 @@ CONFIG_CMD_MMC=y CONFIG_CMD_REMOTEPROC=y CONFIG_CMD_USB=y CONFIG_CMD_USB_MASS_STORAGE=y +CONFIG_CMD_WDT=y CONFIG_CMD_RTC=y CONFIG_CMD_TIME=y CONFIG_CMD_EXT4_WRITE=y @@ -194,6 +195,9 @@ CONFIG_USB_GADGET=y CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments" CONFIG_USB_GADGET_VENDOR_NUM=0x0451 CONFIG_USB_GADGET_PRODUCT_NUM=0x6165 +CONFIG_WDT=y +CONFIG_WDT_K3_RTI=y +CONFIG_SPL_WDT=y CONFIG_FS_FAT_MAX_CLUSTSIZE=16384 CONFIG_SPL_GZIP=y CONFIG_OF_LIBFDT_OVERLAY=y
The purpose of enabling the watchdog is to implement a fully supervised boot process, monitored from the early-stage bootloaders (tiboot3, SPL, U-Boot) through to Linux. From my understanding, the R5 boot ROM code initially enables the watchdog, which is serviced by SYSFS, but only applies to the R5 core. After the A53 hand-off, SPL and U-Boot should take over responsibility for enabling and servicing the RTI0 watchdog.
A related concern, which I am unable to test due to the current crash, is whether the hand-off of the watchdog servicing between U-Boot and Linux functions as expected. Ensuring a fully supervised boot process all the way to Linux is critical to the reliability of our board.
I would appreciate any assistance or guidance your team can provide to help resolve this issue.
Best regards,
Aaron


