Hi,
Hoping I got the correct forum. Please let me know if there is a better place to post the following question.
I will split this into three questions.
Q1:
I am trying to run code to program flash device on our hardware with u-boot. I want to do this without using CCS GUI. First step, I have tried is using the "Scripting Console". This is the command I use
args=["program_name"];ccxmlFile="C:/OMAPL138_XDS510.ccxml";app="C:/ti/DaVinci-PSP-SDK-03.22.00.02/host-tools/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/CCS/SPIWriter/ARM/SPIWriter_OMAP-L137.out";core="Spectrum Digital XDS510USB Emulator_0/ARM9_0";ds.setConfig(ccxmlFile);mySession=ds.openSession(core);mySession.target.connect();mySession.memory.loadProgram(app, args);
A couple of issues I am seeking help for here
1. After the program loads, if I try to run it (using F8), it just hits exit without actually giving me the prompt to specify the u-boot file to flash. But, if I single step it, the program works properly. Any ideas?
2. If I use the CCS GUI to connect to the target and load code, the loader stops at main.c. But, if I use the scripting method above, the loader stops at boot.asm. Why the difference? From CCS GUI, I can hit F8 after loading and it works properly every time.
An additional question here
I need to run the SPI1 Pinmux script for flash programming. How can I run that from Debug Server Scripting?
Q2:
Eventually I want to modify the flashing program so that it can take command line arguments and I can use loadti to be able to run from command line without user interaction. When I tried loadti, it seems like the program was trying to load the .out to C6748 and it failed complaining that the image format is wrong. How can I specify in loadti that the code needs to be loaded to the ARM9 core? Do I have to modify main.js?
Q3:
Can I use the XDS100v2 emulator with OMAPL138 and run the above scripts (using loadti)? I have only tried with SD XDS 510 till now, but would like to use XDS100v2. Do you have any data on how long it would take to program an SPI flash (about 256 KB of code - 4 sectors) using loadti and XDS100v2?
Thanks,
-raja.