0

I'd like to flash the eeprom sector with content so that the eeprom already holds data when it boots the first time. How do I upload such an eeprom file like I would do with avrdude on an atmega? Is there a tool that can be installed in the arduino IDE like the data uploader?

asked Nov 3, 2019 at 14:27
3
  • esptool can download and upload any region of the esp flash Commented Nov 3, 2019 at 14:35
  • @Juraj I can't find any dedicated command line option. Like, for my atmega I would use something like -U eeprom:w.... Do I have to find the address offest myself and if so, where? Actually, where do I find the actual partition table the arduino IDE uses? Commented Nov 3, 2019 at 14:53
  • I said "flash". the esptool command is read_flash and write_flash. I don't write an answer, because I never tested that. Commented Nov 3, 2019 at 18:47

1 Answer 1

1

The ESP8266 has no EEPROM.

Instead the flash memory is partitioned into different areas for different purposes. One of those areas is set aside for "EEPROM Emulation" data.

To upload to that area you first need to know where that area is in the flash memory, and that is dependent on what partitioning scheme you are using at the moment.

Once you have worked that out (look in the partition scheme files in the core for more information) you can then use esptool to upload data to the right area of flash.

answered Nov 3, 2019 at 15:21
1
  • @Juraj I did, yes, but technically I am also correct saying it has no flash, since it relies on an external flash chip :) Commented Nov 3, 2019 at 18:46

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.