Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/07/06 14:55
Modified:
  06/07/06 15:02

Read: times


 
#117957 - Rolling your own will be faster
Responding to: ???'s previous message
Jan Waclawek said:
... just simply add a different number directly into the code.

Of course I am able to write my own, but if anything ready-made is flying around, I'd be happy not to do it...

Jan Waclawek

Well, it might not hurt to write your own, simply because the functionality is so trivial that it will likely take you less time to roll your own than evaluate various other tools' suitability for this task. Here's one of the approaches I thought of:
  1. Use Keil's free hex2bin utility to convert to a binary file.
  2. Write a program that:
    1. reads the file into an array of bytes in memory.
    2. writes hard-coded or command line-provided byte location(s) with a serial number from the command line.
    3. writes the array of bytes back to the file.
  3. Use Keil's free bin2hex utility to convert the file back to hex format.
Then, if you like, you can add three lines to your flashing script, and have it completely automated. This might not get points for nice design, but you'll be done in an hour. I'm usually not a fan or reinventing the wheel, but this is more like reinventing the toothpick. :)

--Sasha Jevtic

List of 17 messages in thread
TopicAuthorDate
serial number into intelhex file            01/01/70 00:00      
   I know of none, but            01/01/70 00:00      
      I don't need it to be so "hard"...            01/01/70 00:00      
         Rolling your own will be faster            01/01/70 00:00      
            File manglers            01/01/70 00:00      
   avoid duplicate effort - add to srecord?            01/01/70 00:00      
   hexmate            01/01/70 00:00      
      won't work for me            01/01/70 00:00      
   Shell script or 010Editor            01/01/70 00:00      
      Yadda-yadda-yadda            01/01/70 00:00      
   Resd the specs            01/01/70 00:00      
   Overwrite it            01/01/70 00:00      
      hmm            01/01/70 00:00      
         Serializing            01/01/70 00:00      
   Here is something to try            01/01/70 00:00      
   my thoughts            01/01/70 00:00      
   solved            01/01/70 00:00      

Back to Subject List