-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Help identifying problem using Lib EBD + CORE 3.1.0 #8831
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
This would help alot to understand your issue: https://arduino-esp8266.readthedocs.io/en/latest/Troubleshooting/debugging.html https://arduino-esp8266.readthedocs.io/en/latest/Troubleshooting/stack_dump.html |
@d-a-v , |
I made the change from FILE_WRITE to "a+" and it solved the problem. |
Apparently there was a change in CORE for the FILE_WRITE cursor position when opening the file. |
SdFat <-> FS HAL mode translation is not correctly setting 'read' mode, as it turns out. Lines 162 to 164 in e25f9e9
Line 167 in e25f9e9
Line 169 in e25f9e9
Do you have an example of mode and position before and after? |
* re-use SdFat value through static const, no need to hard-code our values w/ cast in the macro * separate read-modes from flags * simple compile-time tests in .cpp resolve esp8266#8831
* re-use SdFat access mode through static const, no need to hard-code our own value w/ cast in the macro * separate read-modes from flags; read, write and rw are distinct numbers * simple compile-time tests in .cpp resolve #8831
* re-use SdFat access mode through static const, no need to hard-code our own value w/ cast in the macro * separate read-modes from flags; read, write and rw are distinct numbers * simple compile-time tests in .cpp resolve esp8266#8831
LIB EBD : https://github.com/jwhiddon/EDB
Platform
Problem Description
The code example below has always worked great on previous cores. I'm having trouble identifying the problem using ESP8266 CORE 3.1.0. The code is working normally when the DB file is created, but when reusing the file an exeption occurs. I think it might be something related to Append or Write x SEEK of the file using SD CARD.
MCVE Sketch
Debug Messages
13:36:36.196 -> Extended Database Library + External SD CARD storage demo
13:36:36.196 ->
13:36:36.196 -> Openning current table... DONE
13:36:36.196 -> Creating Records...
13:36:36.196 -> --------------- CUT HERE FOR EXCEPTION DECODER ---------------
13:36:36.196 ->
13:36:36.196 -> Exception (0):
13:36:36.196 -> epc1=0x4000e25d epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
13:36:36.196 ->
13:36:36.196 -> >>>stack>>>
13:36:36.243 ->
13:36:36.243 -> ctx: cont
13:36:36.243 -> sp: 3ffffd60 end: 3fffffd0 offset: 0190
13:36:36.243 -> 3ffffef0: 00000000 00002710 fffffffc 3ffe890b
13:36:36.243 -> 3fffff00: 4020652c 3ffe88f7 00000001 40206a9a
13:36:36.243 -> 3fffff10: 3ffeeb90 3ffeeb08 00000001 4020139b
13:36:36.243 -> 3fffff20: 3ffeeb10 00000004 3ffeeb90 3ffeeae0
13:36:36.243 -> 3fffff30: 3ffeeb10 3ffeeb90 3ffeeb3c 402016ab
13:36:36.243 -> 3fffff40: feefeffe feefeffe feefeffe feefeffe
13:36:36.243 -> 3fffff50: feefeffe feefeffe 4020a548 00000000
13:36:36.243 -> 3fffff60: 000003e8 3ffefbd0 00000000 00000000
13:36:36.243 -> 3fffff70: 00000000 402026ec 00000000 00000000
13:36:36.291 -> 3fffff80: 3ffeeb58 feefeffe feefeffe feefeffe
13:36:36.291 -> 3fffff90: feefeffe feefeffe feefeffe cff2d90d
13:36:36.291 -> 3fffffa0: feefeffe feefeffe feefeffe 3ffeebfc
13:36:36.291 -> 3fffffb0: 3fffdad0 00000000 3ffeebe8 402071b0
13:36:36.291 -> 3fffffc0: feefeffe feefeffe 3fffdab0 4010103d
13:36:36.291 -> <<<stack<<<
13:36:36.291 ->
The text was updated successfully, but these errors were encountered: