Flash Magic Forum

In-System Programming Support => ARM Cortex => Topic started by: Adum on September 02, 2015, 08:02:50 AM

Title: LPC1768 Command Line
Post by: Adum on September 02, 2015, 08:02:50 AM
Hi everybody,

I'm trying to flash my code into a LPC1768 with the command line. I have no problem with the exe and used the command line below extract from the soft :
FM COM(80, 57600) HIGHSPEED(0,115200) DEVICE(LPC1768, 5353470392624945514000000000000000000.000, 0) HARDWARE(BOOTEXEC, 30, 1000) ERASE(DEVICE, PROTECTISP) HEXFILE(C:\Program Files\Flash Magic\projets\DAG_COM_Bootloader.hex, NOCHECKSUMS, NOFILL, PROTECTISP) VERIFY(C:\Program Files\Flash Magic\projets\DAG_COM_Bootloader.hex, NOCHECKSUMS)

(5353470392624945514000000000000000000.000 is curious, I agree)

In fact, if I left RTS and DTR connect, I always have a fatal error that crash the program :
AppName: fm.exe    AppVer: 0.0.0.0    ModName: flashmagicarmcortex.dll
ModVer: 0.0.0.0    Offset: 00015a51

After a crash, if I disconnect RTS and DTR, and send the same command, erase, program and verify works well.

But everytime I want to program, I have to crash it first .

Is this a know problem ? Is there a link with a bad entry in ISP mode ? How could I fix that ?

Thanks in advance
Title: Re: LPC1768 Command Line
Post by: Andy Ayre on September 04, 2015, 01:15:20 AM
First please change the strange oscillator frequency number to what you are actually using. Please also let me know what you entered into the GUI version before saving the command line parameters from it.

Are you using the latest version of Flash Magic? If not please update.

What do you mean "disconnect" RTS and DTR? Is that something you are doing with your hardware? Or do you mean you are removing the HARDWARE directive?

For the same settings does this happen with the GUI version?

Andy
Title: Re: LPC1768 Command Line
Post by: Adum on September 04, 2015, 01:59:00 AM
Hi Andy,

Updating the version of FlashMagic AND changing the oscillator frequency solves my problem. A lot of thanks !

For your information, you can find enclose my configuration of FM which generate the strange frequency number (always with the last version).


QuoteDEVICE(LPC1768, 5353470392624945514000000000000000000.000, 0)
HARDWARE(BOOTEXEC, 50, 50)
ERASE(DEVICE, PROTECTISP)
HEXFILE(C:\Program Files\Flash Magic\projets\DAG_COM_Bootloader.hex, NOCHECKSUMS, NOFILL, PROTECTISP)
VERIFY(C:\Program Files\Flash Magic\projets\DAG_COM_Bootloader.hex, NOCHECKSUMS)


Title: Re: LPC1768 Command Line
Post by: Andy Ayre on September 09, 2015, 01:40:22 AM
Note that the COM directive is missing which is another symptom of this bug.

This bug is fixed in version 9.40, now available. Thanks for reporting it!

Andy
Title: Re: LPC1768 Command Line
Post by: ILIGYUdsfi on November 02, 2015, 12:15:11 AM
The casesam (http://www.casesam.co.uk) bug? Maybe i should update ourcase (http://www.ourcase.co.uk) it to solve the problem.