I had VSCode installed on Ubuntu 18.04.
Then instaled ESP-IDF.
Then installed ESP-IDF into VSCode.
Connected a ESP32-WROOM-32D NodeMCU-ESP32 DEVKITV1 via USB.
Blue LED flashes.
Built & flashed blink.c example. This flashed successfully but blue LED is off and red LED is on continuously.
ESP-IDF Monitor displays:
Turning off the LED
Turning on the LED
Turning off the LED
Turning on the LED
Turning off the LED
....
I changed vTaskDelay in blink.c which verified that the program running is the one just built and flashed as the delay between displays of Turning off the LED, Turning on the LED correspond to those set in blink.c.
However the blue LED is off and red LED is on continuously. I have unplugged the USB, pressed BOOT, EN, BOOT+EN during power-up or whilst powered up but this has no effect.
Any ideas as to why the blue LED is off and red LED is on continuously?
Blink example printf works but ED not flashing
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: Blink example printf works but ED not flashing
What devboard are you using? Are you sure the GPIO the blink example is using is connected to one of those LEDs?
Re: Blink example printf works but LED not flashing
Thanks.
I Connected a ESP32-WROOM-32D NodeMCU-ESP32 DEVKITV1 via USB.
I will run a test to identify each physical pin on the board. It may well be the case that the pin layout is an issue.
I Connected a ESP32-WROOM-32D NodeMCU-ESP32 DEVKITV1 via USB.
I will run a test to identify each physical pin on the board. It may well be the case that the pin layout is an issue.
Re: Blink example printf works but LED not flashing
I tried all 30 pins on board excepting 0, 8 - 12. Either Monitor displayed continuous error/warning messages without program output, or program ran as described previously, with the blue LED not illuminating or flashing.
I have ordered some genuine Expressif ESP32-DevKitC-32D & CE boards to use instead.
I will be experimenting with the OTA update example in the VSCode_ESP-IDF setup. Is there a procedure to reset a board to a "just shipped from factory " state to completely restore the board to functioning normally?
Thanks.
I have ordered some genuine Expressif ESP32-DevKitC-32D & CE boards to use instead.
I will be experimenting with the OTA update example in the VSCode_ESP-IDF setup. Is there a procedure to reset a board to a "just shipped from factory " state to completely restore the board to functioning normally?
Thanks.
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: Blink example printf works but ED not flashing
Are you sure that the blue LED is connected to a GPIO at all, and not e.g. a simple power LED directly connected to the power supply?
Not sure what the Visual Studio equivalent would be, but command line you could do an 'idf.py erase_flash' which nukes all remnants of earlier programs from flash. Although there are exceptions, you generally do not need to do this, though.
Not sure what the Visual Studio equivalent would be, but command line you could do an 'idf.py erase_flash' which nukes all remnants of earlier programs from flash. Although there are exceptions, you generally do not need to do this, though.
Re: Blink example printf works but ED not flashing
Thanks.
When the board was removed from the packet and plugged into the USB socket, the blue light flashed. From the first flash upload onwards it did not flash, whichever pin was used with blink.c.
When the board was removed from the packet and plugged into the USB socket, the blue light flashed. From the first flash upload onwards it did not flash, whichever pin was used with blink.c.
Re: Blink example printf works but ED not flashing
Is this solved? I face the same problem. LED using GPIO doesn't work but it works with RMT for addressable LED.
Who is online
Users browsing this forum: No registered users and 28 guests