Detailed description
For the NRF54L15 reading the targetid would very often fail on the first attempt:
gdb) monitor swdp_scan
attachTarget voltage: Unknown
Please report unknown device with Designer 0x244 Part ID 0x0
Available Targets:
No. Att Driver
*** 1 Unknown ARM Cortex-M Designer 0x244 Part ID 0x0 M33
2 nRF54L Access Port
Running monitor swdp_scan again would then show the correct chip.
This PR integrates retrying to read the target id into the scan process.
Your checklist for this pull request
Closing issues
<!-- Filling this template is mandatory -->
## Detailed description
For the NRF54L15 reading the targetid would very often fail on the first attempt:
```
gdb) monitor swdp_scan
attachTarget voltage: Unknown
Please report unknown device with Designer 0x244 Part ID 0x0
Available Targets:
No. Att Driver
*** 1 Unknown ARM Cortex-M Designer 0x244 Part ID 0x0 M33
2 nRF54L Access Port
```
Running `monitor swdp_scan` again would then show the correct chip.
This PR integrates retrying to read the target id into the scan process.
<!--
Explain the **details** for making this change.
* Is a new feature implemented?
* What existing problem(s) does the pull request solve?
* How does the pull request solve these problems?
Please provide enough information so that others can review your pull request.
Information embedded in the description part of the commits doesn't count.
-->
## Your checklist for this pull request
* [x] I've read the [Code of Conduct](https://codeberg.org/blackmagic-debug/blackmagic/src/CODE_OF_CONDUCT.md)
* [x] I've read the [guidelines for contributing](https://codeberg.org/blackmagic-debug/blackmagic/src/CONTRIBUTING.md) to this repository
* [x] It builds for hardware native (see [Building the firmware](https://codeberg.org/blackmagic-debug/blackmagic?tab=readme-ov-file#building-the-firmware))
* [x] It builds as BMDA (see [Building the BMDA](https://codeberg.org/blackmagic-debug/blackmagic?tab=readme-ov-file#building-black-magic-debug-app))
* [x] I've tested it to the best of my ability
* [x] My commit messages provide a useful short description of what the commits do
## Closing issues
<!-- put "fixes #XXXX" here to auto-close the issue(s) that your PR fixes (if any). -->