Skip to content

Commit 43a39f7

Browse files
authored
Merge branch 'espressif:master' into master
2 parents 5334075 + 65eafd1 commit 43a39f7

File tree

2 files changed

+34
-4
lines changed

2 files changed

+34
-4
lines changed

cores/esp32/esp32-hal-ledc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ static void _ledcSetupTimer(uint8_t chan, uint32_t div_num, uint8_t bit_num, boo
115115
uint8_t group=(chan/8), timer=((chan/2)%4);
116116
static bool tHasStarted = false;
117117
static uint16_t _activeChannels = 0;
118+
#if CONFIG_IDF_TARGET_ESP32S2
119+
// ESP32-S2 TRM v1.0 on Page 789 -> BIT LEDC_TICK_SEL_TIMERx is 0 for LEDC_PWM_CLK and 1 for REF_TICK
120+
apb_clk = 0;
121+
#endif
118122
if(!tHasStarted) {
119123
tHasStarted = true;
120124
periph_module_enable(PERIPH_LEDC_MODULE);

docs/source/troubleshooting.rst

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
###############
2-
Troubleshotting
2+
Troubleshooting
33
###############
44

55
Common Issues
@@ -18,10 +18,36 @@ Building
1818
Flashing
1919
--------
2020

21-
* The board is not flashing.
21+
Why is my board not flashing/uploading when I try to upload my sketch?
22+
**********************************************************************
23+
24+
If you are trying to upload a new sketch and your board isn't responding, there are some possible reasons.
25+
To be able to upload the sketch via serial interface, the ESP32 must be in the download mode. The download mode allows you to upload the sketch over the serial port and to get into it, you need to keep the **GPIO0** in LOW while a resetting (**EN** pin) cycle.
26+
27+
Possible fatal error message from the Arduino IDE:
28+
29+
*A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header*
30+
31+
Here are some steps that you can try to:
32+
33+
* Check your USB cable and try a new one.
34+
* Change the USB port.
35+
* Check your power supply.
36+
* In some instances, you must keep **GPIO0** LOW during the uploading process via serial interface.
37+
* Hold-down the **“BOOT”** button in your ESP32 board while uploading/flashing.
38+
39+
In some development boards, you can try adding the reset delay circuit, as decribed in the *Power-on Sequence* section on the `ESP32 Hardware Design Guidelines <https://www.espressif.com/sites/default/files/documentation/esp32_hardware_design_guidelines_en.pdf>`_ in order to get into the download mode automatically.
2240

2341
Hardware
2442
--------
2543

26-
* Power Source
27-
* Bad USB cable or charging only cables
44+
Why is my computer not detecting my board?
45+
**************************************************
46+
47+
If your board is not detected after connecting into the USB, you can try to:
48+
49+
* Check if the USB driver is missing. - `USB Driver Download Link <https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers>`_
50+
* Check your USB cable and try a new one.
51+
* Change the USB port.
52+
* Check your power supply.
53+
* Check if the board is damaged or defective.

0 commit comments

Comments
 (0)