Hello Anooja S,
Please connect LS1012FRDM to your PC with USB cable directly, then open device manager to get mbed serial port.
Please put the attached cwflash.py in the folder Freescale\CW4NET_v2018.01\CW_ARMv8\ARMv8\gdb_extensions\flash, please modify the following line in this file, please modify "COM9" to the mbed serial port number on your PC.
PROBE_CONNECTION = "cmsisdap:COM9"
Then open CW4NET_v2018.01\CW_ARMv8\ARMv8\gdb\bin\aarch64-fsl-gdb.exe, type "source C:\Freescale\CW4NET_v2018.01\CW_ARMv8\ARMv8\gdb_extensions\flash\cwflash.py", then you could perform QSPI operation as I mentioned previously.
Please put images files in
C:\Freescale\CW4NET_v2018.01\CW_ARMv8\ARMv8\gdb\bin, and execute the following command.
fl_unprotect 0x0 0x4000000
fl_write 0x0 firmware_ls1012ardb_uboot_qspiboot --erase
If your RCW is broken, probably there is problem to connect to the target, please configure the signal CLK_OUT(R50) to configure RCW source as hard-coded RCW first.
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------