blackmagic-debug / blackmagic

In application debugger for ARM Cortex microcontrollers.
GNU General Public License v3.0
3.3k stars 775 forks source link

Fix: Read CPUID when the core is powered #1986

Closed marysaka closed 3 weeks ago

marysaka commented 3 weeks ago

Detailed description

As per A-profile TRM, MIDR_EL1 access when not powered or in double lock is implementation defined.

Instead of reading the value after the halt request, let's do it right after the core is powered up and not in double lock.

Your checklist for this pull request

Closing issues