Author Topic: Parentheses not possible when programming using command-line  (Read 2125 times)

teknik_kim

  • Jr. Member
  • **
  • Posts: 6
    • View Profile
Parentheses not possible when programming using command-line
« on: November 28, 2014, 08:01:41 am »
Hi

I'm unable to use parentheses (round brackets) in my command line expression to the Flash Magic programmer tool. I've tried the newest version (8.60).

The round brackets are essential for our SPC system.

What can be done to fix this? Workarounds/tips?

My command line expression which fails:
C:\Program Files\Flash Magic\FM.exe com(6, 115200) device(LPC4357,12.000,0) HEXFILE(C:\TESTS\01052201_CONTROL_PCB_(7.1)\BIN\PCBTA_lpc43.HEX, NOCHECKSUMS, NOFILL, PROTECTISP)

This one works due to removed brackets::
C:\Program Files\Flash Magic\FM.exe com(6, 115200) device(LPC4357,12.000,0) HEXFILE(C:\TESTS\01052201_CONTROL_PCB_7.1\BIN\PCBTA_lpc43.HEX, NOCHECKSUMS, NOFILL, PROTECTISP)


Flash Magic Version 8.60.3755
8051/XA Driver Version 3.10.3660
ARM UART Driver Version 4.15.3755
ARM Cortex UART Driver Version 6.35.3755
ARM Ethernet Driver Version 2.06.3660
ARM Cortex Ethernet Driver Version 2.25.3660
ARM CAN Driver Version 2.25.3660
(C) Embedded Systems Academy 2000-2014 All rights reserved
NON PRODUCTION USE ONLY

ERROR: Unknown directive: HEXFILE(C:\TESTS\01052201_CONTROL_PCB_(7
.1)\BIN\PCBTA_lpc43.HEX,

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2105
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Parentheses not possible when programming using command-line
« Reply #1 on: November 28, 2014, 10:03:38 am »
Write a simple batch file that:

  - copies your hex file to a temporary location
  - runs FM.exe to program the temporary file
  - deletes the temporary file

Then run FM only from this batch file.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

teknik_kim

  • Jr. Member
  • **
  • Posts: 6
    • View Profile
Re: Parentheses not possible when programming using command-line
« Reply #2 on: December 01, 2014, 07:55:36 am »
Hi

Yes, that'll work, but I would rather have the executable work with paths which has brackets (they have been around for ages). When could this be possible?


-Kim (FM license owner)

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2105
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Parentheses not possible when programming using command-line
« Reply #3 on: December 01, 2014, 10:01:13 am »
We will look at allowing parentheses in file paths but I am not sure of the timeline for that to happen. It's on the list though.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

teknik_kim

  • Jr. Member
  • **
  • Posts: 6
    • View Profile
Re: Parentheses not possible when programming using command-line
« Reply #4 on: December 01, 2014, 02:44:57 pm »
Hi

Ok, sounds good. Please mention it here and/or the release notes when it happens :)

-Kim