STM32N647: OpenOCD halt/debug fails with UNDEFINED while CubeIDE works
@tarek-bochkati がすでに取り組んでいます。
2026年1月6日 から。
評価
この issue はまだ評価されていません。
説明
Dear ST Support Team,
I am reporting a debug issue on STM32N647 where debugging works correctly in STM32CubeIDE, but fails when using OpenOCD (ST fork) with ST-LINK.
Summary
On STM32N647 (Cortex-M55, TrustZone), OpenOCD is able to connect to the target and enumerate the core, but any attempt to halt/pause/step the CPU results in an UNDEFINED debug reason. The same hardware, firmware, and debug authentication state work correctly when debugging with STM32CubeIDE using ST-LINK.
Hardware
- MCU: STM32N647X0HxQ
- Debug probe: ST-LINK (V2J46S7)
- Target voltage: ~3.3 V
Software / Tools
- STM32CubeIDE: Debug works normally (halt/step/breakpoints OK)
- ST-LINK Server: API v3, FW 2.1.1
- OpenOCD: 0.12.0+dev-00623-g0ba753ca7 (STMicroelectronics fork)
- VS Code + cortex-debug 1.12.1
Project / Boot Mode
- Boot mode: Internal SRAM boot
- Program under debug: FSBL
- Debug mode: load and run
- Debug Authentication: OPEN (confirmed, since CubeIDE debugging works)
OpenOCD Behavior
OpenOCD connects successfully:
- SWD/DAP connection OK
- Cortex-M55 detected
- Registers and memory can be read
However, when GDB connects or when “Pause” is issued:
halted due to undefined
undefined debug reason 8 (UNDEFINED)
VS Code / cortex-debug then reports:
Received readMemory request while busy (SCB fault registers)
Returning dummy thread-id / stack frame to workaround pause button not working
Halt, step, and breakpoints never work. Changing reset configuration, SWD speed, or OpenOCD options does not change the behavior.
Questions
- Is OpenOCD (ST fork) officially expected to support full halt/step debugging on STM32N647?
- Is there a known limitation or missing Secure Debug / TrustZone handling in OpenOCD for STM32N6?
- Is there a recommended OpenOCD configuration, patch, or restriction note for STM32N647?
I can provide full OpenOCD logs, CubeIDE screenshots, and configuration files if needed.
- 主要言語
- C
- スター
- 205
- フォーク
- 59
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
STMicroelectronics/OpenOCD のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 67/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
STMicroelectronics/OpenOCD#42 · コメント 9 件 · リアクション 5 件 ·
STMicroelectronics/OpenOCD の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
dkfans/keeperfx#5415 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
void-linux/void-runit#141 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ARM-software/sysarch-acs#600 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信