Help · Real boards

Uploading over USB

What we learned getting SimuCraft's sketches onto real boards: the GIGA R1 WiFi, ESP32 boards, the Cheap Yellow Display and M5Stack's Core2. Most upload problems are one of a handful of things, and each has a quick fix.

1. Start with the cable

Some USB cables only carry power: the board lights up but the PC never sees it. If no board appears in Port, try another cable before anything else, ideally one you know has moved files. Plug straight into the PC rather than through a hub or keyboard.

2. Pick the board's port, not COM1

  • COM1 is the PC's own serial port, not your board. SimuCraft lists boards first and COM1 last; if COM1 is all there is, the board isn't connected (see the cable), or it has crashed (see 6).
  • The port list names the USB chip: Arduino Giga R1, CH340 (most ESP32 boards and the Cheap Yellow Display), CP2102, or the ESP32-S3's own USB. That tells you which entry is your board.
  • The port can change. A GIGA in upload mode appears as a different device from the GIGA running a sketch, and Windows takes a few seconds to bring the port back after an upload. Press ↻ after a moment. SimuCraft follows the board when it comes back on a new port.

3. Put the board into upload mode by hand

Usually SimuCraft switches the board into upload mode itself. When it can't:

  • Arduino GIGA R1 WiFi: double-press the RST button quickly. The green LED fades in and out: it is waiting for a sketch. SimuCraft says when to do this and carries on by itself.
  • ESP32 boards and the Cheap Yellow Display: hold the BOOT button, press Upload, and let go when "Connecting…" appears.
  • Arduino Nano clones: choose Arduino Nano (old bootloader) as the board. Most clones need it.
  • M5Stack Core2: it switches by itself; if it won't, hold the power button for six seconds to switch it off, then press it once and upload again.

4. "The port is busy"

Only one program can use a port at a time. Close the Arduino IDE's Serial Monitor, a 3D printer program such as Cura, or any terminal that has the board open, then upload again. SimuCraft retries once by itself.

5. Drivers

  • CH340 boards (many ESP32 boards, the Cheap Yellow Display, clones) need the CH340 driver on some Windows PCs. Without it the board never appears in the port list.
  • GIGA R1 WiFi: Windows can see the board in upload mode but needs a USB driver (WinUSB) for the upload itself. If SimuCraft says so, its window has a button that runs the driver installer from Arduino's GIGA package. Then unplug the board, plug it in again and upload.

6. The board disappears after an upload

If the upload finishes but the board doesn't come back (only COM1 left in the list), the new sketch most likely crashed as it started. On the GIGA its red LED flashes, slow then fast. Double-press RST to bring the board back in upload mode and upload again. Before that, run the sketch in SimuCraft and look at its Serial Monitor for a clue: a sketch that crashes in the simulator will crash on the board.

7. Too big for the board

Pictures and fonts take a lot of a board's flash. Our SmartHouse sketch stopped uploading when its weather pictures were made 107 pixels across: 24 of them came to almost 2 MB, more than the GIGA's room for a sketch. At 72 pixels, and with the weather set trimmed to 12 pictures, it fits easily. The screen designer shows what each picture costs, and warns when a design gets close to the board's limit. Keep pictures only as big as they will be shown.

8. Power

A GIGA with its display draws more than some USB ports give. If the screen flickers or the board restarts by itself, power it from a supply as well, or use a powered USB hub. Battery boards (the Core2, a battery bottom) can look dead when their battery is flat: plug in the USB lead and wait a minute.

9. The first upload takes a while

The first time you upload to a kind of board, SimuCraft downloads Arduino's tools for it and the libraries the sketch needs (LVGL, M5Unified, ESP32-audioI2S and so on). That can take several minutes; after that an upload takes under a minute. SimuCraft keeps the library versions that work together (LVGL 9.2 for the screen designer, for example) and puts them back if another program changes them.

10. Wi-Fi sketches

  • Type your network and password in the upload window. SimuCraft puts them only in the copy it uploads; your sketch keeps the simulator's. Press 👁 to check the password: a mistyped one is the most common reason a board never joins.
  • ESP32 boards and the GIGA only join 2.4 GHz networks, not 5 GHz ones.
  • Open the Serial Monitor at the bottom of the upload window: the sketch prints whether it joined, and why not if it didn't.