Author Topic: Problems with command STARTBOOTLOADER (Command line)  (Read 8686 times)

Rainer

  • Jr. Member
  • **
  • Posts: 1
    • View Profile
Problems with command STARTBOOTLOADER (Command line)
« on: August 05, 2013, 10:35:22 AM »
Hello,

I have tried to set the target device (LPC2106) into ISP mode with the STARTBOOTLOADER command (program version of FM.EXE is 7.51.3222). In my case it is a simple '!' 
So I tried 
Code: [Select]
FM STARTBOOTLOADER(9600, %21, NOCONTROL) in the command line. But nothing happened - the FM-Tool isn't sending anything to target device (I monitor the serial traffic with a COM sniffer tool).
I also tried to specify the COM port and the Device:
Code: [Select]
FM COM(2, 9600) DEVICE(LPC2106, 14.7456, 0) STARTBOOTLOADER(9600, %21, NOCONTROL)The same result -> no reaction on the COM Signal to the target device. Also there was no error message in both cases.

If I try to enter the ISP with a terminal program (HTerm) or even the "Start Bootloader"-Option in the GUI of Flash Magic it works fine.

Other command lines instructions are also working fine. e.g.: it was no problem to flash a hexfile with following instruction
Code: [Select]
FM COM(2, 9600) DEVICE(LPC2106, 14.7456, 0) ERASE(DEVICE, PROTECTISP) HEXFILE(Button.hex, CHECKSUMS, NOFILL, PROTECTISP)
During my experiments with the STARTBOOTLOADER command I tried the '&'-commands which are mentioned in the manual. Especially the &00 command (flush RX buffer). But none of the '&' command seem to work. I always get the error message, that the command 00 is unknown.

Are there some known issues with the STARTBOOTLOADER command or am I just using the wrong parameters?

Best regards

Rainer

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2190
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Problems with command STARTBOOTLOADER (Command line)
« Reply #1 on: August 06, 2013, 04:28:27 AM »
The startbootloader command is not sent if there is no point - i.e. no ISP commands specified. Try this:

Code: [Select]
FM DEVICE(LPC2106, 14.7456, 0) STARTBOOTLOADER(9600, %21, NOCONTROL) COM(2, 9600) ERASE(DEVICE, PROTECTISP) HEXFILE(Button.hex, CHECKSUMS, NOFILL, PROTECTISP)
Andy
« Last Edit: August 06, 2013, 04:30:28 AM by Andy Ayre »
Embedded Systems Academy, Inc.
support at esacademy dot com

processmagic

  • Jr. Member
  • **
  • Posts: 2
  • A Touch of Magic
    • View Profile
    • Seattle Magician
Re: Problems with command STARTBOOTLOADER (Command line)
« Reply #2 on: September 21, 2013, 07:02:04 AM »
Hello same problem is also happen to me to. :'(

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2190
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Problems with command STARTBOOTLOADER (Command line)
« Reply #3 on: September 21, 2013, 07:08:36 AM »
Did you try the suggestion?
Embedded Systems Academy, Inc.
support at esacademy dot com