Export compiled binary without hardware - reg

Good day,

  1. When i exported compiled binary of "beneater hex display". I am getting the first line hex code . 3A 31 30 30 30 30 30 30 30 30 43 39 34 36 32 30 .
  2. Important note: i am not using any eeprom . so i can understand the value will vary.
  3. The actual first line hex code of EEPROM (after writing and reading it) is : 7e 30 6d 79 33 5b 5f 70 7f 7b 7e 30 6d 79 33 5b .
  4. Now my needs is how to to generate actual result of eeprom hex file like in 3rd point, without using hardware.
  5. Is there any way to write code for that . or any virtual eeprom , virtual shift register available to connect with arduino , so i can read it from serial port. Thank you.

Welcome to the forum.

What is your goal ? To get the translation code as data in a sketch and run it on a Arduino board ?

Website Ben Eater: https://eater.net/
Video by Ben Eater with hex display with EEPROM: https://www.youtube.com/watch?v=dLh1n2dErzE
Video by Ben Eater with logic chips for a 7-segment display: https://www.youtube.com/watch?v=7zffjsXqATg

We use a library for the 7-segment displays. Those libraries take care of multiplexing when more than one digit is used. This is with and without multiplexing (without library): https://wokwi.com/projects/397598198000164865
The TM1637 is even better, it has only control signals and it takes care of the multiplexing itself: https://wokwi.com/projects/356661328560439297

Thank you for the information.
I need hex file of that wokwi project. And in that hex file, first line should be like below
"7e 30 6d 79 33 5b 5f 70 7f 7b 7e 30 6d 79 33 5b" .
My aim is to get hex file result like above line without using real boards .

Sorry but you are not that clear.
Do you want an '.hex' file composed of 16 bytes like you posted ( generally called a bin file )?
Use an hex editor ( there are online too ).
You need the file in 'intel hex format'?.
Search for 'intel hex editor' ( this should do also motorola s-record )

Do you want an '.hex' file composed of 16 bytes like you posted ( generally called a bin file )?

Actually i need intel hex. but that's not a problem for me . because bin file is also not giving the output which i posted . bin output is
"0C 94 62 00 0C 94 8A 00 0C 94 8A 00 0C 94 8A 00" . i am already using jeex.
my problem is the result of intel hex file is not same as my posted hex file. so i need a way to get the posted hex value.because this hex value only will give exact output "7e 30 6d 79 33 5b 5f 70 7f 7b 7e 30 6d 79 33 5b" . so an emulator or some code guide will be helpful .Thank you.

Still a little confused, but you say:

Actually i need intel hex

And then:

give exact output "7e 30 6d 79 33 5b 5f 70 7f 7b 7e 30 6d 79 33 5b"

So use the intel hex editor ( like this ) enter the above values and save as hex intel file format

P.S.
Where do you have to use this file?

This is the link to beneater multiplexed-display code .
"eeprom-programmer/multiplexed-display/multiplexed-display.ino at master · beneater/eeprom-programmer · GitHub"
I am using this code in arduino . "When i exported compiled binary" the result of intel hex file /bin file is not same as result of beneater hex file . so i need some way to get the result of beneater hex file. Any code guide will be helpful.

You do realise, you could strip off the leading address bytes, and the trailing checksum byte from each line of an Intel HEX file, and voila, you’ve got the goods.

No idea where it belongs in memory, or if it’s error-free, but there it is,

If the two files differ I'd say on or more of the following:

  • the source program is not the same
  • the compiler ( board ) is not the same
  • the version of the compiler is not the same
  • the option used in the compiler are not the same
  • the operating system used is not the same

P.S.
Out of curiosity why do you need to have the same result ( if both hex files are ok )?
Afterall the sketch is used only to program the eeprom with a particular 'pattern' of 4Kb ( do you need this pattern )?

thank you all for the suggestions. i am just trying to understand the code. for example , if i am practicing c program for addition, when i run it with compiler it will produce the result. Like that here i am trying that. Anyway i am able to understand the situation in arduino and will try to adapt or will try to find another way for this topic.