2024-11-08 01:49 AM
hello everyone
I would like to send ITM data on my NucleoH743ZI. I have already tried several configurations and I am not getting any data on my 4 parallel lines, i measured with my oscilloscope. There are also not many examples so I am asking here.
Have I forgotten something important in my configuration?
Thanks for the help in advance
GPIO_InitTypeDef GPIO_InitStruct;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
GPIO_InitStruct.Pin = GPIO_PIN_2 | GPIO_PIN_3 | GPIO_PIN_4 | GPIO_PIN_5 | GPIO_PIN_6;
GPIO_InitStruct.Alternate = 0;
HAL_GPIO_Init( GPIOE, &GPIO_InitStruct );
My configuration:
static void ConfigureTraceComponents()
{
TpiuOptions tpiu = {
.Protocol = TpiuProtocolParallel, // Verwende das parallele Protokoll
.TracePortWidth = 4 // Setze auf 4-Bit
};
ITMOptions itm = {
.TraceBusID = 1, // ID für den Trace-Bus
.GlobalTimestampFrequency = ITMGlobalTimestampFrequencyIfOutputFIFOEmpty,
.LocalTimestampPrescaler = ITMLocalTimestampPrescalerDivideBy4,
.EnableLocalTimestamp = true, // Lokale Timestamps aktivieren
.ForwardDWT = true, // DWT-Pakete weiterleiten
.EnableSyncPacket = true, // Synchronisierungspaket aktivieren
.EnabledStimulusPorts = ITM_ENABLE_STIMULUS_PORTS_ALL // Alle Stimulusports aktivieren
};
// DWT Konfiguration
DWTOptions dwt = {
.SyncTap = DWTSyncTap24,
.CycleTap = DWTCycleTap6,
.PCSampling = true,
.SamplingPrescaler = 10,
};
// Konfigurationen anwenden
TpiuSetup(&tpiu);
ITMSetup(&itm);
DWTSetup(&dwt);
}
in my while(1):
ITMWrite8(5, 'H');
2024-11-08 02:54 AM
Look for "orbuculum" and maybe ask on the Discord orbuculum channel.
2024-11-08 03:03 AM
I already did this. I thought that i could get help here.
2024-11-08 03:22 AM
2024-11-08 04:52 AM
I looked at your suggestion, but I don't see an ARM register configuration for the STM32 there.
https://wiki.segger.com/ST_STM32H7#Tracing_on_ST_STM32H743
2024-11-08 05:07 AM
They supply evaluation software, there you'll see the configuration. If not, ask on their forum.