Hi Pavel,
Thanks for all the information. I did check the RM and tried with CodeWarrior Flash programmer. Also tried run CW_ARMv8\ARMv8\gdb_extensions\flash\cwflash.py through gdb but got this:
(gdb) source ../../gdb_extensions/flash/cwflash.py
Starting flash programmer services...
Starting local server...
Successfully started gdb server 127.0.0.1:45000.
Set gdb remote timeout to 7200
Connecting to target...
Using LS1043A SoC
Using CMSIS-DAP
Using jtag speed 6000
Connecting to probe...
ccs:USB open failure
CCS: TAP USB open failure.
connection failed
Target connection failed. Please re-check the settings.
Processor: LS1043A
Probe: CMSISDAP
//
Additional error details:
[CCS: TAP USB open failure]
Closing debugger server...
Error: fail to start flash programming services.
So I think the Flash Programmer mentioned there still need a TAP/Jtag physically connected to the board(maybe connect to the K22 Jtag connector?). This is not what I'd like to go with. Since OpenSDA/Mbed provides the MSD, I'd like to be able to load an flash programmer application to the MSD, and use it to flash uBoot and other image to Nor. Is that possible? We have several this board around, and we may mess up the image on the Nor flash from time to time. If we can recover the board without TAP, that would be great. Otherwise we will have to get a bunch of TAP and install CodeWarrior for every user here.
I also tried loading Uboot on SD card. I followed RM and changed SW4 and SW5 for boot from SD. But so far still got no luck.
Regards,
Strong