M4 Core ITM trace
Hi,
Looking at the reference manual, en.DM00327659.pdf, page 3929 it seems the simple way of debugging previous M4 processors using printf() redirect to the ITM and then using the SWO pin/STLINK interface could be used on the MP1 M4 core as well.
But there isn't simple mention of the ITM functions in the STM32Cube_FW_MP1_V1.0.0 release, and there is not even a single declaration of the ITM HW in the stm32mp157cxx_cm4.h file(not even the 0xE0000000 base address).
Can you provide some code example please, it will be much better starting point than the vague description of the ITM operation in the reference manual. Thank you!
Edit: ST-Link utility connected to the STM32MP157C-DK2 dev board seems not able to connect (loaded with latest V2.J34.M25 firmware) to the MP1. It does reset it though, so printf in the SWO viewer is out of the question. Maybe there is a way to redirect ITM to the M4 core ?
Second, seems the M4 ITM hw is loosely based on the STM32F469/479 ITM core(at least register addresses match). But the CubeF4 also do not supply 469 example, and ITM register also seems to be not declared in the include files.
I have working code ITM print code for F4, F7 and H7 devices, but the 469/MP1 hardware seems bit different.
K.
