-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Description
Board
ESP32-D0WD-V3 (revision 3)
Device Description
Dev board ESP32-WROOM
Hardware Configuration
// ESP32 pins used
#define TFT_CS 33
#define TFT_DC 15
#define TFT_RST 32
#define TFT_WR 4
#define TFT_RD 2
#define TFT_D0 12
#define TFT_D1 13
#define TFT_D2 26
#define TFT_D3 25
#define TFT_D4 17
#define TFT_D5 16
#define TFT_D6 27
#define TFT_D7 14
#define TFT_BL 21
// #define TFT_BL 5
#define BUTTON_A_PIN 39
#define BUTTON_B_PIN 36
Version
v2.0.9
IDE Name
Notepad ++ and arduino-cli
Operating System
Windows 10 Pro
Flash frequency
40 Mhz
PSRAM enabled
yes
Upload speed
921600
Description
The code works, but it's weird.
esp32 sometimes reboots.
error in port monitor
[ 1332][V][Preferences.cpp:400] getUInt(): nvs_get_u32 fail: Brightness NOT_FOUND
[ 9844][V][Preferences.cpp:388] getInt(): nvs_get_i32 fail: 0 NOT_FOUND
[ 9844][V][Preferences.cpp:388] getInt(): nvs_get_i32 fail: 1 NOT_FOUND
[ 9849][V][Preferences.cpp:388] getInt(): nvs_get_i32 fail: 2 NOT_FOUND
Although preferences are indicated and recorded in memory.
Maybe I'm using SPIFFS somehow wrong or the partitions are configured incorrectly - although everything is by default.
PartitionScheme=default
And if I choose the QIO flash mode, the DIO is still launched.
FlashMode=dio
Sketch
//FlightInstruments3.ino line 1225
if (displayMode > 12) {
displayMode = 0;
}
if (displayMode < 0 ) {
displayMode = 12;
}
//flightGauges.h line 154
const String Menu [nItems] = // 20 is maximum to fit on one screen
{
" ASI Enable",
" ALT Enable",
" HDG Enable",
" AI Enable",
" AOA Enable",
" Energy Enable",
" AHRS Debug",
" SYS Debug",
" EMS Debug-1",
" EMS Debug-2",
" EMS Debug-3",
" Graphics Test",
" Restore"
};Debug Message
assert failed: heap_caps_free heap_caps.c:360 (heap != NULL && "free() target pointer is outside heap areas")
Backtrace: 0x400837c1:0x3ffb1f10 0x4008cca1:0x3ffb1f30 0x40092749:0x3ffb1f50 0x40083cfe:0x3ffb2080 0x40092779:0x3ffb20a0 0x400eb8fe:0x3ffb20c0 0x400eb90d:0x3ffb20e0 0x400d3919:0x3ffb2100 0x400dc8ba:0x3ffb2210 0x400ec109:0x3ffb2290
Other Steps to Reproduce
Decoding stack results
0x400837c1: panic_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c line 408
0x4008cca1: esp_system_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_system.c line 137
0x40092749: __assert_func at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/assert.c line 85
0x40083cfe: heap_caps_free at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/heap_caps.c line 360
0x40092779: free at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/heap.c line 39
0x400ef8d6: String::invalidate() at C:\Users\Admin\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.9\cores\esp32/WString.h line 321
0x400ef8e5: String::~String() at C:\Users\Admin\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.9\cores\esp32\WString.cpp line 142
0x400d3e8d: Flight::SystemSetup() at C:\Users\Admin\Documents\Arduino\libraries\GaugeWidgets3\examples\FlightInstruments3/flightGauges.h line 154
0x400dce2a: loop() at C:\Users\Admin\Documents\Arduino\libraries\GaugeWidgets3\examples\FlightInstruments3/FlightInstruments3.ino line 1225
0x400f0115: loopTask(void*) at C:\Users\Admin\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.9\cores\esp32\main.cpp line 50
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Metadata
Metadata
Assignees
Labels
No labels