Seeed XIAO ESP32C3 only runs programm when connected to PC
Seeed XIAO ESP32C3 only runs programm when connected to PC
Hello
I am using two ESP32C3 and both only run the programm when I connect them to my PC. When I use the 3,3V Input via a normal power supply the program does not start.
And when I’ve disconnected the board for a long time it is not enough to only connect it again. I have to upload the same code again to make it run. Both boards show this behavior. Any advice?
I am using two ESP32C3 and both only run the programm when I connect them to my PC. When I use the 3,3V Input via a normal power supply the program does not start.
And when I’ve disconnected the board for a long time it is not enough to only connect it again. I have to upload the same code again to make it run. Both boards show this behavior. Any advice?
-
- Posts: 9727
- Joined: Thu Nov 26, 2015 4:08 am
Re: Seeed XIAO ESP32C3 only runs programm when connected to PC
Does it work when you press the RST button after you apply power?
Re: Seeed XIAO ESP32C3 only runs programm when connected to PC
Hi, I could fix this issue. I was using 3,3V from a laboratory power supply, but becase the power loss was so huge I had to use 3,5V to make it run.
However...by now I have discovered a way bigger problem: When I upload my code the programm starts running and everything works fine. But when I cut off power for a short moment and put it on again(externally or PC), the code does not get executed anymore. I have to plug power off and on again many times to make it work. Pressing Restart does not change anything. Unconnecting the USB-C, pressing Boot, reconnecting the USB and letting the Boot button go afterwards does help, but there must be a way to fix this problem. It would be extremly unreliable if you have to restart the board like this every time afer power got cut off. (also it has nothing to do with the code, the same behavior showed while making a LED blink)
Maybe I have to put a capacitor somewere? Has anyone had this problem as well? I did not find much about it on the internet.
However...by now I have discovered a way bigger problem: When I upload my code the programm starts running and everything works fine. But when I cut off power for a short moment and put it on again(externally or PC), the code does not get executed anymore. I have to plug power off and on again many times to make it work. Pressing Restart does not change anything. Unconnecting the USB-C, pressing Boot, reconnecting the USB and letting the Boot button go afterwards does help, but there must be a way to fix this problem. It would be extremly unreliable if you have to restart the board like this every time afer power got cut off. (also it has nothing to do with the code, the same behavior showed while making a LED blink)
Maybe I have to put a capacitor somewere? Has anyone had this problem as well? I did not find much about it on the internet.
-
- Posts: 9727
- Joined: Thu Nov 26, 2015 4:08 am
Re: Seeed XIAO ESP32C3 only runs programm when connected to PC
That is an odd issue; pressing RESET ought to clear all issues. There's nothing else connected to the board I assume?
Re: Seeed XIAO ESP32C3 only runs programm when connected to PC
You can also port your question to the seedstudio forum: https://forum.seeedstudio.com/
Re: Seeed XIAO ESP32C3 only runs programm when connected to PC
Could it be related to the LDO or other power management circuitry hasn't output discharge feature? Just trying to guess.
-
- Posts: 1702
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: Seeed XIAO ESP32C3 only runs programm when connected to PC
Was thinking about the same. I can't find any documentation saying that the XIAO can be powered via its 3v3 pin at all...
LDOs can behave weirdly when fed voltage from their output side w/o input voltage.
Re: Seeed XIAO ESP32C3 only runs programm when connected to PC
I'm having nearly the same issue. My program only runs when connected to my macbook via USB-C. If I connect it to an external USB-C power supply, it doesn't work. I just received 3 from AliExpress a few days ago and haven't tried powering via pins yet.
Did you also by chance order from AliExpress? I'm wondering if maybe they're counterfeit.
Did you also by chance order from AliExpress? I'm wondering if maybe they're counterfeit.
Re: Seeed XIAO ESP32C3 only runs programm when connected to PC
Do you do the following after Serial.begin() ?:
while (!Serial);
Remove it.
while (!Serial);
Remove it.
-
- Posts: 1
- Joined: Wed Nov 22, 2023 12:23 am
Re: Seeed XIAO ESP32C3 only runs programm when connected to PC
^^ That saved me! Thank you!
Who is online
Users browsing this forum: aygh4266, Bing [Bot] and 112 guests