Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Feature: add some Aarch64 identifiers#2036

Open
ALTracer wants to merge 294 commits into
blackmagic-debug:mainfrom
ALTracer:feature/aarch64-ident
Open

Feature: add some Aarch64 identifiers#2036
ALTracer wants to merge 294 commits into
blackmagic-debug:mainfrom
ALTracer:feature/aarch64-ident

Conversation

@ALTracer

Copy link
Copy Markdown
Contributor

Detailed description

  • This is a minor non-code feature (more LUT entries).
  • The existing problem is BMP practically being able to scan and detect some Aarch64 SoCs but refusing to elaborate further.
  • This PR solves it by registering more known CoreSight and Debug IDs as found on Raspberry/Broadcom RPi3B BCM2837 (JTAG-only) and Rockchip RK3568 (SWD-only).

Actual Aarch64 debug is not possible at this point yet, one of the issues is you can't halt ARMv8-A via the Processor Debug Unit page as on ARMv7-A/R, but the associated CTI may be used instead. So I add the CTI IDs (0x14, 0x1a14) to help that.

BMP flash impact should not be large because Cortex-A is disabled by default. However, arm_component_lut[] is not partially gated on that.

Your checklist for this pull request

Closing issues

dragonmux added 30 commits March 9, 2026 04:58
…correctly and the pins are driven suitably hard
…ng the dual target serial interfaces up to the second host serial interface
…n steering macros weren't available when they should be
… the UART needs to be switched by toggling the direction signal on the level translation once every 10ms
…32U5 as the old method was making erase fail to execute correctly on these devices
… noticable ill effects

This needs properly documenting and that documentation must be written before this is PR'd. The flag does not cause data corruption and appears to work the correct way, however it's unknown if it's acting like DMA or micro-halting the core. We suspect the latter.
…ut string with its value from getting compiled out when assertions are off
…ut string with its value from getting compiled out when assertions are off
…ion so we avoid map truncation problems and buffer overflows for particularly large maps
lethalbit and others added 29 commits May 23, 2026 16:51
…ommand

This was found by looking at the JTAG traffic the lattice diamond programmer generated when programming the ispCLOCK device, and the name was extracted from a JED for the ispCLOCK being converted to an svf file, as the name for this command was included in a comment in the resulting file.
…_done`

These now properly handle the setup and exit for programming ispCLOCK devices
…e attached ispCLOCK device.

After much mucking about and trying to figure out what the lattice programmer was doing and how much of it is required, the method for properly programming the ispCLOCK devices was figured out, which does include wiggling TCK, for some reason....
This is used so we can verify the contents of the the ispCLOCK device and ensure that the correct configuration for it was written
* Extract the memory write into a dedicated helper function
* Wrap it into TRY-CATCH macros
* Drop the extraneous 10ms delay introduced back in PR2072
if we use the stock bootloader, we need to PULL PA12 to GND
The main idea is that if we disable the NXP, RP, EFM and/or NRF
support, there is no need to do a DP rescue and probe for these targets
@ALTracer ALTracer force-pushed the feature/aarch64-ident branch from e5a32ba to 5add874 Compare June 29, 2026 20:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants