ESP32 Mini-1 Code through Arduino IDE

Hi All
I am trying to flash code into ESP32 Mini-1 custom PCB using Arduino IDE
But not able to flash it.
What board I need to select in order to flash code successfully?
Have someone done this before? any leads are appreciated
Thanks

I moved your topic to a more appropriate forum category @alifsayawais.

The Nano ESP32 category you chose is only used for discussions directly related to the Arduino Nano ESP32 board.

In the future, please take the time to pick the forum category that best suits the subject of your question. There is an "About the _____ category" topic at the top of each category that explains its purpose.

Thanks in advance for your cooperation.

1 Like

Thanks, I will keep it in mind next time

1 Like

Hi @alifsayawais

Please add a forum reply here that provides a detailed explanation of what you mean by this, including:

  • What did you do?
  • What were the results you expected from doing that thing?
  • What were the results you observed that did not match your expectations?

Make sure to include the full and exact text of any error or warning messages you might have encountered.

I tried flashing code through Arduino IDE in my board ESP32 Mini-1 by Selecting Board in Arduino IDE as "ESP32 Dev Module".
This is what I am seeing

Thanks for the clarification.

Select Tools > Upload Speed > 115200 from the Arduino IDE menus and then try uploading again.

It might be that the signal path between the USB interface and the ESP32 microcontroller on your PCB is not capable of supporting the default 921600 baud upload speed. Configuring the IDE to use a lower baud rate may allow the upload to succeed.

The drawback to reducing the baud rate is that it will increase the duration of the upload process. I suggest you start with the lowest setting 115200 to test my hypothesis about the 921600 setting being the cause of the failure. If you find the upload succeeds at 115200, you can then experiment with the other settings in the Tools > Upload Speed menu until you find the highest baud rate that still allows consistent success when uploading.

1 Like

Hi, I tried with this method and was able to upload the code successfully.
The problem I am facing currently is that I am not able to see any output on the Serial Monitor.
Can you help me in this regard?

Hi @ptillisch
I am not able to see anything on the serial monitor.
Any help would be appreciated

The Arduino sketch program that is running on the Arduino board is configured to communicate over the serial port at a specific baud rate. This is done via the Serial.begin function.

For example, if the sketch contains a line like this:

Serial.begin(115200);

then the Serial communication is done at 115200 baud.

The Arduino IDE Serial Monitor must be configured for the same baud rate as set in the sketch program.

Check to make sure the selection in the menu at the top right corner of the Serial Monitor panel matches the baud rate in the sketch code. If not, select the correct baud rate and press the reset button on the board to restart the sketch program. Hopefully you will then see the expected output in Serial Monitor.

If things are not working as expected even with the correct Serial Monitor baud rate configuration, please let us know in a reply here and we'll suggest something else you can try.

Hi @ptillisch
I tried using both baud rates as 115200 and 9600
It's not working

When I'm having trouble with serial output, I like to do a quick check with the most simple possible sketch. If this works, then I know the problem has something to do with my real sketch. If it doesn't work, then I know the problem is not related to my sketch code. It seems maybe a little silly, but it allows me to be sure I'm focusing my troubleshooting efforts in the right direction.

Try uploading this sketch to your Arduino board:

  1. Copy and paste this code as a new sketch in Arduino IDE:

    void setup() {
      Serial.begin(9600);
    }
    
    void loop() {
      Serial.println("hello");
      delay(1000);
    }
    
  2. Upload the sketch to your Arduino board.

  3. Select Tools > Serial Monitor from the Arduino IDE menus to open the Serial Monitor view if it is not already open.

  4. Make sure the baud rate menu at the top right corner of the Serial Monitor panel is set to "9600".

Do you now see the word "hello" being printed in the Serial Monitor's output field once a second?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.