Kaluga won't flash, yet.
Posted: 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
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$