AM2634: LP-AM243: Erasing UART Flashed Program with Python Script Over UART

Part Number: AM2634
Other Parts Discussed in Thread: UNIFLASH

Hi,

I am facing an issue while trying to erase a previously UART-flashed program over UART using uart_uniflash.py on the AM263x LaunchPad.

Below are the exact steps and observations.


Flashing Process (Works as Expected)

  1. Set the board to UART boot mode and perform a power cycle.

  2. Verify that the ROM bootloader is active by observing continuous CCCC characters on the UART terminal.

  3. Program SBL and application using the UniFlash tool (UART).

  4. Change boot mode to QSPI (4S) – Quad Read with UART fallback.

  5. Power cycle the board.

  6. Application boots and runs correctly from QSPI flash.


Erase Process (Fails)

  1. Set the board to UART boot mode and perform a power cycle.

  2. Verify CCCC string on the UART terminal (ROM bootloader active).

  3. Attempt to erase flash using uart_uniflash.py.

  4. Command used:

python ./uart_uniflash.py -p COM7 --operation=erase --flash-offset=0x0 --erase-size=0xFFFFFFFF
  1. Observed output:

Sending erase_command: 1031bytes [00:20, 1791.46bytes/s]
recv error: getc timeout in start sequence
Sending erase_command: 1032bytes [01:00, 11.96bytes/s]
recv error: getc timeout in start sequence
Sending erase_command: 1046bytes [02:50,  2.94bytes/s]
error_count reached 16, aborting.
Sending erase_command: 1048bytes [02:50,  2.94bytes/s]
[ERROR] XMODEM recv failed, no response OR incorrect response from EVM OR cancelled by user,
Power cycle EVM and run this script again !!!

image.png