New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Used EEPROM addresses #8004
Comments
What about the result of extern "C" uint32_t _EEPROM_start;
...
Serial.printf("eeprom start is %p\n", &_EEPROM_start); The shown result and where EEPROM class is going to read its data depend on the flash configuration used at sketch build time. |
Thanks @d-a-v, I've run the sketch and it gave me a pretty weird result:
Where |
I'm not the expert. Docs say the flash chip is mapped to address |
I see, that's absolutely makes sense.
I thought it a different way.
…On Wed, Apr 28, 2021, 19:15 david gauchard ***@***.***> wrote:
I'm not the expert. Docs say the flash chip is mapped to address
0x40200000.
We have 0x405fb000 - 0x40200000 = 0x3fb000 which is where you stored 5 in
your bin file.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8004 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH3O7J5FTQ3E2VVAEOGVMYDTLAYBLANCNFSM43TT4WYQ>
.
|
Closed due to incorrect understanding of memory mapping.
Thanks @d-a-v, I'd like to have the reference of this information, Couldn't find it. |
@HamzaHajeir the keywords are "esp8266 memory map" |
I've found it, And here's it for reference: |
Basic Infos
Platform
Settings in IDE
Problem Description
A different EEPROM start address to what's mentioned in 4m1m ld script
I'm using the flash tool to upload an integer number that's used in an authentication process beside a MAC address, so I've chosen to upload it using esptool.py, However at the moment I'm using ESP Flash Tool to validate it.
I'm uploading number 5 (in hexadecimal) to address 0x3FB000.
and number 10 (in hexadecimal) to addresss 0x5FB000
The expected result is that EEPROM.read(0) would return 10, It's returning 5.
The two files are just 4 bytes, little endian, with hex view is:
node_id5.bin: 05 00 00 00
node_id10.bin: 0A 00 00 00
The MCVE contains a function that manually reads the target address's content, I can remove it if it's not helping at all.
What should be the issue? I'm not sure why it's reading another address other than the expected one.
MCVE Sketch
Debug Messages
The text was updated successfully, but these errors were encountered: