CrowPanel ESP32 E-Paper 4.2 crash
I use VisualCode and PlatformIO for programming.
The example code "Openweather" for this display is already compiled and loaded, but the Panel flickers only, no picture.
In the serial monitor see:
Connecting
.
Connected to WiFi network with IP Address: 192.168.0.91
Timer set to 10 seconds (timerDelay variable), it will take 10 seconds before publishing the first reading.
HTTP Response code: 200
{"coord":{"lon":13.6691,"lat":50.8962}
.................... another
String sea_level: 1021
String wind_speed: 2.24
String city_js: "Dippoldiswalde"
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x8 (TG1WDT_SYS_RST),boot:0x2b (SPI_FAST_FLASH_BOOT)
Saved PC:0x42017693
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x4bc
load:0x403c9700,len:0xbd8
load:0x403cc700,len:0x2a0c
entry 0x403c98d0
My platformio.ini:
[env:esp32-s3-devkitm-1]
platform = espressif32
;board = freenove_esp32_s3_wroom
board = esp32-s3-devkitm-1
framework = arduino
lib_deps =
;bblanchon/ArduinoJson@^7.3.1
arduino-libraries/Arduino_JSON@^0.2.0
board_build.partitions = partitions_default.csv
Tagged:
Comments
Hi, gerryvel,
Since The wiki does not write coding support for PlatformIO, Is it normal when developing with Arduino?
Yes, it's the same with Arduino. The code crash by use the first position "memset" in the void UI_weather_forecast.
// Display city information
memset(buffer, 0, sizeof(buffer));
snprintf(buffer, sizeof(buffer), "%s ", city_js); // Format city information as a string
EPD_ShowString(301, 51, buffer, 16, BLACK); // Display city name
Serial.println("Display city information");