Hi,
I just get the flash magic production system and minor modify the multiprogrammerARM code to be work on device LPC1752. Somehow it always display unable to connect to device (error -5).
Attach with the code changes:
wprintf(L"MultiProgrammer\nPrograms two devices in parallel.\n");
// program a device using channel 0, COM 1
channelconfig.channelnum = 0;
channelconfig.device = FM_LPC1752; //FM_LPC2378;
...
channelconfig.channelnum = 1;
channelconfig.comportnum = 41; //3;
channelconfig.device = FM_LPC1752;//FM_LPC2129;
...
// connect
options.osc = 12.0000;
sprintf_s(options.comportname, FM_MAXCOMPORTNAMELEN, "COM%d", channelconfig.comportnum);
options.baudrate = 115200; //19200;
options.selecteddevice = channelconfig.device;
options.highspeed = 0;
options.clocks = 0;
options.halfduplex = 0;
options.hwconfig = FM_HWBOOTEXEC;//FM_HWNONE;
options.hwt1 = 50;//120;
options.hwt2 = 100;//60;
options.i2caddr = 0;
options.maxbaudrate = 230400;
options.usinginterface = 0;
options.interfacetype = FM_INTERFACETYPE_NONE;
options.flashbank = 0;
.
It is working on flash magic window, refer to pic1.
Pic 2 is the error return back..
regards,