esp32s2 kaluga-1 with OpenOCD

Olof Astrand
Posts: 27
Joined: Tue Jan 31, 2017 10:59 am

esp32s2 kaluga-1 with OpenOCD

Postby Olof Astrand » Fri May 15, 2020 12:06 pm

Hello,
I cannot find any JTAG board configuration file for the kaluga-1 dev board.
Any chance that this might work?
board/esp32-kaluga-1-3.3v.cfg

Code: Select all

# Example OpenOCD configuration file for ESP32-KALUGA-1-KIT board.
#
# For example, OpenOCD can be started for ESP32 debugging on
#
#   openocd -f board/esp32-kaluga-1-3.3v.cfg
#

# Source the JTAG interface configuration file
source [find interface/ftdi/esp32_devkitj_v1.cfg]
set ESP32_FLASH_VOLTAGE 3.3
# Source the ESP32S2 configuration file
source [find target/esp32s2.cfg]
Or should I set ESP32_FLASH_VOLTAGE 1.8?

I also noted this: If psram was soldered, GPIO26 will be used
as CS, which can't be used as other functions. How do I know if the board (or module) comes with PSRAM?
Do esp-idf support this yet?

I will put the results of my experiments with the board here,
https://github.com/Ebiroll/esp32s2_kaluga
Last edited by Olof Astrand on Fri May 15, 2020 8:36 pm, edited 1 time in total.

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: esp32s2 kaluga-1 with OpenOCD

Postby ESP_igrr » Fri May 15, 2020 3:24 pm

Hi Olof,

ESP32_FLASH_VOLTAGE option only applies to the ESP32 chip.
On ESP32-S2, JTAG pins don't overlap with strapping pins, so such option is not required.
I have tried your .cfg file with Kaluga board and it works well. Just one small typo, [find target/esp32s2.cfg] not [find target/esp3s2.cfg].
We will have the .cfg file for Kaluga board added in the next OpenOCD release.

Olof Astrand
Posts: 27
Joined: Tue Jan 31, 2017 10:59 am

Re: esp32s2 kaluga-1 with OpenOCD

Postby Olof Astrand » Fri May 15, 2020 9:04 pm

Thank you.
I edited the previous post so it should be correct.

When I tested I did not get contact.
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: esp32s2.cpu: IR capture error; saw 0x1f not 0x01

I guess I have to move the JTAG switches to on.

Have a nice weekend.

Olof Astrand
Posts: 27
Joined: Tue Jan 31, 2017 10:59 am

Re: esp32s2 kaluga-1 with OpenOCD

Postby Olof Astrand » Fri May 15, 2020 9:32 pm

Yes. After moving the switches It seems to work.

Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
Info : clock speed 20000 kHz
Info : JTAG tap: esp32s2.cpu tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32s2: Debug controller 0 was reset.
Info : esp32s2: Core 0 was reset.
Info : Listening on port 3333 for gdb connections

Who is online

Users browsing this forum: Baidu [Spider] and 32 guests