ESP-Prog on LYRAT 4.3 serial flash on UART pins?

benbiles
Posts: 32
Joined: Sun Dec 15, 2019 4:46 pm

ESP-Prog on LYRAT 4.3 serial flash on UART pins?

Postby benbiles » Tue Apr 14, 2020 10:53 am

does anyone know if its possible to hook up ESP-prog to lyrat 4.3 board for flashing over UART pins ?
I have finally got OSX to unload the FDTI serial driver and can access both serial ports.
1 for JTAG and the other for serial flashing. The ESP-prog is flashing lights when I MAKE FLASH but
the lyrat 4.3 times out.
Do I need to remove R11 R9 that connects RXD0 TXD0 to USB<->UART chip ?
Or if the USB programmer port is not connected can I leave this resistor bridges in place?

I'll take a look with a scope later and make sure I have activity on the pins, but if the green lights flash on the ESP-prog I assume there will be serial data there.

If I don't need to remove the resistors I have another problem!

benbiles
Posts: 32
Joined: Sun Dec 15, 2019 4:46 pm

Re: ESP-Prog on LYRAT 4.3 serial flash on UART pins?

Postby benbiles » Tue Apr 14, 2020 1:36 pm

OK, in case anyone is trying to flash Lyrat 4.3 via external RXO TXO UART,

Yes you need to take off the R7 and R11 by the USB-UART chip.

I obviously need to set the flash size in some config somewhere as its only auto detecting size every other
time. as you can see below the 1st attempt fails and the 2nd works.

bennnn:PHONO_DSP_STREAMER_ESP32 benbiles$ make flash
Toolchain path: /Users/benbiles/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a
Compiler version: 5.2.0
Python requirements from /Users/benbiles/esp/esp-idf/requirements.txt are satisfied.
Flashing binaries to serial port /dev/tty.usbserial-14201 (app at offset 0x10000)...
esptool.py v2.6
Serial port /dev/tty.usbserial-14201
Connecting......
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: c4:4f:33:14:e6:19
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Warning: Could not auto-detect Flash size (FlashID=0xffffff, SizeID=0xff), defaulting to 4MB
Flash params set to 0x0220
Compressed 26592 bytes to 15176...

A fatal error occurred: Timed out waiting for packet content
make: *** [flash] Error 2
bennnn:PHONO_DSP_STREAMER_ESP32 benbiles$ make flash
Toolchain path: /Users/benbiles/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a
Compiler version: 5.2.0
Python requirements from /Users/benbiles/esp/esp-idf/requirements.txt are satisfied.
Flashing binaries to serial port /dev/tty.usbserial-14201 (app at offset 0x10000)...
esptool.py v2.6
Serial port /dev/tty.usbserial-14201
Connecting........__
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: c4:4f:33:14:e6:19
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0220
Compressed 26592 bytes to 15176...
Wrote 26592 bytes (15176 compressed) at 0x00001000 in 1.3 seconds (effective 158.3 kbit/s)...
Hash of data verified.
Compressed 250256 bytes to 128541...
Wrote 250256 bytes (128541 compressed) at 0x00010000 in 11.4 seconds (effective 175.3 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 1542.6 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
bennnn:PHONO_DSP_STREAMER_ESP32 benbiles$

benbiles
Posts: 32
Joined: Sun Dec 15, 2019 4:46 pm

Re: ESP-Prog on LYRAT 4.3 serial flash on UART pins?

Postby benbiles » Tue Apr 14, 2020 1:52 pm

Also esp-prog debugger UART connect RX -> RX and TX -> TX

not TX - RX and RX - TX

Who is online

Users browsing this forum: No registered users and 38 guests