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
  • Hi, there,

    I tried Keil's BINARY to Intel HEX Converter Utility, it gave me following error.

    $ bin2hex act.class
    
    BIN2HEX Version 1.06
    Copyright (c) 1993-1995 BITWARE.
    All rights reserved.
    
    ERROR: Could not open BIN file act.class.
    Status: BIN to HEX conversion was not successful.
    

    However, I tried a jpg file, it worked.
    $ bin2hex /O0000 foot.jpg
    
    BIN2HEX Version 1.06
    Copyright (c) 1993-1995 BITWARE.
    All rights reserved.
    Status: Creating Intel HEX file.
    Status: Address 0x00000000 exceeds 64K.
    Status: Writing 15 bytes at address 0x00003E80.
    Status: Writing EOF record.
    Status: BIN to HEX conversion was successful.
    

    - Notice that Status: Address 0x00000000 exceeds 64K.. What does this mean?

    - Why does a jpg file work, while a Java bytecode doesn't?

    Also, I tried 010 Hex Editor, it worked for both files.

    many thanks again,
    Kan

Reply
  • Hi, there,

    I tried Keil's BINARY to Intel HEX Converter Utility, it gave me following error.

    $ bin2hex act.class
    
    BIN2HEX Version 1.06
    Copyright (c) 1993-1995 BITWARE.
    All rights reserved.
    
    ERROR: Could not open BIN file act.class.
    Status: BIN to HEX conversion was not successful.
    

    However, I tried a jpg file, it worked.
    $ bin2hex /O0000 foot.jpg
    
    BIN2HEX Version 1.06
    Copyright (c) 1993-1995 BITWARE.
    All rights reserved.
    Status: Creating Intel HEX file.
    Status: Address 0x00000000 exceeds 64K.
    Status: Writing 15 bytes at address 0x00003E80.
    Status: Writing EOF record.
    Status: BIN to HEX conversion was successful.
    

    - Notice that Status: Address 0x00000000 exceeds 64K.. What does this mean?

    - Why does a jpg file work, while a Java bytecode doesn't?

    Also, I tried 010 Hex Editor, it worked for both files.

    many thanks again,
    Kan

Children