Hello Nattapong Sungcharoen,
I also encountered similar problem when recover an LS1012 demo board without RCW.
Please try whether the following would be helpful for you.
1. Please configure the target board to use hard-coded RCW, the signal CLK_OUT(R50) is used to configure RCW source. 0:hard-coded RCW. 1:QSPI. Please refer to "Table 5. Configuration signals" in the attached document.
2. Please use the attached script to replace the one in
C:\Freescale\CW4NET_v2016.01\CW_ARMv8\ARMv8\gdb_extensions\flash\cwflash.py.
Probably you need to modify this script according to your requirement. For example, you use other connection type, the default is CodeWarrior TAP with USB connection.
3. Please put images files in
C:\Freescale\CW4NET_v2016.01\CW_ARMv8\ARMv8\gdb\bin.
4. Open gdb console in
C:\Freescale\CW4NET_v2016.01_armv8\CW_ARMv8\ARMv8\gdb\bin\aarch64-fsl-gdb.exe,
please execute the following commands to do flash programming.
source ../../gdb_extensions/flash/cwflash.py
fl_unprotect 0x0 0x4000000
fl_write 0x0 rcw_800_swap.bin --erase
fl_write 0x100000
u-boot-spl_swap.bin --erase
fl_write 0x200000 u-boot_swap.bin --erase
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------