Other Parts Discussed in Thread: SYSCONFIG, UNIFLASH
Hello Ti,
I'm using a custom board, qspi nor flash model mx25l25645gzni-08g, and modify the flash parameters and commands in the example Sysconfig
and follow the guide in AM62x MCU+ SDK: EVM Setup - Flash SOC Initialization Binary
However, I receive the following error:
=> python uart_uniflash.py -p /dev/ttyUSB0 --cfg=sbl_prebuilt/am62x-sk/default_sbl_null.cfg Parsing config file ... Parsing config file ... SUCCESS. Found 5 command(s) !!! Executing command 1 of 5 ... Found flash writer ... sending ../../sbl/sbl_uart_uniflash_stage1.release.tiimage Sending ../../sbl/sbl_uart_uniflash_stage1.release.tiimage: 246960bytes [00:24, Sending ../../sbl/sbl_uart_uniflash_stage1.release.tiimage: 247989bytes [00:24, Sending ../../sbl/sbl_uart_uniflash_stage1.release.tiimage: 247989bytes [00:24, Sending ../../sbl/sbl_uart_uniflash_stage1.release.tiimage: 247990bytes [00:24, Sent flashwriter ../../sbl/sbl_uart_uniflash_stage1.release.tiimage of size 246537 bytes in 23.55s. Executing command 2 of 5 ... Command arguments : --file=../../sbl/sbl_uart_uniflash_stage2.release.appimage --operation=flash --flash-offset=0x0 Sending ../../sbl/sbl_uart_uniflash_stage2.release.appimage: 122451bytes [00:10,Sending ../../sbl/sbl_uart_uniflash_stage2.release.appimage: 123480bytes [00:11,Sending ../../sbl/sbl_uart_uniflash_stage2.release.appimage: 123480bytes [00:11,Sending ../../sbl/sbl_uart_uniflash_stage2.release.appimage: 123481bytes [00:11,Sending ../../sbl/sbl_uart_uniflash_stage2.release.appimage: 123482bytes [00:12,Sending ../../sbl/sbl_uart_uniflash_stage2.release.appimage: 123483bytes [00:12,Sending ../../sbl/sbl_uart_uniflash_stage2.release.appimage: 123484bytes [00:12, Sent ../../sbl/sbl_uart_uniflash_stage2.release.appimage of size 122300 bytes in 12.6s. [STATUS] SUCCESS !!! Executing command 3 of 5 ... Command arguments : --operation=flash-phy-tuning-data Sending flash-phy-tuning-data_command: 0%| | 0/32 [00:00<?, ?bytes/s]send error: error_count reached 10, aborting. Sending flash-phy-tuning-data_command: 6%| | 2/32 [01:50<55:03, 110.12s/bytes] [ERROR] XMODEM send failed, no response OR incorrect response from EVM OR cancelled by user, Power cycle EVM and run this script again !!!
I try to line comment the third command and it also failed.
1. in sbl_uart_uniflash_stage2 example sysconfig I see MMCSD configuration, is this necessary? We don't use MMC0 and MMC1 on our custom board.
2. Is the parameter of flash on sysconfig change error, resulting in the nor flash not being written to?
make sure:
1. I see "CC" printed every 2-3 seconds after power up.
2. the serial port name is correct.
3. I close the UART terminal before running the command.
4. DeviceType is GP.
SDK version: mcu_plus_sdk_am62x_09_00_00_19.
Thanks