Closed gdbdzgd closed 2 years ago
Hi, You probably are using ESP32 Wroom instead of Wrover - and you don't have psram. Check here (https://github.com/Saur0o0n/PIDKiln/issues/2#issuecomment-613921578), it should work without it.
@Saur0o0n tks。 i‘ll try the #2 ’s Code。
i change the line's and i got loop error too.
diff --git a/PIDKiln_LCD.ino b/PIDKiln_LCD.ino
index 7686c8a..0752277 100644
--- a/PIDKiln_LCD.ino
+++ b/PIDKiln_LCD.ino
@@ -715,11 +715,11 @@ char msg[100];
Initialize_program_to_run(); // clear current program
sprintf(msg,"Manually created quick program.");
DBG dbgLog(LOG_DEBUG,"[LCD] Replacing current program in memory:%d \n",strlen(msg));
- Program_run_desc=(char *)ps_malloc((strlen(msg)+1)*sizeof(char));
+ Program_run_desc=(char *)malloc((strlen(msg)+1)*sizeof(char));
strcpy(Program_run_desc,msg);
sprintf(msg,"QuickProgram");
DBG dbgLog(LOG_DEBUG,"[LCD] Replacing current program in memory:%d \n",strlen(msg));
- Program_run_name=(char *)ps_malloc((strlen(msg)+1)*sizeof(char));
+ Program_run_name=(char *)malloc((strlen(msg)+1)*sizeof(char));
strcpy(Program_run_name,msg);
Update_program_step(0, qp[0], qp[1], qp[2]);
Program_run_state=PR_READY;
diff --git a/PIDKiln_http.ino b/PIDKiln_http.ino
index 36ccd79..0a08021 100644
--- a/PIDKiln_http.ino
+++ b/PIDKiln_http.ino
@@ -562,7 +562,7 @@ boolean save=false;
// we have some errors add new field to error list
if(Errors!=NULL){
DBG dbgLog(LOG_DEBUG,"[HTTP] Realloc call of size %d\n",(strlen(Errors)+p->name().length()+3)*sizeof(char));
- Errors=(char *)ps_realloc(Errors,(strlen(Errors)+p->name().length()+3)*sizeof(char));
+ Errors=(char *)realloc(Errors,(strlen(Errors)+p->name().length()+3)*sizeof(char));
strcat(Errors," ");
strcat(Errors,p->name().c_str());
DBG dbgLog(LOG_DEBUG,"[HTTP] Errors now:%s\n",Errors);
@@ -655,7 +655,7 @@ char *screenshot;
void out(const char *s){strcat(screenshot,s);}
void do_screenshot(AsyncWebServerRequest *request){
- screenshot=(char *)ps_malloc(SCREEN_W*SCREEN_H*2*sizeof(char)+1);
+ screenshot=(char *)malloc(SCREEN_W*SCREEN_H*2*sizeof(char)+1);
if(screenshot==NULL){
DBG dbgLog(LOG_ERR,"[HTTP] Failed to allocate memory for screenshot");
request->send(500);
diff --git a/PIDKiln_logs.ino b/PIDKiln_logs.ino
index 3023e90..d85ae59 100644
--- a/PIDKiln_logs.ino
+++ b/PIDKiln_logs.ino
@@ -140,7 +140,7 @@ File dir,file;
DBG dbgLog(LOG_INFO,"[LOG] Loading dir:\tcounted %d files\n",count);
if(Logs_DIR) free(Logs_DIR);
- Logs_DIR=(DIRECTORY*)ps_malloc(sizeof(DIRECTORY)*count);
+ Logs_DIR=(DIRECTORY*)malloc(sizeof(DIRECTORY)*count);
Logs_DIR_size=0;
dir.rewindDirectory();
while((file=dir.openNextFile()) && Logs_DIR_size<=count){ // now we do acctual loading into memory
diff --git a/PIDKiln_program.ino b/PIDKiln_program.ino
index 66d1dd8..c13500b 100644
--- a/PIDKiln_program.ino
+++ b/PIDKiln_program.ino
@@ -135,7 +135,7 @@ File dir,file;
while(dir.openNextFile()) count++; // not the prettiest - but we count files first to do proper malloc without fragmenting memory
DBG dbgLog(LOG_DEBUG,"[PRG]\tcounted %d files\n",count);
if(Programs_DIR) free(Programs_DIR);
- Programs_DIR=(DIRECTORY*)ps_malloc(sizeof(DIRECTORY)*count);
+ Programs_DIR=(DIRECTORY*)malloc(sizeof(DIRECTORY)*count);
Programs_DIR_size=0;
dir.rewindDirectory();
while((file=dir.openNextFile()) && Programs_DIR_size<=count){ // now we do acctual loading into memory
@@ -186,7 +186,7 @@ void Update_program_step(uint8_t sstep, uint16_t stemp, uint16_t stime, uint16_t
if(Program_run_size<=sstep)
if(Program_run_size==sstep){ // we are out of the program - but this is just NEXT step, we can add
Program_run_size++;
- Program_run=(PROGRAM *)ps_realloc(Program_run,sizeof(PROGRAM)*Program_run_size);
+ Program_run=(PROGRAM *)realloc(Program_run,sizeof(PROGRAM)*Program_run_size);
}else return; // we are out of the program - we can edit it
Program_run[sstep].temp=stemp;
@@ -221,12 +221,12 @@ void Initialize_program_to_run(){
void Load_program_to_run(){
Initialize_program_to_run();
- Program_run=(PROGRAM *)ps_malloc(sizeof(PROGRAM)*Program_size);
+ Program_run=(PROGRAM *)malloc(sizeof(PROGRAM)*Program_size);
for(uint8_t a=0;a<Program_size;a++) Program_run[a]=Program[a];
- Program_run_desc=(char *)ps_malloc((Program_desc.length()+1)*sizeof(char));
+ Program_run_desc=(char *)malloc((Program_desc.length()+1)*sizeof(char));
strcpy(Program_run_desc,Program_desc.c_str());
- Program_run_name=(char *)ps_malloc((Program_name.length()+1)*sizeof(char));
+ Program_run_name=(char *)malloc((Program_name.length()+1)*sizeof(char));
strcpy(Program_run_name,Program_name.c_str());
Program_run_size=Program_size;
Program_run_state=PR_READY;
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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5828
entry 0x400806a8
[E][esp32-hal-misc.c:111] disableCore1WDT(): Failed to remove Core 1 IDLE task from WDT
[PREFS] Loading prefs from file[PREFS] -=-=-= PREFS DISPLAY =-=-=-[PREFS] 1) 'WiFi_SSID' = '' 4
[PREFS] 2) 'WiFi_Password' = '' 4
[PREFS] 3) 'WiFi_Mode' = '1' 1
[PREFS] 4) 'WiFi_Retry_cnt' = '6' 1
[PREFS] 8) 'HTTP_Local_JS' = '0' 1
[PREFS] 9) 'Auth_Username' = 'admin' 4
[PREFS] 10) 'Auth_Password' = 'hotashell' 4
[PREFS] 11) 'NTP_Server1' = 'pool.ntp.org' 4
[PREFS] 12) 'NTP_Server2' = '' 4
[PREFS] 13) 'NTP_Server3' = '' 4
[PREFS] 14) 'GMT_Offset_sec' = '0' 3
[PREFS] 15) 'Daylight_Offset_sec' = '0' 3
[PREFS] 16) 'Initial_Date' = '2012-02-20' 4
[PREFS] 17) 'Initial_Time' = '00: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' = '130' 2
[PREFS] 30) 'Alarm_Timeout' = '0' 2
[PREFS] 31) 'MAX31855_Error_Grace_Count' = '0' 1
[PREFS] 32) 'DBG_Serial' = '1' 1
[PREFS] 33) 'DBG_Syslog' = '0' 1
[PREFS] 34) 'DBG_Syslog_Srv' = '' 4
[PREFS] 35) 'DBG_Syslog_Port' = '0' 2
WiFi mode: 1, Retry count: 6, is wifi enabled: 4
[NET] Y:2012 [NET] M:02 [NET] D:20 [NET] H:00 [NET] m:00 [NET] s:00
Brownout detector was triggered
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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5828
entry 0x400806a8
[E][esp32-hal-misc.c:111] disableCore1WDT(): Failed to remove Core 1 IDLE task from WDT
[PREFS] Loading prefs from file[PREFS] -=-=-= PREFS DISPLAY =-=-=-[PREFS] 1) 'WiFi_SSID' = '' 4
[PREFS] 2) 'WiFi_Password' = '' 4
[PREFS] 3) 'WiFi_Mode' = '1' 1
[PREFS] 4) 'WiFi_Retry_cnt' = '6' 1
[PREFS] 8) 'HTTP_Local_JS' = '0' 1
[PREFS] 9) 'Auth_Username' = 'admin' 4
[PREFS] 10) 'Auth_Password' = 'hotashell' 4
[PREFS] 11) 'NTP_Server1' = 'pool.ntp.org' 4
[PREFS] 12) 'NTP_Server2' = '' 4
[PREFS] 13) 'NTP_Server3' = '' 4
[PREFS] 14) 'GMT_Offset_sec' = '0' 3
[PREFS] 15) 'Daylight_Offset_sec' = '0' 3
[PREFS] 16) 'Initial_Date' = '2012-02-20' 4
[PREFS] 17) 'Initial_Time' = '00: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' = '130' 2
[PREFS] 30) 'Alarm_Timeout' = '0' 2
[PREFS] 31) 'MAX31855_Error_Grace_Count' = '0' 1
[PREFS] 32) 'DBG_Serial' = '1' 1
[PREFS] 33) 'DBG_Syslog' = '0' 1
[PREFS] 34) 'DBG_Syslog_Srv' = '' 4
[PREFS] 35) 'DBG_Syslog_Port' = '0' 2
WiFi mode: 1, Retry count: 6, is wifi enabled: 4
[NET] Y:2012 [NET] M:02 [NET] D:20 [NET] H:00 [NET] m:00 [NET] s:00
Brownout detector was triggered
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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5828
entry 0x400806a8
[E][esp32-hal-misc.c:111] disableCore1WDT(): Failed to remove Core 1 IDLE task from WDT
[PREFS] Loading prefs from file[PREFS] -=-=-= PREFS DISPLAY =-=-=-[PREFS] 1) 'WiFi_SSID' = '' 4
[PREFS] 2) 'WiFi_Password' = '' 4
[PREFS] 3) 'WiFi_Mode' = '1' 1
[PREFS] 4) 'WiFi_Retry_cnt' = '6' 1
[PREFS] 8) 'HTTP_Local_JS' = '0' 1
[PREFS] 9) 'Auth_Username' = 'admin' 4
[PREFS] 10) 'Auth_Password' = 'hotashell' 4
[PREFS] 11) 'NTP_Server1' = 'pool.ntp.org' 4
[PREFS] 12) 'NTP_Server2' = '' 4
[PREFS] 13) 'NTP_Server3' = '' 4
[PREFS] 14) 'GMT_Offset_sec' = '0' 3
[PREFS] 15) 'Daylight_Offset_sec' = '0' 3
[PREFS] 16) 'Initial_Date' = '2012-02-20' 4
[PREFS] 17) 'Initial_Time' = '00: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' = '130' 2
[PREFS] 30) 'Alarm_Timeout' = '0' 2
[PREFS] 31) 'MAX31855_Error_Grace_Count' = '0' 1
[PREFS] 32) 'DBG_Serial' = '1' 1
[PREFS] 33) 'DBG_Syslog' = '0' 1
[PREFS] 34) 'DBG_Syslog_Srv' = '' 4
[PREFS] 35) 'DBG_Syslog_Port' = '0' 2
i have bus some esp32 dev board with psram , but's need some days.
i change the line's and i got loop error too.
diff --git a/PIDKiln_LCD.ino b/PIDKiln_LCD.ino index 7686c8a..0752277 100644 --- a/PIDKiln_LCD.ino +++ b/PIDKiln_LCD.ino @@ -715,11 +715,11 @@ char msg[100]; Initialize_program_to_run(); // clear current program sprintf(msg,"Manually created quick program."); DBG dbgLog(LOG_DEBUG,"[LCD] Replacing current program in memory:%d \n",strlen(msg)); - Program_run_desc=(char *)ps_malloc((strlen(msg)+1)*sizeof(char)); + Program_run_desc=(char *)malloc((strlen(msg)+1)*sizeof(char)); strcpy(Program_run_desc,msg); sprintf(msg,"QuickProgram"); DBG dbgLog(LOG_DEBUG,"[LCD] Replacing current program in memory:%d \n",strlen(msg)); - Program_run_name=(char *)ps_malloc((strlen(msg)+1)*sizeof(char)); + Program_run_name=(char *)malloc((strlen(msg)+1)*sizeof(char)); strcpy(Program_run_name,msg); Update_program_step(0, qp[0], qp[1], qp[2]); Program_run_state=PR_READY; diff --git a/PIDKiln_http.ino b/PIDKiln_http.ino index 36ccd79..0a08021 100644 --- a/PIDKiln_http.ino +++ b/PIDKiln_http.ino @@ -562,7 +562,7 @@ boolean save=false; // we have some errors add new field to error list if(Errors!=NULL){ DBG dbgLog(LOG_DEBUG,"[HTTP] Realloc call of size %d\n",(strlen(Errors)+p->name().length()+3)*sizeof(char)); - Errors=(char *)ps_realloc(Errors,(strlen(Errors)+p->name().length()+3)*sizeof(char)); + Errors=(char *)realloc(Errors,(strlen(Errors)+p->name().length()+3)*sizeof(char)); strcat(Errors," "); strcat(Errors,p->name().c_str()); DBG dbgLog(LOG_DEBUG,"[HTTP] Errors now:%s\n",Errors); @@ -655,7 +655,7 @@ char *screenshot; void out(const char *s){strcat(screenshot,s);} void do_screenshot(AsyncWebServerRequest *request){ - screenshot=(char *)ps_malloc(SCREEN_W*SCREEN_H*2*sizeof(char)+1); + screenshot=(char *)malloc(SCREEN_W*SCREEN_H*2*sizeof(char)+1); if(screenshot==NULL){ DBG dbgLog(LOG_ERR,"[HTTP] Failed to allocate memory for screenshot"); request->send(500); diff --git a/PIDKiln_logs.ino b/PIDKiln_logs.ino index 3023e90..d85ae59 100644 --- a/PIDKiln_logs.ino +++ b/PIDKiln_logs.ino @@ -140,7 +140,7 @@ File dir,file; DBG dbgLog(LOG_INFO,"[LOG] Loading dir:\tcounted %d files\n",count); if(Logs_DIR) free(Logs_DIR); - Logs_DIR=(DIRECTORY*)ps_malloc(sizeof(DIRECTORY)*count); + Logs_DIR=(DIRECTORY*)malloc(sizeof(DIRECTORY)*count); Logs_DIR_size=0; dir.rewindDirectory(); while((file=dir.openNextFile()) && Logs_DIR_size<=count){ // now we do acctual loading into memory diff --git a/PIDKiln_program.ino b/PIDKiln_program.ino index 66d1dd8..c13500b 100644 --- a/PIDKiln_program.ino +++ b/PIDKiln_program.ino @@ -135,7 +135,7 @@ File dir,file; while(dir.openNextFile()) count++; // not the prettiest - but we count files first to do proper malloc without fragmenting memory DBG dbgLog(LOG_DEBUG,"[PRG]\tcounted %d files\n",count); if(Programs_DIR) free(Programs_DIR); - Programs_DIR=(DIRECTORY*)ps_malloc(sizeof(DIRECTORY)*count); + Programs_DIR=(DIRECTORY*)malloc(sizeof(DIRECTORY)*count); Programs_DIR_size=0; dir.rewindDirectory(); while((file=dir.openNextFile()) && Programs_DIR_size<=count){ // now we do acctual loading into memory @@ -186,7 +186,7 @@ void Update_program_step(uint8_t sstep, uint16_t stemp, uint16_t stime, uint16_t if(Program_run_size<=sstep) if(Program_run_size==sstep){ // we are out of the program - but this is just NEXT step, we can add Program_run_size++; - Program_run=(PROGRAM *)ps_realloc(Program_run,sizeof(PROGRAM)*Program_run_size); + Program_run=(PROGRAM *)realloc(Program_run,sizeof(PROGRAM)*Program_run_size); }else return; // we are out of the program - we can edit it Program_run[sstep].temp=stemp; @@ -221,12 +221,12 @@ void Initialize_program_to_run(){ void Load_program_to_run(){ Initialize_program_to_run(); - Program_run=(PROGRAM *)ps_malloc(sizeof(PROGRAM)*Program_size); + Program_run=(PROGRAM *)malloc(sizeof(PROGRAM)*Program_size); for(uint8_t a=0;a<Program_size;a++) Program_run[a]=Program[a]; - Program_run_desc=(char *)ps_malloc((Program_desc.length()+1)*sizeof(char)); + Program_run_desc=(char *)malloc((Program_desc.length()+1)*sizeof(char)); strcpy(Program_run_desc,Program_desc.c_str()); - Program_run_name=(char *)ps_malloc((Program_name.length()+1)*sizeof(char)); + Program_run_name=(char *)malloc((Program_name.length()+1)*sizeof(char)); strcpy(Program_run_name,Program_name.c_str()); Program_run_size=Program_size; Program_run_state=PR_READY;
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:2 load:0x3fff0018,len:4 load:0x3fff001c,len:1044 load:0x40078000,len:10124 load:0x40080400,len:5828 entry 0x400806a8 [E][esp32-hal-misc.c:111] disableCore1WDT(): Failed to remove Core 1 IDLE task from WDT [PREFS] Loading prefs from file[PREFS] -=-=-= PREFS DISPLAY =-=-=-[PREFS] 1) 'WiFi_SSID' = '' 4 [PREFS] 2) 'WiFi_Password' = '' 4 [PREFS] 3) 'WiFi_Mode' = '1' 1 [PREFS] 4) 'WiFi_Retry_cnt' = '6' 1 [PREFS] 8) 'HTTP_Local_JS' = '0' 1 [PREFS] 9) 'Auth_Username' = 'admin' 4 [PREFS] 10) 'Auth_Password' = 'hotashell' 4 [PREFS] 11) 'NTP_Server1' = 'pool.ntp.org' 4 [PREFS] 12) 'NTP_Server2' = '' 4 [PREFS] 13) 'NTP_Server3' = '' 4 [PREFS] 14) 'GMT_Offset_sec' = '0' 3 [PREFS] 15) 'Daylight_Offset_sec' = '0' 3 [PREFS] 16) 'Initial_Date' = '2012-02-20' 4 [PREFS] 17) 'Initial_Time' = '00: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' = '130' 2 [PREFS] 30) 'Alarm_Timeout' = '0' 2 [PREFS] 31) 'MAX31855_Error_Grace_Count' = '0' 1 [PREFS] 32) 'DBG_Serial' = '1' 1 [PREFS] 33) 'DBG_Syslog' = '0' 1 [PREFS] 34) 'DBG_Syslog_Srv' = '' 4 [PREFS] 35) 'DBG_Syslog_Port' = '0' 2 WiFi mode: 1, Retry count: 6, is wifi enabled: 4 [NET] Y:2012 [NET] M:02 [NET] D:20 [NET] H:00 [NET] m:00 [NET] s:00 Brownout detector was triggered 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:2 load:0x3fff0018,len:4 load:0x3fff001c,len:1044 load:0x40078000,len:10124 load:0x40080400,len:5828 entry 0x400806a8 [E][esp32-hal-misc.c:111] disableCore1WDT(): Failed to remove Core 1 IDLE task from WDT [PREFS] Loading prefs from file[PREFS] -=-=-= PREFS DISPLAY =-=-=-[PREFS] 1) 'WiFi_SSID' = '' 4 [PREFS] 2) 'WiFi_Password' = '' 4 [PREFS] 3) 'WiFi_Mode' = '1' 1 [PREFS] 4) 'WiFi_Retry_cnt' = '6' 1 [PREFS] 8) 'HTTP_Local_JS' = '0' 1 [PREFS] 9) 'Auth_Username' = 'admin' 4 [PREFS] 10) 'Auth_Password' = 'hotashell' 4 [PREFS] 11) 'NTP_Server1' = 'pool.ntp.org' 4 [PREFS] 12) 'NTP_Server2' = '' 4 [PREFS] 13) 'NTP_Server3' = '' 4 [PREFS] 14) 'GMT_Offset_sec' = '0' 3 [PREFS] 15) 'Daylight_Offset_sec' = '0' 3 [PREFS] 16) 'Initial_Date' = '2012-02-20' 4 [PREFS] 17) 'Initial_Time' = '00: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' = '130' 2 [PREFS] 30) 'Alarm_Timeout' = '0' 2 [PREFS] 31) 'MAX31855_Error_Grace_Count' = '0' 1 [PREFS] 32) 'DBG_Serial' = '1' 1 [PREFS] 33) 'DBG_Syslog' = '0' 1 [PREFS] 34) 'DBG_Syslog_Srv' = '' 4 [PREFS] 35) 'DBG_Syslog_Port' = '0' 2 WiFi mode: 1, Retry count: 6, is wifi enabled: 4 [NET] Y:2012 [NET] M:02 [NET] D:20 [NET] H:00 [NET] m:00 [NET] s:00 Brownout detector was triggered 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:2 load:0x3fff0018,len:4 load:0x3fff001c,len:1044 load:0x40078000,len:10124 load:0x40080400,len:5828 entry 0x400806a8 [E][esp32-hal-misc.c:111] disableCore1WDT(): Failed to remove Core 1 IDLE task from WDT [PREFS] Loading prefs from file[PREFS] -=-=-= PREFS DISPLAY =-=-=-[PREFS] 1) 'WiFi_SSID' = '' 4 [PREFS] 2) 'WiFi_Password' = '' 4 [PREFS] 3) 'WiFi_Mode' = '1' 1 [PREFS] 4) 'WiFi_Retry_cnt' = '6' 1 [PREFS] 8) 'HTTP_Local_JS' = '0' 1 [PREFS] 9) 'Auth_Username' = 'admin' 4 [PREFS] 10) 'Auth_Password' = 'hotashell' 4 [PREFS] 11) 'NTP_Server1' = 'pool.ntp.org' 4 [PREFS] 12) 'NTP_Server2' = '' 4 [PREFS] 13) 'NTP_Server3' = '' 4 [PREFS] 14) 'GMT_Offset_sec' = '0' 3 [PREFS] 15) 'Daylight_Offset_sec' = '0' 3 [PREFS] 16) 'Initial_Date' = '2012-02-20' 4 [PREFS] 17) 'Initial_Time' = '00: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' = '130' 2 [PREFS] 30) 'Alarm_Timeout' = '0' 2 [PREFS] 31) 'MAX31855_Error_Grace_Count' = '0' 1 [PREFS] 32) 'DBG_Serial' = '1' 1 [PREFS] 33) 'DBG_Syslog' = '0' 1 [PREFS] 34) 'DBG_Syslog_Srv' = '' 4 [PREFS] 35) 'DBG_Syslog_Port' = '0' 2
the loop error is the cable 's problem. the pidkiln is work!
You have "Brownout detector was triggered" - this usually means you have some board power issues (to low, unstable during startup etc).
@Saur0o0n thank you .the cable's problem , voltage is too low 4.6v ,when the board is running is will triger to restart. the #2 ’s Code I have tested , that's OK.
build from source or update from ota ,all loop in the error ,any one can help me?
error decode: