flipperdevices / blackmagic-esp32-s2

GNU General Public License v3.0
467 stars 90 forks source link

Instable DAPLink on ESP32-S2 evalboard? #41

Open rena2019 opened 1 year ago

rena2019 commented 1 year ago

Seems that the DAPLink interface is not stable on my Muselab  NanoESP32 S2 evalboard even if I set the adapter speed down to 1kHz, openocd log:

Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : Using CMSIS-DAPv2 interface with VID:PID=0x303a:0x4002, serial=DAP_7CDFA105F2D6
Info : CMSIS-DAP: SWD supported
Info : CMSIS-DAP: FW Version = 2.0.0
Info : CMSIS-DAP: Serial# = 7CDFA105F2D6
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 0 SWDIO/TMS = 0 TDI = 0 TDO = 0 nTRST = 0 nRESET = 0
Info : CMSIS-DAP: Interface ready
Info : clock speed 1 kHz
Info : SWD DPIDR 0x2ba01477
Info : [STM32F401CEUx.cpu] Cortex-M4 r0p1 processor detected
Info : SWD DPIDR 0x2ba01477
Error: Failed to read memory at 0xe000ee00
Info : SWD DPIDR 0x2ba01477
Error: Failed to read memory and, additionally, failed to find out where
Info : [STM32F401CEUx.cpu] target has 0 breakpoints, 0 watchpoints
Info : SWD DPIDR 0x2ba01477
Info : SWD DPIDR 0x2ba01477
Error: Failed to read memory and, additionally, failed to find out where
Error: read_memory: read at 0xe0042004 with width=32 and count=1 failed
Error executing event examine-end on target STM32F401CEUx.cpu:
Info : starting gdb server for STM32F401CEUx.cpu on 3333
Info : Listening on port 3333 for gdb connections
Info : SWD DPIDR 0x2ba01477
Polling target STM32F401CEUx.cpu failed, trying to reexamine
Info : SWD DPIDR 0x2ba01477
Info : [STM32F401CEUx.cpu] Cortex-M4 r0p1 processor detected
Info : SWD DPIDR 0x2ba01477
Error: Failed to read memory and, additionally, failed to find out where
Examination failed, GDB will be halted. Polling again in 100ms

Maybe an STM32-only issue because communication with RP2040 and nRF52 devices is working

skotopes commented 9 months ago

Try to check cables first. If you have oscilloscope check data exchange.

KondratokGK commented 5 months ago

Same issue. It`s not working with stm32cubeide via wifi or usb. But Flipper Zero as Daplink working perfectly/