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

oh51 on large file checksum failure

Hi. I am using the Keil "OBJECT TO HEX FILE CONVERTER OH51 V2.6" to convert the OMF file to an Intel .HEX file to download into the C8051F120 part using the Cygnal IDE v1.8. I have a bootloader at address 0000H and the application I am downloading starts at 0C00H. All worked well until my application code got larger. It is now approx. 62k and the bootloader now fails with "Checksum Failure" after a certain number of bytes while downloading the .HEX file. Could there be a problem in the OH51.EXE converter?

I downloaded the .HEX file generated from OH51 directly using the Cygnal IDE, without my bootloader, and it fails to execute.

I am stumped. Any advice on what I should try? From my point of view it seems like the OH51.EXE isn't generating the correct .HEX file when my app is in the 60k range. That just might be a symptom of something else though, I don't know.

Anyone have any ideas? Thank you very much.

Parents
  • Walla! Excellent, that was it. I looked at my erase function and discovered I was only erasing 0C00h to F400h. My bootloader is from 0000h to 0C00h so I don't want to erase that area. But I am not sure why I wasn't erasing F400h to FFFFh. Now I am and it works. Thank you so much.

    --
    Steve

Reply
  • Walla! Excellent, that was it. I looked at my erase function and discovered I was only erasing 0C00h to F400h. My bootloader is from 0000h to 0C00h so I don't want to erase that area. But I am not sure why I wasn't erasing F400h to FFFFh. Now I am and it works. Thank you so much.

    --
    Steve

Children
No data