This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to burn a large volume of bytes (>40k) into the eprom?

How to burn a large volume of bytes (>40k) into the eprom?

I read the previous discussion on creating data-only hex file, http://www.keil.com/support/docs/2070.htm. The problem is that I cannot hard-code the bytes in an array, like,

   const code my_bytes[] =  { _byte1, _byte2, _byte3 };

The reason is that the number of byte is too big (>40k), thus I have to read them from a file.

As matter of fact, this set of bytes is a Java bytecode. First, I load a set of C codes which runs as the Java VM. Second, The VM reads the Java bytecode from a fixed address. In other words, my question is how to load the Java bytecode to a specified location.

Many thanks beforehand,
Kan

Parents
  • There are a number of hex editors available that could accommodate your needs. I recently had occasion to research the currently available editors, since the one I had been using lacked some of the more advanced that I now require. The result of this research for a product that best suited my requirements was 010 Editor available here:

    http://www.sweetscape.com/010editor/

    To test how it might handle your requirements, I loaded an arbitrary binary file and then exported it to an Intel HEX file and was able to specify the start address. Well that task itself is probably easily performed by a number of hex editors, but where 010 Editor may shine, is its ability to automate tasks using C language scripts. For example, if you wanted to load your program's HEX file, then "merge/append a binary file at a specific address, then save the new larger program-with-bytecodes image to HEX file, you could automate all of this using a script.

Reply
  • There are a number of hex editors available that could accommodate your needs. I recently had occasion to research the currently available editors, since the one I had been using lacked some of the more advanced that I now require. The result of this research for a product that best suited my requirements was 010 Editor available here:

    http://www.sweetscape.com/010editor/

    To test how it might handle your requirements, I loaded an arbitrary binary file and then exported it to an Intel HEX file and was able to specify the start address. Well that task itself is probably easily performed by a number of hex editors, but where 010 Editor may shine, is its ability to automate tasks using C language scripts. For example, if you wanted to load your program's HEX file, then "merge/append a binary file at a specific address, then save the new larger program-with-bytecodes image to HEX file, you could automate all of this using a script.

Children