Saur0o0n / PIDKiln

Kiln PID controller based on Espressif Systems ESP32 chip board with Arduino IDE.
GNU General Public License v2.0
109 stars 42 forks source link

Problem with compiling #17

Closed Celahirek closed 2 years ago

Celahirek commented 2 years ago

When trying to compile and upload the main files I get this error: I installed all Required software. I'm very much a newbie so all help is appreciated.

Arduino: 1.8.13 (Windows 10), Board: "ESP32 Wrover Module, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), QIO, 80MHz, 921600, None"

C:\Users\filip\Downloads\PIDKiln-1.3\PIDKiln\PIDKiln_http.ino: In function 'String Chart_parser(const String&)':

PIDKiln_http:337:32: error: 'class fs::File' has no member named 'path'

 if(CSVFile) return CSVFile.path();

                            ^

C:\Users\filip\Downloads\PIDKiln-1.3\PIDKiln\PIDKiln_http.ino: In function 'void GET_Handle_Delete(AsyncWebServerRequest*)':

PIDKiln_http:508:78: error: 'class fs::File' has no member named 'path'

DBG dbgLog(LOG_DEBUG,"[HTTP] Opened file is %s, program name is:%s\n",tmpf.path(),p->value().c_str());

                                                                          ^

C:\Users\filip\Downloads\PIDKiln-1.3\PIDKiln\PIDKiln_http.ino: In function 'String handleVars(const String&)':

PIDKiln_http:649:32: error: 'class fs::File' has no member named 'path'

 if(CSVFile) return CSVFile.path();

                            ^

Multiple libraries were found for "PID_v1.h"

Used: C:\Users\filip\Documents\Arduino\libraries\Arduino-PID-Library-master

Not used: C:\Users\filip\Documents\Arduino\libraries\PID

Multiple libraries were found for "WiFi.h"

Used: C:\Users\filip\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi

Not used: C:\Program Files (x86)\Arduino\libraries\WiFi

exit status 1

'class fs::File' has no member named 'path'

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. `

Saur0o0n commented 2 years ago

What version of esp32 framework do you have? It's probably too old.

Celahirek commented 2 years ago

What version of esp32 framework do you have? It's probably too old.

Yeah it was. I updated it and it uploads but there is another problem. It is just stuck in a loop Here is the serial monitor output:

ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_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:1 load:0x3fff0030,len:1324 ho 0 tail 12 room 4 load:0x40078000,len:13508 load:0x40080400,len:3604 entry 0x400805f0 E (208) psram: PSRAM ID read error: 0xffffffff [PREFS] Loading prefs from file[PREFS] -> For WiFi_Retry_cnt saved UINT8 item value:9 type:1 [PREFS] -> For WiFi_Mode saved UINT8 item value:1 type:1 [PREFS] -> For HTTP_Local_JS saved UINT8 item value:1 type:1 [PREFS] -> For Auth_Username saved STRING item value:admin type:4 [PREFS] -> For Auth_Password saved STRING item value:hotashell type:4 [PREFS] -> For NTP_Server1 saved STRING item value:0.pl.pool.ntp.org type:4 [PREFS] -> For NTP_Server2 saved STRING item value:1.pl.pool.ntp.org type:4 [PREFS] -> For NTP_Server3 saved STRING item value:2.pl.pool.ntp.org type:4 [PREFS] -> For GMT_Offset_sec saved INT16 item value:3600 type:3 [PREFS] -> For Daylight_Offset_sec saved INT16 item value:3600 type:3 [PREFS] -> For Initial_Date saved STRING item value:2021-12-02 type:4 [PREFS] -> For Initial_Time saved STRING item value:11:00:00 type:4 [PREFS] -> For PID_Window saved UINT16 item value:5000 type:2 [PREFS] -> For PID_Kp saved VFLOAT item value:20.000000 type:5 [PREFS] -> For PID_Ki saved VFLOAT item value:0.200000 type:5 [PREFS] -> For PID_Kd saved VFLOAT item value:0.100000 type:5 [PREFS] -> For PID_Temp_Threshold saved INT16 item value:-1 type:3 [PREFS] -> For LOG_Window saved UINT16 item value:30 type:2 [PREFS] -> For LOG_Files_Limit saved UINT16 item value:40 type:2 [PREFS] -> For DBG_Serial saved UINT8 item value:1 type:1 [PREFS] -> For DBG_Syslog saved UINT8 item value:0 type:1 [PREFS] -> For DBG_Syslog_Srv saved STRING item value:192.168.1.2 type:4 [PREFS] -> For DBG_Syslog_Port saved UINT16 item value:514 type:2 [PREFS] -> For MIN_Temperature saved UINT8 item value:10 type:1 [PREFS] -> For MAX_Temperature saved UINT16 item value:1350 type:2 [PREFS] -> For MAX_Housing_Temperature saved UINT16 item value:130 type:2 [PREFS] -> For Thermal_Runaway saved UINT16 item value:0 type:2 [PREFS] -> For Alarm_Timeout saved UINT16 item value:5 type:2 [PREFS] -> For MAX31855_Error_Grace_Count saved UINT8 item value:5 type:1 [PREFS] -=-=-= PREFS DISPLAY =-=-=-[PREFS] 1) 'WiFi_SSID' = '' 4 [PREFS] 2) 'WiFi_Password' = '' 4 [PREFS] 3) 'WiFi_Mode' = '1' 1 [PREFS] 4) 'WiFi_Retry_cnt' = '9' 1 [PREFS] 8) 'HTTP_Local_JS' = '1' 1 [PREFS] 9) 'Auth_Username' = 'admin' 4 [PREFS] 10) 'Auth_Password' = 'hotashell' 4 [PREFS] 11) 'NTP_Server1' = '0.pl.pool.ntp.org' 4 [PREFS] 12) 'NTP_Server2' = '1.pl.pool.ntp.org' 4 [PREFS] 13) 'NTP_Server3' = '2.pl.pool.ntp.org' 4 [PREFS] 14) 'GMT_Offset_sec' = '3600' 3 [PREFS] 15) 'Daylight_Offset_sec' = '3600' 3 [PREFS] 16) 'Initial_Date' = '2021-12-02' 4 [PREFS] 17) 'Initial_Time' = '11:00:00' 4 [PREFS] 18) 'PID_Window' = '5000' 2 [PREFS] 22) 'PID_POE' = '0' 1 [PREFS] 23) 'PID_Temp_Threshold' = '-1' 3 [PREFS] 24) 'LOG_Window' = '30' 2 [PREFS] 25) 'LOG_Files_Limit' = '40' 2 [PREFS] 26) 'MIN_Temperature' = '10' 1 [PREFS] 27) 'MAX_Temperature' = '1350' 2 [PREFS] 28) 'MAX_Housing_Temperature' = '130' 2 [PREFS] 29) 'Thermal_Runaway' = '0' 2 [PREFS] 30) 'Alarm_Timeout' = '5' 2 [PREFS] 31) 'MAX31855_Error_Grace_Count' = '5' 1 [PREFS] 32) 'DBG_Serial' = '1' 1 [PREFS] 33) 'DBG_Syslog' = '0' 1 [PREFS] 34) 'DBG_Syslog_Srv' = '192.168.1.2' 4 [PREFS] 35) 'DBG_Syslog_Port' = '514' 2 WiFi mode: 1, Retry count: 9, is wifi enabled: 4 [NET] Y:2021 [NET] M:12 [NET] D:02 [NET] H:11 [NET] m:00 [NET] s:00 [NET] Creating WiFi Access Point (AP)192.168.10.1 [PRG] Loading directory... [PRG] counted 6 files [PRG] Processing filename: program1.txt Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.

Core 1 register dump: PC : 0x4008bac2 PS : 0x00060830 A0 : 0x800da94d A1 : 0x3ffb2620
A2 : 0x00000000 A3 : 0x3ffb2690 A4 : 0x000000ff A5 : 0x0000ff00
A6 : 0x00ff0000 A7 : 0xff000000 A8 : 0x676f7270 A9 : 0x00000069
A10 : 0x00000000 A11 : 0x3ffd5828 A12 : 0x3f401dbd A13 : 0x3ffb2610
A14 : 0x3ffb25e0 A15 : 0x00000008 SAR : 0x00000017 EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000000 LBEG : 0x4008bab5 LEND : 0x4008bacd LCOUNT : 0xffffffff

Backtrace:0x4008babf:0x3ffb26200x400da94a:0x3ffb2630 0x400dab14:0x3ffb26d0 0x400db344:0x3ffb27b0 0x400ec996:0x3ffb2820

ELF file SHA256: 0000000000000000

Rebooting...

Saur0o0n commented 2 years ago

Either you did not upload data to spiffs storage on esp32 or you have wroom (not wrover) without psram.