2025-06-02 2:55 PM
I was comparing the STM32 Debug Support documentation (Chapter 26 in RM0360) with official ARM documentation and noticed something that I cannot explain.
The documentation for the SW-AP registers appears to be wrong. It is simply a rewording of the documentation of the SW-DP registers. The IHI0031 document from ARM shows the correct definitions of the SW-AP registers. It however leaves certain fields as implementation defined and I believe this information should be in RM0360. I have checked and the same appears in the RMs for the G030 and the C030.
I am interested in knowing, for example, the details of the PROT bit field (Bits 30..24) in the CSW register which should be at address 0x00 in the AP.