---
+ Post New Thread
Results 1 to 7 of 7
  1. #1
    Full Member level 5
    Points: 3,454, Level: 13

    Join Date
    Sep 2005
    Location
    Cebu, Philippines
    Posts
    278
    Helped
    29 / 29
    Points
    3,454
    Level
    13

    eeprom initialization

    Hello Evrybody,

    Does anybody know how to write binary file to be loaded to a microntroller for EEPROM initialization using proteus VSM?

    Thanks

    •   Alt6th June 2007, 00:24

      advertising

        
       

  2. #2
    Full Member level 3
    Points: 2,658, Level: 12
    nomad13's Avatar
    Join Date
    Jan 2007
    Posts
    150
    Helped
    18 / 18
    Points
    2,658
    Level
    12

    eeprom and proteus use a hex file

    On the property(edit component) you can find initial contents of memory selection.

    See the pictures below:



    Select the binary file simply by browsing it:




  3. #3
    Full Member level 5
    Points: 3,454, Level: 13

    Join Date
    Sep 2005
    Location
    Cebu, Philippines
    Posts
    278
    Helped
    29 / 29
    Points
    3,454
    Level
    13

    eeprom binary file

    Hello Nomad13,
    That was quick. I mean I don't know how to create binary file from my EEPROM values. I tried to export a EEPROM contents of MPLAB but the output file is a hex fille.

    I appreacite very much you help.

    Thanks



    •   Alt6th June 2007, 01:23

      advertising

        
       

  4. #4
    Full Member level 6
    Points: 6,652, Level: 19

    Join Date
    Jul 2001
    Posts
    322
    Helped
    32 / 32
    Points
    6,652
    Level
    19

    proteus eeprom bin

    You can use the Intel HEX to BINARY File Converter Utility

    h**p://www.keil.com/download/files/hex2bin.zip

    This utility program creates a BINARY file from an Intel HEX file. You can use BINARY files with most EPROM programmers and you can easily use them for CRC or checksum calculations. Options for this utility program are listed below:

    Syntax: HEX2BIN [/option] hexfile [binfile]

    hexfile is the Intel HEX input file
    binfile is the binary file to create

    option may be any of the following

    /Ln Binary file length
    /Pn Pad data for binary file
    /On Address offset (to add to HEX records)
    /M Merge data into existing BIN file
    /Q Quiet mode (no statistics are displayed)
    /X Don't process ext. segment/linear address records

    /? This help text



  5. #5
    Advanced Member level 2
    Points: 5,617, Level: 17
    Kurenai_ryu's Avatar
    Join Date
    Jun 2006
    Location
    Bolivia
    Posts
    571
    Helped
    127 / 127
    Points
    5,617
    Level
    17

    converter arquivo bin de eeprom para texto

    you can also create a simple text file "noname.txt" write some ASCII and rename to "noname.bin" proteus will load the ascii in the eeprom easily... you could also search for an hex-editor like ultraview or free hex editor...

    don't forget, after changin the EEprom file in the pic or the external eeprom, JUST DON'T FORGET to "Reset Model Persistent Data" to make effect the bin file... I have suffered very much before learning that isue....


    1 members found this post helpful.

  6. #6
    Newbie level 2
    Points: 465, Level: 4

    Join Date
    May 2010
    Posts
    2
    Helped
    0 / 0
    Points
    465
    Level
    4

    How to write bin file for EEPROM initialization for Proteus7

    link given by svicent is shifted to,
    h**p://www.keil.com/download/docs/7.asp



  7. #7
    Newbie level 3
    Points: 410, Level: 4

    Join Date
    Sep 2010
    Location
    Bogota D.C., Colombia
    Posts
    3
    Helped
    0 / 0
    Points
    410
    Level
    4

    Re: How to write bin file for EEPROM initialization for Proteus7

    This thread is a somewhat old, but I've just faced the same problem when simulating an ATmega8 and solved it this how:
    Once you have the compiler generate the .eep file with the eeprom contents, run the following inside the directory where all the stuff is located:
    Code:
    avr-objcopy -I ihex -O binary <EEPROMFileGeneratedByCompiler>.eep <YourNewBinFileForProteus>.bin
    Then you'll be able to load the file in Proteus and get your EEPROM stuffed . As mentioned elsewhere, don't forget to check "Reset Persistent Model Data" in the "Debug" menu.

    Greetz



+ Post New Thread
Please login