No error on compilation but ESP32 didn't read program

Hello all,

I've got a strange issue on ESP32 (ESP32-WROOM-32E-N8) with PlatformIO.
I use a dedicated partition.

When I compile my program, I've got no error at all. Flash is at 99.7% used.
I upload this program on the ESP32 without any issue.

But when the ESP32 start, it loop on this:

rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1344
load:0x40078000,len:13896
load:0x40080400,len:3600
entry 0x400805f0
ets Jul 29 2019 12:21:46

If I remove this line, the ESP32 return on normal operation condition
UrlServeur = doc[0]["K"].as<String>();

I suspect flash size to close to maximum. So I modify plaformio.ini to remove debug information in order to reduce program size and I put again the precedent line.

build_flags = -DCORE_DEBUG_LEVEL=0
debug_build_flags = -Os

When I do that, ESP32 works well again.

So I believe that platformIO miss something on compilation. Is somebody allready have this kind of behavior ?

Thanks for your help !

What is the ["K"] means? Is it an array index?
Array indexes in C/C++ must be integer types or compatible types, for example a char. But the notation "K" represent a string. Do you mean 'K' instead?

Hello,
K is the key in the json I use for configuration.

Hereafter, an example of Json

[{"An":23,"Mo":9,"Jo":5,"He":16,"Mi":1,"A":1,"K":"data.xxxx.fr","J":20000,"L":0,"D":3,"G":0}]

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.