Kaluga won't flash, yet.

maarteneh
Posts: 3
Joined: Sun Jan 02, 2022 3:00 pm

Kaluga won't flash, yet.

Postby maarteneh » Sun Jan 02, 2022 4:13 pm

Hi. I am an esp32 newbie and I have a new Kaluga Dev Kit which boots the factory image and the USB UART port works at 115200 baud. I followed the Get Started guide] on a Dell desktop running Ubuntu 20.04 natively and built the hello world application using idf.py successfully.

When I press the boot & reset buttons simultaneous "waiting for download" is output via idf.py -p /dev/ttyUSB1 monitor. In another terminal window, idf.py -p /dev/ttyUSB0 flash always outputs fatal error No serial data received. The Kaluga board schematic indicates all the DIP switches on SW5 should be flipped on, which I did. Still, No serial data received.

I have tried this with various power scenarios and confirmed that 3.3V is stable, swapped USB cables, and removed the expansion boards. In all cases, /dev/ttyUSB1 always works and the flashing to the first port /dev/ttyUSB0 always fails. I have also tried to flash at 9600 baud as per the troubleshooting guide. I also tried on a second new Kaluga board. Same issue. esptool.py also fails. I have appended a trace.

I must be missing something obvious. Are there any other switches that need to be set to flash the Kaluga boards?

Any help appreciated,
Maarten

Code: Select all

maarten@maarten-OptiPlex-5080:~/git/hello_world$ /home/maarten/.espressif/python_env/idf5.0_py3.8_env/bin/python ../../esp/esp-idf/components/esptool_py/esptool/esptool.py -p /dev/ttyUSB0 -b 9600 --before default_reset --after hard_reset --chip esp32s2  --trace write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/hello_world.bin
esptool.py v3.3-dev
Serial port /dev/ttyUSB0
Connecting...TRACE +0.000 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU
TRACE +0.000 Write 46 bytes: 
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
TRACE +0.100 No serial data received.
<... more similar attempts removed for brevity>
.TRACE +0.050 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU
TRACE +0.000 Write 46 bytes: 
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
TRACE +0.100 No serial data received.
.

A fatal error occurred: Failed to connect to ESP32-S2: No serial data received.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
maarten@maarten-OptiPlex-5080:~/git/hello_world$ 

ESP_Sprite
Posts: 9591
Joined: Thu Nov 26, 2015 4:08 am

Re: Kaluga won't flash, yet.

Postby ESP_Sprite » Sun Jan 02, 2022 11:47 pm

You need to flash over /dev/ttyUSB1 as well. /dev/ttyUSB0 is connected to the JTAG port of the device and generally will not function as a serial port.

maarteneh
Posts: 3
Joined: Sun Jan 02, 2022 3:00 pm

Re: Kaluga won't flash, yet.

Postby maarteneh » Mon Jan 03, 2022 2:19 pm

ESP_Sprite wrote:
> You need to flash over /dev/ttyUSB1 as well.

I can confirm that using idf.py -p /dev/ttyUSB1 monitor and CTRK-T+CTRL-F to flash works just fine.

Thank you. Maarten

Who is online

Users browsing this forum: No registered users and 101 guests