Hello @Alice_Yang ,
I did prepare a minimalistic Project based on the SDK Example (LED Blinky) for the FRDM-MCXN236 Demonstration Board. (demo_apps -> LED_BLINKY_PERIPHERAL)
The MCXN236 Board setup seems to show the same effect as the MCXA156 Board I used before. I just wanted to confirm this behaviour on another Board.
Pin config set P0_2 -> Output SWO (Default in this example)
Enabled the TRACECLK and TRACECLKDIV (1) as this example uses BOARD_BootClockFRO12M()
Added following code to see some action on glocal ram variables:
volatile uint32_t debug_cnt = 0;
void SysTick_Handler(void)
{
/* Toggle pin connected to LED */
GPIO_PortToggle(BOARD_LED_GPIO, 1u << BOARD_LED_GPIO_PIN);
debug_cnt++; //<- added for demonstration purpose
}
Attachments: Zip with demo project, video of my debug session.
You can see that "SWO Data" does not show any tracing data. Global variables window shows the increment of debug_cnt in SysTick_Handler cycle of ~1s. Also "SWO Interrupts" shows the entry and exit of SysTick_Handler() reliably so the electrical connection of SWO trace seems to work correctly.
Let me know if I can provide more info to narrow down this issue.
I would also be happy if you could confirm whether my expectation of tracing a global/static RAM variable with DWT is possible. Or I have a misunderstanding.