LPC1768 Command Line

Started by Adum, September 02, 2015, 08:02:50 AM

Previous topic - Next topic

Adum

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

Andy Ayre

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
Embedded Systems Academy, Inc.
support at esacademy dot com

Adum

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)



Andy Ayre

#3
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
Embedded Systems Academy, Inc.
support at esacademy dot com

ILIGYUdsfi

#4
The casesam bug? Maybe i should update ourcase it to solve the problem.