Umesh Lokhande
Umesh Lokhande
DIIDevHeads IoT Integration Server
Created by Okpara Elvis on 12/31/2024 in #🪲-firmware-and-baremetal
Why isn’t my printf output showing on the SWV ITM console for STM32F401CDU6?
This code seems like missing pointers to hold memory addresses. Please copy paste my suggested lines of code or compare both carefully. Following part of your code
// Debug Exception & Monitor Control Register Base Address
#define DEMCR *((volatile uint32_t*) 0xE000EDFCU)

//ITM Register Address
#define ITM_STIMULUS_PORT0 *((volatile uint32_t*) 0xE0000000)
#define ITM_TRACE_EN *((volatile uint32_t*) 0xE0000E00)
// Debug Exception & Monitor Control Register Base Address
#define DEMCR *((volatile uint32_t*) 0xE000EDFCU)

//ITM Register Address
#define ITM_STIMULUS_PORT0 *((volatile uint32_t*) 0xE0000000)
#define ITM_TRACE_EN *((volatile uint32_t*) 0xE0000E00)
31 replies