7
31
Fork
You've already forked blackmagic
23

Issue with BMP, arm-none-eabi-gbd 14.3 and nRF54L15 #2155

Closed
opened 2025年10月28日 14:08:33 +01:00 by Ludovic37-center · 2 comments
Ludovic37-center commented 2025年10月28日 14:08:33 +01:00 (Migrated from github.com)
Copy link

Hi,

At my company, I am working on a cutsom board equipped with a NORDIC nrf54L15.
We need to use the Black Magic Probe to bulk program large numbers of devices in production (https://black-magic.org/usage/gdb-automation.html), so i created a windows batch file to do it.
(arm-none-eabi-gdb.exe --batch -nx -ex "target extended-remote \.\COM27" -x black_magic_probe_flash.scr binary.hex)
I've got some strange error with arm-none-eabi-gdb when running this batch file.

When i try tu use arm-none-eabi-gdb manually, i've got an error with "attach 1".
I think it try to attch to the nRF54L Access Port.
Have you ever encountered this problem and do you have a solution ?
Best regards
Thank you

GNU gdb (Arm GNU Toolchain 14.3.Rel1 (Build arm-14.174)) 15.2.90.20241229-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-w64-mingw32 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.linaro.org/>.
Find the GDB manual and other documentation resources online at:
 <http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) target extended-remote \\.\COM27
Remote debugging using \\.\COM27
(gdb) monitor swdp_scan
Target voltage: 3.3V
Available Targets:
No. Att Driver
 1 nRF54L M33
 2 nRF54L Access Port
(gdb) attach 1
Attaching to Remote target
Attaching to Remote target failed: 01
(gdb) attach 1
Attaching to Remote target
warning: No executable has been specified and target does not support
determining executable automatically. Try using the "file" command.
0x0001045e in ?? ()
(gdb)
Hi, At my company, I am working on a cutsom board equipped with a NORDIC nrf54L15. We need to use the Black Magic Probe to bulk program large numbers of devices in production (https://black-magic.org/usage/gdb-automation.html), so i created a windows batch file to do it. (arm-none-eabi-gdb.exe --batch -nx -ex "target extended-remote \\.\COM27" -x black_magic_probe_flash.scr binary.hex) I've got some strange error with arm-none-eabi-gdb when running this batch file. When i try tu use arm-none-eabi-gdb manually, i've got an error with "attach 1". I think it try to attch to the nRF54L Access Port. Have you ever encountered this problem and do you have a solution ? Best regards Thank you ``` GNU gdb (Arm GNU Toolchain 14.3.Rel1 (Build arm-14.174)) 15.2.90.20241229-git Copyright (C) 2024 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=x86_64-w64-mingw32 --target=arm-none-eabi". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://bugs.linaro.org/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) target extended-remote \\.\COM27 Remote debugging using \\.\COM27 (gdb) monitor swdp_scan Target voltage: 3.3V Available Targets: No. Att Driver 1 nRF54L M33 2 nRF54L Access Port (gdb) attach 1 Attaching to Remote target Attaching to Remote target failed: 01 (gdb) attach 1 Attaching to Remote target warning: No executable has been specified and target does not support determining executable automatically. Try using the "file" command. 0x0001045e in ?? () (gdb) ```

First questions we have for this are: what version of the firmware are you running (mon version)? After the first attach failure, does the probe carry any error information? (mon morse)

Do please note that swdp_scan is deprecated, please prefer and use swd_scan instead.

First questions we have for this are: what version of the firmware are you running (`mon version`)? After the first attach failure, does the probe carry any error information? (`mon morse`) Do please note that `swdp_scan` is deprecated, please prefer and use `swd_scan` instead.
Ludovic37-center commented 2025年10月29日 09:36:49 +01:00 (Migrated from github.com)
Copy link

Hi,
I'm using the last firmware: 2.0.0
There is no error information as you can see below

Thanks for your time.

GNU gdb (Arm GNU Toolchain 14.3.Rel1 (Build arm-14.174)) 15.2.90.20241229-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-w64-mingw32 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.linaro.org/>.
Find the GDB manual and other documentation resources online at:
 <http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) target extended-remote \\.\COM10
Remote debugging using \\.\COM10
(gdb) monitor swd_scan
Target voltage: 3.3V
Available Targets:
No. Att Driver
 1 nRF54L M33
 2 nRF54L Access Port
(gdb) attach 1
Attaching to Remote target
Attaching to Remote target failed: 01
(gdb) mon version
Black Magic Probe v2.0.0, Hardware Version 6
Copyright (C) 2010-2025 Black Magic Debug Project
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
(gdb) mon morse
No message
(gdb)
Hi, I'm using the last firmware: 2.0.0 There is no error information as you can see below Thanks for your time. ``` GNU gdb (Arm GNU Toolchain 14.3.Rel1 (Build arm-14.174)) 15.2.90.20241229-git Copyright (C) 2024 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=x86_64-w64-mingw32 --target=arm-none-eabi". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://bugs.linaro.org/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) target extended-remote \\.\COM10 Remote debugging using \\.\COM10 (gdb) monitor swd_scan Target voltage: 3.3V Available Targets: No. Att Driver 1 nRF54L M33 2 nRF54L Access Port (gdb) attach 1 Attaching to Remote target Attaching to Remote target failed: 01 (gdb) mon version Black Magic Probe v2.0.0, Hardware Version 6 Copyright (C) 2010-2025 Black Magic Debug Project License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> (gdb) mon morse No message (gdb) ```
dragonmux 2026年03月23日 08:58:10 +01:00
Sign in to join this conversation.
No Branch/Tag specified
main
fix/pre-bmp-v3-cross-file-cleanup
feature/bmda-remote-comms
ALTracer/feature/aarch64-ident
feature/better-meson-optimisation-handling
feature/am335x-support
feature/esp32-c3-support
feature/cortex-ar-software-breakpoints
feature/unit-testing
feature/windows-usb-serial-interface-naming
fix/bmp-external-spi
ALTracer/feature/bluepillplus-platform
ALTracer/feature/at32f43x-unrdp
feature/const-correctness
ALTracer/feature/fault_handlers
ALTracer/feature/hazard3-ice40-support
fix/ci-cleanup
ALTracer/fix/gdb-10-12-thread
ALTracer/feature/blackpill-f4-adc
ALTracer/fix/cortex-desc-allocfail-report
ALTracer/feature/spi-perf
ALTracer/feature/calibrate_swd
ALTracer/feature/blank-check
feature/avr
v2.0
v1.9
v1.10
v1.8
v2.1.0-rc1
v2.0.0
v2.0.0-rc2
v2.0.0-rc1
v1.9.3
v1.10.2
v1.10.1
v1.10.0
v1.10.0-rc1
v1.10.0-rc0
v1.9.2
v1.8.3
v1.9.1
v1.9.0
v1.9.0-rc1
v1.9.0-rc0
v1.8.2
v1.8.1
v1.8.0
v1.7.1
v1.7
v1.6.2-rc1
1.6.2-rc0
v1.6.1
v1.6
v1.6-rc1
v1.6-rc0
production_01
production_00
Labels
Clear labels
BMD App
Black Magic Debug App (aka. PC hosted) (not firmware)
BMP Firmware
Black Magic Probe Firmware (not PC hosted software)
Bug
Confirmed bug
Build system
Build system
Can't reproduce
Maintainers can't reproduce this problem
CI
Continuous Integration System
Contribution wanted
User contributions welcome
Documentation
Project documentation
Draft
Work in progress draft
Duplicate
This issue or pull request already exists
Enhancement
General project improvement
Feedback wanted
Requires additional submitter feedback
Foreign Host Board
Non Native hardware to runing Black Magic firmware on
GDB
Issue/PR related to GDB
Good first issue
Good for newcommers
HwIssue Mitigation
Solving or mitigating a Hardware issue in Software
Information Needed
Maintainers need more information
NativeHardware
Official Black Magic Debug Hardware
New Host Board
New hardware to run Black Magic firmware on
New Target
New debug target
Off Topic
Something that does not involve the project in any way
Potential Bug
A potential, unconfirmed or very special circumstance bug
Regression
Bug caused by a regression
User Interest Needed
More user interest required before consideration
User Testing Needed
Looking for user testing reports
Won't fix
Outside of the project scope or works as intended
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
blackmagic-debug/blackmagic#2155
Reference in a new issue
blackmagic-debug/blackmagic
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?