Upload of code over USB/Serial fails because of erroneous code

Issue #1375 In case you messed up your code and cannot program your ESP32 anymore over USB, e.g. you used Serial0 and assigned it to pins that are not connected to the Serial/USB bridge there are two ways to get the ESP32 into download mode If you have buttons for reset and gpio0, you can hold down gpio0 and then press reset. This will put the esp32 in a “waiting for download” state and you can then upload good code.

Read more

Workaround for WifiClientSecure::connect does not give any certificate-fail clarification

Issue #1393 copercini posted a workaround for the missing certificate-fail error

 

Read more

Simultaneously use of two SPI buses

In the library is now an example to show the use of HSPI and VSPI simultaneously. Example code created by AlistairSymonds

 

Read more

Analog Read seems to be slow

Issue #1373 analogRead() seems to be slow. Reason: Arduino ADC library takes by default 8 samples and returns the average value. The number of samples can be changed with the command

 

Read more

Preferences library – max tag length

When using the Preferences library take into account that each entry has a max length of 1984 bytes. Defined in nvs.h line 127

 

Read more

Change partition size (PlatformIO)

To change the partition size for ESP32 using PlatformIO I recommend this approach: Create a new partition description file in <USER>\.platformio\packages\framework-arduinoespressif32\tools\partitions, e.g max.csv

The above example gives you a partition size of 0x1E0000 or 1966080 bytes on cost of a smaller SPIFFS partition. Then go to <USER>\.platformio\packages\framework-arduinoespressif32\variants and make a copy of the folder matching your board, for my board that is the folder ‘esp32‘ and my copy is named ‘esp32max‘ Then go to <USER>\.platformio\platforms\espressif32\boards\ and copy the .json

Read more

How to use stickbreaker’s I2C improved code

stickbreaker has worked a lot to improve the problems with I2C on the ESP32. But his work has not yet been merged into Arduino-ESP32 framework. To use stickbreakers improvements you can download his code from his Github repo’s release and replace the following files in your ESP32 folder: examples in libraries/Wire/examples readme in libraries/Wire/doc readme in root modified files cores/esp32/esp32-hal-i2c.h cores/esp32/esp32-hal-i2c.cpp cores/esp32/esp32-hal-log.h libraries/Wire/src/Wire.h libraries/Wire/src/Wire.cpp

Read more

Change partition size (Arduino IDE)

To change the partition size for ESP32 using Arduino IDE I recommend this approach: Create a new partition description file in <LOCATION_OF_ARDUINO_ESP32>/tools/partitions , e.g max.csv

The above example gives you a partition size of 0x1E0000 or 1966080 bytes on cost of a smaller SPIFFS partition. Edit <LOCATION_OF_ARDUINO_ESP32>/boards.txt Make a copy of the board description that you want to change the partition size for, in this example I copied ESP32 Dev Module. Rename all ‘esp32.‘ entries to ‘esp32max.‘. Change the

Read more
Free Link Directory