ESP32S2 Open OCD issue

sapan.p.shah
Posts: 1
Joined: Thu Aug 18, 2022 1:17 pm

ESP32S2 Open OCD issue

Postby sapan.p.shah » Thu Aug 18, 2022 1:45 pm

I am trying to program ESP32S2 board with J-Link and OpenOCD.

I am getting below error:

Open On-Chip Debugger v0.11.0-esp32-20211220 (2021-12-20-15:43)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
DEPRECATED! use 'adapter driver' not 'interface'
Info : J-Link Ultra V5 compiled Aug 24 2020 10:18:43
Info : Hardware version: 5.00
Info : VTarget = 3.288 V
Info : clock speed 1000 kHz
Info : JTAG tap: esp32s2.cpu tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32s2: Target halted, PC=0x40000400, debug_reason=00000000
Info : Detected ESP32-S2 chip
Info : starting gdb server for esp32s2 on 3333
Info : Listening on port 3333 for gdb connections
Info : JTAG tap: esp32s2.cpu tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32s2: Debug controller was reset.
Info : esp32s2: Core was reset.
Info : esp32s2: Target halted, PC=0x4001276A, debug_reason=00000000
Info : esp32s2: Core was reset.
Info : esp32s2: Target halted, PC=0x40000400, debug_reason=00000000
** Programming Started **
Info : esp32s2: Target halted, PC=0x40031E6E, debug_reason=00000001
Info : Flash mapping 0: 0x10020 -> 0x3f000020, 253 KB
Info : Flash mapping 1: 0x50020 -> 0x40080020, 896 KB
Info : esp32s2: Target halted, PC=0x40031E6E, debug_reason=00000001
Info : Auto-detected flash bank 'esp32s2.flash' size 4096 KB
Info : Using flash bank 'esp32s2.flash' size 4096 KB
Info : esp32s2: Target halted, PC=0x40031E6E, debug_reason=00000001
Info : Compressed 1282048 bytes to 751693 bytes in 0.050028s
Warn : not enough working area available(requested 44792)
Error: no working area available, can't alloc stub stack!
Error: Failed to run flasher stub (-308)!
Error: error writing to flash at address 0x00000000 at offset 0x00001000
** Programming Failed **
shutdown command invoked

Could you please help me?

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 90 guests