Beetle ESP32-C6 Serial Monitor not working

userHead J-Lips 2024-03-15 00:05:17 1569 Views8 Replies

I am using a Beetle ESP32-C6 and am trying to get some simple serial output using Arduino 1.8.19

To get the board to show I used the suggestion of Laurent.VOLPON here https://www.dfrobot.com/forum/topic/332564

I then used the following settings:

Board: “DFRobot Beetle ESP32-C6” (also tried “DFRobot FireBeetle 2 ESP32-C6”)

USB CDC On Boot: “Disabled” (more on that later)

Other parameters identical to https://wiki.dfrobot.com/SKU_DFR1117_Beetle_ESP32_C6

 

With these parameters I can write blink without a problem, the board stays connected after uploading the sketch and the code runs directly.

 

I expanded blink to 

int led = 15;
void setup() {
 pinMode(led,OUTPUT);
 Serial.begin(115200);
 while(!Serial) {;}
}

void loop() {
 digitalWrite(led,HIGH);
 delay(500);
 digitalWrite(led,LOW);
 delay(500);
 Serial.println("hello");
}

 

The serial monitor in Arduino, as well as in PuTTY  don't show anything. In PuTTY I can setup a serial connection but it stays empty.

When I changed USB CDC On Boot to Enabled, as it should be according to the manual (see link above), I started having connection problems. Only after combinations of BOOT + RST on the Beetle the board connects to the PC and uploading sketches works, however the sketch does not run after this (no blinking).

Pressing RST makes the code run, but then the USB disconnects.

 

I re-installed the drivers (the usbser.sys driver is being used) and tried out a bunch of different settings in Arduino and PuTTY to try to get this to work without success.

 

 

2024-07-29 00:18:37

Hello, Im jumping in here late, but I found this post after having issues with uploading to my Beetle ESP32-C6 when I tried some of the Example SerialToSerialBT sketches, always gives me an error. Im thinking that is because that doesnt fall under BLE?
Your example sketch uploaded and worked fine on the Serial monitor.

If you dont mind, I would like to ask a question for some guidance please.

With the Beetle ESP32-C6, would it be possible to get a reading from a sensor (HIGH/LOW), send that over BLE (I would assume) to a mobile device? Which example sketches can I look at or search for to get a better understanding on how to write the coding for that?

Thank you

userHeadPic Neil.van der Merwe
2024-05-28 06:06:41

Hello 

I use the DFR1117 beetle ESP32-C6  arduino IDE2.3.2  board manager ESP32 3.0.0rc3

 

Withe same code from above,

 

I did follow all steps given here for first time use

 https://wiki.dfrobot.com/SKU_DFR1117_Beetle_

ESP32_C6#target_7
I get this msg: A fatal error occurred: Failed to connect to ESP32-C6: No serial data received.

 

after hold down boot button and press reset , upload, then  I push reset again, the led is blinking, ( code uploaded) but the port COM1 is still unavailable…

OS : Windows10 pro.

Any suggestions to recover serial monitor?

 

 

userHeadPic Gimont31
Yeez_B wrote:

Can you change the USB cable or computer? It seems that your PC does not detect Beetle.

2024-05-31 02:03:17
1 Replies
2024-03-15 00:33:40

Could you try to delete the “while(!Serial)” line?

This works on my Beetle ESP32-C6

 

And always set the USB CDC as Enable.

 

 

userHeadPic Yeez_B
J-Lips wrote:

Thanks for the fast reply! I tried both with and without the while, with the same result both times. Which Arduino version and OS are you using? I will try to recreate your setup.

2024-03-15 00:44:57
Yeez_B wrote:

I'm using the Arduino IDE 2.2.1 and Windows 11 22H2.

2024-03-15 00:51:36
Yeez_B wrote:

 

Is your SDK "3.0.0-alpha3" which is same as mine?

2024-03-15 00:53:17
J-Lips wrote:

I got Arduino 2.2.1 and SDK 3.0.0-alpha3 and with that setup it's working just fine! 

Thanks a lot for the assistance!

2024-03-15 14:08:07
4 Replies