Closed Tony763 closed 3 years ago
Hi @Tony763,
This seems to be a problem in the ESP8266 core, can you try to upgrade/reinstall it?
If this doesn't work, replace error.f_str()
with error.c_str()
.
You may also need to set ARDUINOJSON_ENABLE_PROGMEM to 0
.
Best regards, Benoit
Hi @bblanchon, I updated to latest version of ESP core without change.
With error.c_str()
it's works, could it be mentioned in examples?
Thank you.
some information:
@jjsuwa-sys3175, thanks for the information. I confirm that I can compile with 2.7.4 without any error.
Hi, I use PlatformIO allows me only to update to version 2.6.3. I will open a issue there. Thank You
@Tony763, there seem to be two versions in the Espressif 8266 platform on PlatformIO: the platform version and the framework version.
As you can see, I installed 2.6.3, but the framework is 2.7.4. I find this really confusing, and I'd love to get an explanation... @jjsuwa-sys3175, do you know why it's like that?
Yes I found out that I mistook them. I raised an issue on platformio repository with ask for help.
My version is exactly a same.
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp01_1m.html
PLATFORM: Espressif 8266 (2.6.3) > Espressif Generic ESP8266 ESP-01 1M
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
PACKAGES:
- framework-arduinoespressif8266 3.20704.0 (2.7.4)
- tool-esptool 1.413.0 (4.13)
- tool-esptoolpy 1.30000.201119 (3.0.0)
- toolchain-xtensa 2.40802.200502 (4.8.2)
Did you successfully build the example with Arduino IDE and Platform IO or just with one of them?
I build it successfully with both. The CI contains a build with PlatformIO on ESP8266 as well.
Hello, I have a problem compiling
deserializeJson
example in PlatformIO and Espressif 8266 (2.6.2).Code is placed in function called from class function:
Above code gives me error
error: a15 cannot be used in asm here
.Problem will be with use of
error.f_str()
as if I comment wholeSerial.println(error.f_str());
then code will compile.