Author Topic: Execute custom program when programming complete?  (Read 6575 times)


  • Jr. Member
  • **
  • Posts: 1
    • View Profile
Execute custom program when programming complete?
« on: August 29, 2008, 07:22:29 pm »
I found FM can "Play wave file when programming complete".
From the menu "Options"-->"Avanced options"-->"Misc".

I would really be nice to see a new function "Execute custom program when programming complete" can be added in next release version.

For example,I want to program different Hex File (content is different,file name is the same) to the LPC2364 chips.The difference between the Hex Files is just some bytes indicate Ethernet MAC Address,because each chip must have unique Ethernet MAC Address.And I write a program called "update_hex.exe",It opens the Hex File,increase the MAC Address automatically,then modify the MAC Address bytes in the Hex File.

Now, my programing steps are :
1.Click Flash Magic "Start" button to progrmming.
2.Wait until programming is finished.
3.Manually execute my "update_hex.exe" program to increase the MAC Address bytes in the Hex File.
4.Do the steps above again to programming another chip.

But sometimes I forgot the 3rd step(execute update_hex.exe),so some chips have the same MAC Address. :'( :'( ??? ???

So I'd like to see FM can add "Execute custom program when programing complete" function.And I can let FM Execute  "update_hex.exe"  automatically.

« Last Edit: September 10, 2008, 07:38:03 pm by stephen1w »

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2173
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Execute custom program when programming complete?
« Reply #1 on: September 02, 2008, 08:49:39 am »
This is precisely what the Just In Time feature of Flash Magic was developed for. Flash Magic comes with a couple of examples for generating serial numbers. Please refer to the examples and the manual for details.

Embedded Systems Academy, Inc.
support at esacademy dot com