cm3: itm: Enable for ARMv8-M Main (Cortex-M33)

This commit is contained in:
ALTracer
2025-07-15 23:42:15 +03:00
parent 8a96a9d95a
commit 0efe43d43e
2 changed files with 3 additions and 3 deletions

View File

@@ -27,8 +27,8 @@
*/ */
/* Those defined only on ARMv7 and above */ /* Those defined only on ARMv7 and above */
#if !defined(__ARM_ARCH_7M__) && !defined(__ARM_ARCH_7EM__) #if !defined(__ARM_ARCH_7M__) && !defined(__ARM_ARCH_7EM__) && !defined(__ARM_ARCH_8M_MAIN__)
#error "Instrumentation Trace Macrocell not available in CM0" #error "Instrumentation Trace Macrocell not available in CM0 or CM23"
#endif #endif
/* --- ITM registers ------------------------------------------------------- */ /* --- ITM registers ------------------------------------------------------- */

View File

@@ -26,7 +26,7 @@
#define PPBI_BASE (0xE0000000U) #define PPBI_BASE (0xE0000000U)
/* Those defined only on ARMv7 and above */ /* Those defined only on ARMv7 and above */
#if defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7EM__) #if defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7EM__) || defined(__ARM_ARCH_8M_MAIN__)
/* ITM: Instrumentation Trace Macrocell */ /* ITM: Instrumentation Trace Macrocell */
#define ITM_BASE (PPBI_BASE + 0x0000) #define ITM_BASE (PPBI_BASE + 0x0000)