Begin Websocket client connection and the rest of the message is from the setup() function. After going through these, there is WiFi connection comes but it must be also fine.
I tried pluging out the USB cable and BootLoader mode and then blinking it, it blinks fine. After uploading my code, it fails.
As I told before, I was running perfectly but stopped suddenly.
Hi there,
Well for one the PSram should be enabled, CDC on boot probably fine.
Something seems to be forcing boot mode, maybe a pin that’s not initialized correctly or at all.?
Can you post the code I can run a compile and see what it say’s.
HTH
GL PJ
Hi PJ,
I enabled PSram mode but still same happening. My code works on another XIAO ESP32S3.
Could using RX TX pins and Serial monitor be the problem here? I remove cables on RX TX before uploading the code from the computer.
Also I choose XIAO ESP32S3 and the active port (which is just one), when I check port in Arduino IDE, it says another board there instead of ESP32S3.
I reinstalled Arduino IDE multiple times but still same result. Also I can see nRF52840 has portname in device manager called Seeed XIAO nRF52840 Sense (Interface 0), but when I connect ESP32S3 its name is USB Serial Device in the ports section of the device manager.
Of course I keep choosing my board and open port. So it’s not about that.
The problem is, ESP32S3 keeps connecting and disconnecting into the port.
Could you help me out with this.
Hi there,
Disconnect it,
USB…
Hold the Boot button down and Plug it back in…
Does it stay enumerated or not?
HTH
GL PJ
also try same with reset button, if not.
I tried that too, of course.
Where is enumerated supposed to show up?
When I want to upload code into the ESP32S3, it doesn’t let me to do it. That’s why I hold the boot button on it and after that give power into it, which means connecting it into the USB cable.
After uploading when I go to the serial monitor, it keeps connecting and disconnecting again.
Doesn’t make sense at all. Something must be corrupted.
Hi there,
I understand that… What I’m telling you is , it’s NOT in Boot loader mode when are trying to upload, the PC is still running on the chip with the offending code. The LOOP portion if it has too short of delay or no code at all, and the Serial port baud rate is at 115200 then it’s a hard to catch at the right time.
If that happens hit upload and try to release the rest button when it hits the port upload code.
if you catch it you can send it a blink or something to fix it.
earlier I was describing what you can try to force it to boot mode by holding the button down while plugging in the usb connection. takes some coordination but that too will stop the loop.
HTH
GL PJ
Thanks for the response.
Of course the microcontroller is not in BOOT mode when I try to upload the code.
But what I am telling is, since it doesn’t let me to upload the code I put the microcontroller into Bootloader mode which means plugging it out from the USB data cable and hold the BOOT button on the microcontroller and then plug the USB cable again and release the BOOT button. And then I upload the code.
If that’s not the case for uploading code, well it lets me upload it after doing this .
I can upload any kind of example if I go into bootloader mode. Blink code works too.
I will try the one with reset button, thanks.
Hi there,
Ok , I see that now, LOL… Same thing I was saying.
OK so try that code again but insert a long delay in the “Loop” function.
See if you can upload after a reset after that.
HTH
GL PJ
It did not help sadly. My WiFi module starts in setup function I put 15 seconds delay there and also into the loop but the microcontroller does not even complete the setup function because of the WiFi part, let alone loop function.