Author Topic: LPC1768 Command Line  (Read 5689 times)

Adum

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
    • Email
LPC1768 Command Line
« 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

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2190
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: LPC1768 Command Line
« Reply #1 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
Embedded Systems Academy, Inc.
support at esacademy dot com

Adum

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
    • Email
Re: LPC1768 Command Line
« Reply #2 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).


Quote
DEVICE(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

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2190
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: LPC1768 Command Line
« Reply #3 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
« Last Edit: September 09, 2015, 04:12:16 am by Andy Ayre »
Embedded Systems Academy, Inc.
support at esacademy dot com

ILIGYUdsfi

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Re: LPC1768 Command Line
« Reply #4 on: November 02, 2015, 12:15:11 am »
The casesam bug? Maybe i should update ourcase it to solve the problem.
« Last Edit: November 02, 2015, 06:06:09 pm by ILIGYUdsfi »