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
  • At at guess, risky because I haven't bothered to check the manual:

    I'd say the /O option accepts C-format integers, in which case a leading 0 indicates octal format. The number in the .HEX file is in, well, hex.

    0010 == 0x0008 (one eight equals eight ones)
    0030 == 0x0018 (three eights equals one sixteen and eight ones)
    0050 == 0x0028 (five eights equals two sixteens and eight ones)
    0009 == 0x0000 (the digit '9' does not exist in base eight)

Reply
  • At at guess, risky because I haven't bothered to check the manual:

    I'd say the /O option accepts C-format integers, in which case a leading 0 indicates octal format. The number in the .HEX file is in, well, hex.

    0010 == 0x0008 (one eight equals eight ones)
    0030 == 0x0018 (three eights equals one sixteen and eight ones)
    0050 == 0x0028 (five eights equals two sixteens and eight ones)
    0009 == 0x0000 (the digit '9' does not exist in base eight)

Children