Want store DynamicJsonDocument in psram on ESP32 Wroover
Description I tring solutions like that. (see Reproduction code) (1) esp reboot endless (2) no memory ( normal) I loking for the good syntax Thanks
Troubleshooter's report
- The issue happens at run time
- The issue concerns deserialization
-
deserializeJson()
returnsNoMemory
- Increasing the capacity of the
JsonDocument
doesn't fix the issue - The
JsonDocument
is aDynamicJsonDocument
-
doc.capacity()
returns the right value - Changing the Assistant settings doesn't solve the issue
Environment
- Microcontroller: ESP32 wroover 4m de psram
- IDE: PIO on visual studio
Reproduction code
in "test.h"
const size_t confSysCapacity = 10240;
(1) DynamicJsonDocument __attribute__((section(".psram"))) JSONconfSys(confSysCapacity);
(2) DynamicJsonDocument JSONconfSys(confSysCapacity);
in "test.cpp"
File SDfile = SD.open(CONFIGFILE);
...
DeserializationError error = deserializeJson(JSONconfSys, SDfile);
Remarks
my mail is 'yann@cesbron.org'
this code is for an association for the physically handicapped, i try help us
you can see the full code on github here: https://github.com/yann-cesbron/HandiPad.git
thank's for your help