Hello,
I have some questions regarding backup boot on the AM62x using the SK-AM62 evaluation board. I have my board configured for primary boot with eMMC and backup boot with SPI. I'm able to use primary boot to boot from either media source but when I change the switches to use SPI as the backup boot, corrupt the tiboot3.bin file on eMMC and restart my board nothing happens.
I'm writing the Uboot files to the SPI flash using USB DFU as described here:
and here
https://u-boot.readthedocs.io/en/latest/usage/dfu.html
Then I issue the following commands to write the Uboot files to the SPI flash:
setenv dfu_alt_info ${dfu_alt_info_ospi}
sf probe
sf erase 0x0 0x4000000
dfu 0 sf "0:0:25000000:0"
.\dfu-util.exe -a 0 -D .\tiboot3.bin
.\dfu-util.exe -a 1 -D .\tispl.bin
.\dfu-util.exe -a 2 -D .\u-boot.img
Then I change the backup boot pins to the following according to Table 5-5 in the AM62 TRM:
B10 - 0, B11 - 1, B12 - 1
I know the Uboot files are good because I can boot from SPI in primary boot using the boot mode pins described here: https://software-dl.ti.com/mcu-plus-sdk/esd/AM62X/08_06_00_18/exports/docs/api_guide_am62x/EVM_SETUP_PAGE.html#BOOTMODE_OSPI
Do you have any recommendations as to what I can try to get SPI backup boot working? Am I using USB DFU correctly to write the Uboot files to the SPI flash so it works in backup mode? Are any modifications needed to k3_dfu.h or to k3-am62x-lp-sk.dts? Thank you for your help.