This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM620-Q1: Issue with USB-DFU Boot on AM62x: "Bad Data CRC" on OSPI Flash Boot

Part Number: AM620-Q1

Tool/software:

Hello Team,

I am working with the AM62x-SK Board and encountering a "Bad Data CRC" error when attempting to boot from flash after using USB DFU to load kernel images.

Error with USB DFU Boot Process:

  • I switch to USB DFU mode to load the same images.
  • After transferring the images via USB DFU and writing them to flash, I attempt to boot using sf read.

This results in the following error:

      Verifying Checksum ... Bad Data CRC
      ERROR: can't get kernel image!

Successful Boot Process (Using UART Boot Mode):

  • I boot the processor using UART mode.
  • I load images into DDR via UART and then copy them to flash using sf write.
  • Booting from flash afterward using sf read works perfectly without errors.

Troubleshooting Steps Taken:

  • Verified that images are not corrupted when loaded via UART.
  • Ensured flash offsets and sizes are correctly set during both UART and USB DFU processes.
  • Compared memory contents in DDR after sf read from flash for both methods and observed data differences.

Could you advise on any specific configurations, limitations, or steps related to USB DFU on AM62x that could resolve this issue?

=> run bootcmd
SF: Detected s28hs512t with page size 256 Bytes, erase size 256 KiB, total 64 MiB
device 0 offset 0x860000, size 0xcd2c
SF: 52524 bytes @ 0x860000 Read: OK
device 0 offset 0x800000, size 0x2578552
SF: 39290194 bytes @ 0x800000 Read: OK
## Booting kernel from Legacy Image at 93000000 ...
   Image Name:   vxworks
   Image Type:   AArch64 VxWorks Kernel Image (uncompressed)
   Data Size:    2578488 Bytes = 2.5 MiB
   Load Address: 80100000
   Entry Point:  80100000
   Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!

Thanks & Regards,

Yashavantha Gowda