I am creating a MFC project of Visual Studio, and want to call cldp.exe for programming SPI flash. But the executable program cldp.exe has so many parameters. How to call this program in MFC project?
I'm not familiar with MFC applications, and suspect the Microsoft documentation would be a better place to start with how to call external applications that require a large number of parameters.
However, the CLDP can be called with a single parameter (if that helps?) - the "-@ <filename>" switch. E.g.
cldp -@ cldpCommands.txt
Where cldpCommands.txt is a text file containing all of the switches you want to pass to the Command Line Device Programmer. See the attached TXT file for an example options file.
For more information on the command line options, take a look at:
Help > Contents > CrossCore® Embedded Studio 1.0.3 > Integrated Development Environment > Working with Bootable and Non-bootable Files > Device Programmer > Device Programmer Command Line > Device Driver Command-Line Switches
I called cldp.exe as you mentioned above. I need to program different bin files to flash in different applications except ldr file. It is very inconvenient that i have to change the parameter text file each time, so i'm writing a MFC project to program flash. I will public here after finish.
Retrieving data ...