ESP-IDF ESP32 cannot implement soft restart?

I followed the instructions and VSCODE cannot use the library:
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/system.html#_CPPv411esp_restartv

[Starting] Analyzing sketch 'TEST\TEST.ino'
[Warning] Output path is not specified. Unable to reuse previously compiled files. Build will be slower. See README.
Loading configuration...  
Initializing packages...  
Skipping contributed index file C:\Users\Administrator\AppData\Local\Arduino15\master.zip, parsing error occured:
com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'PK': was expecting ('true', 'false' or 'null')
 at [Source: (FileInputStream); line: 1, column: 6]
Skipping contributed index file C:\Users\Administrator\AppData\Local\Arduino15\master.zip, parsing error occured:
com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'PK': was expecting ('true', 'false' or 'null')
 at [Source: (FileInputStream); line: 1, column: 6]
Preparing development board...  
Verifying...  
TEST:6:25: fatal error: periph_ctrl.h: No such file or directory
compilation terminated.
exit status 1
[Warning] Failed to generate IntelliSense configuration.
[Error] Analyzing sketch 'TEST\TEST.ino': Exit with code=1

It is exits. Invalid using the Arduino: Rebuild IntelliSense Configuration

How do implement a soft restart for ESP32?

Did you ask them, ESP32 Forum - Index page? They made the ESP32 and the IDF.

1 Like

Try: ESP.restart();

1 Like

tech genius :laughing:

Because there aren't many online people left

You got lucky that time. Earlier that day someone asked what "rst cause 2" meant on an ESP8266 restart. The answer I found was "Someone called ESP.restart()". If I had not looked for that answer I would not have known about the ESP.restart() function.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.