RAK11200 Not allowing Sketch to Upload

So I have the RAK 19001 board using the RAK11200.

Using the Arduino IDE trying to upload the basic example for a AP.

When trying to upload i get this error.

Serial port /dev/cu.usbserial-1420
Connecting……_____

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
Failed uploading: uploading error: exit status 2

The LED is Flashing RED fast

Assuming the port /dev/cu.usbserial-1420 is correct, can you confirm if the ESP32 is in bootloader mode? You should see something like Waiting for download.

My guess, you forgot:

RAK11200 Quick Start Guide

1 Like

Thanks for the help!

So the board has the short on the ground and the boot0.

I see the LED light Flashing RED in a constant pattern.

Pressing the Rest button doesn’t do anything.

The red LED is controlled by the battery charger and has no meaning unless you connect a battery.

Connecting BOOT0 to GND, then push reset, then start the upload.

After upload finished, disconnect BOOT0 from GND, then push reset again to start the application.

You can check whether the RAK11200 is in bootloader mode by connecting a serial terminal before the first reset. The output will look like:

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x7 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download

Then it is ready to upload the firmware

Ok so i have removed this short for gnd and bot0.

Tried reseting the board nothing still the same red flashing.

retrying to re do the boot and ground short. still no change.

Uploading via IDE is showing this.

Sketch uses 750601 bytes (57%) of program storage space. Maximum is 1310720 bytes.
Global variables use 32548 bytes (9%) of dynamic memory, leaving 295132 bytes for local variables. Maximum is 327680 bytes.
esptool.py v3.1
Serial port /dev/cu.usbserial-1420
Connecting……_____

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
Failed uploading: uploading error: exit status 2

I think you are following the steps. let me retry:

(1) unplug the board
(2) connect GND and BOOT0
(3) plug the board to USB
(4) check the USB port number
(5) download your code to the correct USB port
(6) unplug the board after download has finished
(7) disconnect BOOT0 from GND
(8) plug the board to USB and let it boot.

@beegee Yes thank you!

I can confirm that have followed the steps but get stuck at 5. Im assuming 5 means run verify and then upload. the device its the upload to the board step I did get it to do something As Im uploading to the device i see not LED indication that the data is transferring like on the 4630.

This seems odd but it doesn’t recognize the board when i do a get info

When i Click upload to

Side note:
When i move the 11200 over to a different board ie RAK19001 the red led is still flashing very dimly. is there any indication is the boards firmware is bad? or got corrupt?

@carlrowan What does boot loader mode look like? Is it a Solid red then Flashing green when uploading. Cause this board isnt doing that. just a red flash every second

The red LED says nothing about the firmware or if the device is running. It is controlled by the battery charger chip and not by the ESP32.

ESP32 does not show anything on the LED’s while it is receiving the firmware. You can see the upload process only in the IDE.

I shared already the USB output when the ESP32 is in bootloader mode:

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x7 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download

I can confirm that you selected the correct port as the VID and PID are the same I see from a RAK11200:
image

The only other problem I can think of is that your OS is prohibing the access to the port somehow, but I have no experience with Linux or MacOS (I guess you are using one of these from the USB port names).

Last thing to check, what upload speed and device settings do you select in the IDE?
Please check