Memory question


Closed Thread
Results 1 to 2 of 2

Thread: Memory question

  1. #1
    Join Date
    Dec 2010
    Posts
    409

    Default Memory question

    This is a basic question I'm almost embarassed to ask, but I'm totally confused...

    I'm using an 18F2580. According to the datasheet, it has 32,000 bytes of flash.
    The program I've written, according to PBP is 27,890 bytes long (getting close), but it generates a HEX file 78,499 bytes.
    Yet it compiles with no errors or warnings, and it loads and runs just fine.

    Why is the hex file so big?

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Memory question

    The .HEX files are Plain Text.
    It takes two characters for each byte, with addresses and checksums on each line.

    They will always be much bigger than the actual size of the program in the PIC chip.
    DT

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts