Other Parts Discussed in Thread: UNIFLASH
Hi,
I am struggling with loading program into NAND flash. The board I used for my experiments are EVMAM437x and idkAM437x. The software are starterware, CCS9.3 and Uniflash 8.4.0/5.2.0/4.6.0.
I follow the guide on the website 3.1. Board Support — Processor SDK RTOS Documentation: I did the following steps:
When I use the following command to load the program into the RAM through JTAG, everything works well as expected.
dslite.bat --mode load --config=C:\Users\a1771\workspace_v9\DMTimer_test_1ms_modified_CAN\DMTimer.ccxml -f C:\Users\a1771\workspace_v9\DMTimer_test_1ms_modified_CAN\Debug\DMTimer_test_1ms_modified_CAN.out -n 1
However, when I try to load the program into NAND Flash or SPI Flash, Uniflash did not run as expected.
Here were the results when I load program into NAND Flash through Uart.:
Command:(Try to erase flash)
Dslite.bat --mode processors -c COM3 -d 0 -e 0x1000 -o 0
Result: (Error: Transmit of header failed or stuck at transferring header files)
Command:(Try to load file to NAND flash offset is 0x80000)
dslite.bat --mode processors -c COM3 -f I:\bootloader_summary\SPI_Flash_test\Baremetal_Led_bin\Led.bin -d 0 -i 0 -o 0x80000
Result: (Error: Sometimes shows 'file transfer complete' but no further print, sometimes stuck at Downloading Flash Programmer)
Command:(Try to load file to NAND flash offset is 0x0)
dslite.bat --mode processors -c COM3 -f I:\bootloader_summary\SPI_Flash_test\Baremetal_Led_bin\app.bin -d 0 -i 0 -o 0x0
Result: (Error: It always stuck at Downloading Flash Programmer or Transferring the Image to Flash Programmer)
Can anyone help me with downloading binary files into NAND flash?
Thanks for your help in advance.
Best Regards,
Yuzhi