# About the Programming Category

**URL:** <https://nrlforum.theinnovationstory.com/t/about-the-programming-category/25>\
**Category:** Programming\
**Created:** [September 16, 2026, 7:11am UTC](https://nrlforum.theinnovationstory.com/t/about-the-programming-category/25 "2026-09-16T07:11:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![TeamNRL](https://yyz2.discourse-cdn.com/flex056/user_avatar/nrlforum.theinnovationstory.com/teamnrl/32/22_2.png) [@TeamNRL](https://nrlforum.theinnovationstory.com/u/TeamNRL)\
**Post date:** [September 16, 2026, 7:11am UTC](https://nrlforum.theinnovationstory.com/t/about-the-programming-category/25/1 "2026-09-16T07:11:02Z")

</div>

Programming, autonomous routines, debugging, control algorithms and software questions.

---

<div class="post-metadata">

**Author:** ![abhi\_179](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@abhi\_179](https://nrlforum.theinnovationstory.com/u/abhi_179)\
**Post date:** [October 18, 2026, 12:26pm UTC](https://nrlforum.theinnovationstory.com/t/about-the-programming-category/25/2 "2026-10-18T12:26:56Z")

</div>

# Help Needed: Custom Controller Not Detected by PC During Firmware Flashing — ESP32-S3-WROOM-1U (N8R8)

Hello NRL Support Team,

I need help troubleshooting my custom controller. I am trying to flash its firmware using the provided `flash_controller.py` script, but my PC cannot maintain a stable USB connection with the controller.

## 1. Hardware and Software Details

- **Controller:** Custom-built controller

- **Microcontroller module:** ESP32-S3-WROOM-1U (N8R8)

- **USB connector:** Micro-USB

- **Computer:** Dell Vostro 15 3510 running Windows

- **Python version:** Python 3.14

- **Firmware flashing script:** `flash_controller.py`

## 2. Error Message

When I run the flashing script in PowerShell, I receive the following error:

```auto
[error] No USB serial device found for the controller.
Check that:
1. The controller is plugged in and its power switch is ON.
2. The USB cable is a DATA cable.
3. It is plugged directly into the computer, not through a hub/dock.
4. The USB driver is installed.

```

The script also suggests installing the Silicon Labs USB-to-UART Bridge VCP driver if the board requires it.

## 3. Troubleshooting I Have Already Done

- Installed the required Python packages, including `pyserial` and `esptool`.

- Confirmed that the flashing script runs, but it cannot find a USB serial device.

- Checked Windows Device Manager. No COM port appears when I connect my custom controller.

- Confirmed that another microcontroller is detected successfully by the same computer and appears as **USB on COM4**.

- Compared the USB connection behavior of both devices.

- Confirmed that the custom controller has a Micro-USB connector and an ESP32-S3-WROOM-1U (N8R8) module.

- Checked for external BOOT and RESET/EN buttons, but I could not find any buttons near the connector.

- Tried connecting the controller multiple times and observed its behavior.

## 4. Important Observation: USB Connects and Immediately Disconnects

When I connect my custom controller to the PC:

1. Windows plays the USB device connection sound.

2. Within a fraction of a second, Windows plays the USB disconnection sound.

3. The controller’s top LED remains ON, even after its screen turns OFF.

4. The controller’s screen displays a message similar to **“Battery dead, shutting off”**.

5. The screen turns OFF, and the USB connection appears to disconnect.

6. Even after leaving the controller connected for a long time to charge, it continues to display the low-battery/shutdown message.

This suggests that the device may be briefly detected by Windows but is unable to maintain a stable connection. I am unsure whether the USB disconnection is caused by the power/battery issue or whether these are separate problems.

## 5. Possible Causes I Would Like Help Investigating

I am not sure which of the following is responsible:

- A faulty or charge-only Micro-USB cable.

- A loose or damaged Micro-USB connector.

- A USB data-line or PCB connection problem.

- An issue with the ESP32-S3 USB interface or its configuration.

- A battery that is discharged, faulty, disconnected, or not charging properly.

- A problem with the battery charging circuit or battery-voltage sensing.

- A firmware or boot/reset issue causing the controller to shut down before USB enumeration completes.

- A missing or incorrect USB-to-serial driver, if this hardware uses an external USB-to-UART bridge.

I understand that the ESP32-S3 supports native USB, so I am not sure whether my particular board uses native USB or a separate USB-to-UART bridge.

## 6. Questions for the Support Team

Could you please help me determine:

1. What is the correct procedure for putting this controller into ESP32-S3 download/BOOT mode when there are no visible external BOOT or RESET buttons?

2. Does this controller use native USB or an external USB-to-UART bridge? Which driver, if any, should I install?

3. How can I diagnose the persistent “Battery dead, shutting off” message when the controller has been connected to a charger for a long time?

4. Could the battery or power-management circuit be causing the USB connection to disconnect almost immediately?

5. Is there a recommended diagnostic procedure to identify whether the issue is caused by the cable, USB circuitry, battery, or firmware?

6. Are there any controller-specific recovery or firmware-flashing instructions I should follow?

I would appreciate step-by-step instructions. I would prefer to avoid opening the controller or modifying the PCB until I know what to check.

Thank you for your time and support!

---

<div class="post-metadata">

**Author:** ![abhi\_179](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@abhi\_179](https://nrlforum.theinnovationstory.com/u/abhi_179)\
**Post date:** [October 18, 2026, 2:35pm UTC](https://nrlforum.theinnovationstory.com/t/about-the-programming-category/25/3 "2026-10-18T14:35:55Z")

</div>

**NEW UPDATE**

Controller is now flashed successfully and the controller and robot are in now same channel and paired but we are not getting how to code our Robot..Where will we get the code of robot and how to flash it

---

<div class="post-metadata">

**Author:** ![ViehaanGupta\_Team094](https://avatars.discourse-cdn.com/v4/letter/v/bbe5ce/32.png) [@ViehaanGupta\_Team094](https://nrlforum.theinnovationstory.com/u/ViehaanGupta_Team094)\
**Post date:** [October 18, 2026, 6:00pm UTC](https://nrlforum.theinnovationstory.com/t/about-the-programming-category/25/4 "2026-10-18T18:00:10Z")

</div>

you have to make an opmode in your workspace and code the bot yourself. then use platformio to upload it to the bot. all the details on how to code are given in the curriculum

---

<div class="post-metadata">

**Author:** ![abhi\_179](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@abhi\_179](https://nrlforum.theinnovationstory.com/u/abhi_179)\
**Post date:** [October 19, 2026, 6:12am UTC](https://nrlforum.theinnovationstory.com/t/about-the-programming-category/25/5 "2026-10-19T06:12:02Z")

</div>

Sorry but i didn’t got…can you plz elobrate itt…

---

<div class="post-metadata">

**Author:** ![ViehaanGupta\_Team094](https://avatars.discourse-cdn.com/v4/letter/v/bbe5ce/32.png) [@ViehaanGupta\_Team094](https://nrlforum.theinnovationstory.com/u/ViehaanGupta_Team094)\
**Post date:** [October 20, 2026, 6:39am UTC](https://nrlforum.theinnovationstory.com/t/about-the-programming-category/25/6 "2026-10-20T06:39:18Z")

</div>

have you initiallised your coding workspace? using the files in the github repo

if so, flahs your robot with the files. everything is mentioned in detail in the curriculum.

then click shift+ctrl+p and click “tasks” then create a new opmode and fill the wizard

this will open a new file in the workspace where you can write an edit code. to send this code to the bot use the same method u did to flash it. you have to go to the platformio dashboard and click upload

---

<div class="post-metadata">

**Author:** ![Nirvan-156](https://yyz2.discourse-cdn.com/flex056/user_avatar/nrlforum.theinnovationstory.com/nirvan-156/32/201_2.png) [@Nirvan-156](https://nrlforum.theinnovationstory.com/u/Nirvan-156)\
**Post date:** [November 4, 2026, 1:57pm UTC](https://nrlforum.theinnovationstory.com/t/about-the-programming-category/25/7 "2026-11-04T13:57:27Z")

</div>

You can get everything in the curriculum section of the student dashboard in the programming section or I would suggest that make a checkbox and tick all the steps from start and check if you missed, replaced or changed something

---

<div class="post-metadata">

**Author:** ![Anika\_Team225](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@Anika\_Team225](https://nrlforum.theinnovationstory.com/u/Anika_Team225)\
**Post date:** [November 14, 2026, 6:30am UTC](https://nrlforum.theinnovationstory.com/t/about-the-programming-category/25/8 "2026-11-14T06:30:43Z")

</div>

Could you please explain how to upload the code? And how to connect the controller to the robot?
