espressif / openocd-esp32

OpenOCD branch with ESP32 JTAG support
Other
362 stars 132 forks source link

Error: can't add breakpoint: unknown reason (OCD-878) #309

Closed diplfranzhoepfinger closed 10 months ago

diplfranzhoepfinger commented 11 months ago

Development Kit

ESP32-S3-DEVKITC

Module or chip used

ESP32-S3

Debug Adapter

none. Want to use USB-JTAG

OpenOCD version

GNU gdb (esp-gdb) 12.1_20221002

Operating System

Linux

Using an IDE ?

Eclipse with Espressif Plugin

OpenOCD command line

eclipse

JTAG Clock Speed

default

ESP-IDF version

esp-idf-v5.1.2

Problem Description

see log

Debug Logs

https://gist.github.com/diplfranzhoepfinger/0586f0724534a997b6d77d7bca200615

Info : [esp32s3.cpu0] Reset cause (3) - (Software core reset)
Warn : address 0x42008a80 not writable
Error: [esp32s3.cpu0] Error writing instruction to memory: -4
Error: [esp32s3.cpu0] Failed to write breakpoint instruction (-4)!
Error: [esp32s3.cpu0] Failed to add SW breakpoint!
Error: can't add breakpoint: unknown reason
Warn : address 0x42008b3d not writable
Error: [esp32s3.cpu0] Error writing instruction to memory: -4
Error: [esp32s3.cpu0] Failed to write breakpoint instruction (-4)!
Error: [esp32s3.cpu0] Failed to add SW breakpoint!
Error: can't add breakpoint: unknown reason
Warn : address 0x42008b46 not writable
Error: [esp32s3.cpu0] Error writing instruction to memory: -4
Error: [esp32s3.cpu0] Failed to write breakpoint instruction (-4)!
Error: [esp32s3.cpu0] Failed to add SW breakpoint!
Error: can't add breakpoint: unknown reason
Cannot access memory at address 0x42008a80

Info : dropped 'gdb' connection
shutdown command invoked

Expected behavior

Breakpoint to be set

Screenshots

No response

franz-ms-muc commented 11 months ago

same in Windows:

https://gist.github.com/franz-ms-muc/26b6434bc92a5beb30901e3055da7541

franz-ms-muc commented 11 months ago

same in Windows:

https://gist.github.com/franz-ms-muc/26b6434bc92a5beb30901e3055da7541

erhankur commented 11 months ago

I see the application resets periodically. Would you happen to know what the reason is? Can you send me your partition table? And serial console output without OpenOCD running. Also, could you add OpenOCD verbose logs enabled with -d3?

erhankur commented 10 months ago

Closed due to inactivity.