-
-
Notifications
You must be signed in to change notification settings - Fork 759
dump() causes reboot if E.setBootCode exists #1239
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
Comments
I think this could be related to bytes being accessed from flash, when a 4 byte word read is required. We have similar code to pull a byte from a double word - just need to find our where the call is failing.... Or the rom offset needs to be added onto the flas address read... |
If it's an unaligned read, it might be a good reason to add the ESP8266 aligned read compiler flag mentioned at #697 (comment) and see if that fixes it? |
Yes - it is a unaligned read. Used -mforce-l32
But this flag blows up the code size..... had to remove crypto to fit on flash :-( |
@MaBecker Perhaps there are other compiler optimise flags that can reduce the code size? For the esp32 idf there is an option to do a core dump on the uart output - you can then take this and using the .elf file, see where the crash occurred - if there is a similar thing for the esp8266 it would help you narrow this fault down... |
@gfwilliams any hints to change the coding to work without -mforce-l32 for ESP8266? |
Find out where it's crashing (is there a way of finding out the instruction's address?), and change the read to one of the macros in jsutils.h However it'd be a mile better if someone would try and help me out with the ... all that does already seem to have been done by other people as well: https://github.com/SuperHouse/esp-open-rtos/blob/master/ld/program.ld |
mforce-l32 stuff here: #697 You could potentially just disable |
@opichals, SDK 2.1 is no help to reduce the flash size for BOARD=ESP8266_BOARD 2.0: user1.bin uses 453236 bytes of 479232 available 2.1: user1.bin uses 455876 bytes of 479232 available |
This can be close because there is no more reboot nice Storage module is implemented. |
using a Flash map 512KB:256/256, manuf 0xe0 chip 0x4016
The text was updated successfully, but these errors were encountered: