Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions platform/bootloader/debug/btl_debug_swo.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ void btl_debugInit(void)
GPIO->ROUTELOC0 = (GPIO->ROUTELOC0 & ~(_GPIO_ROUTELOC0_SWVLOC_MASK))
| SL_DEBUG_SWV_LOC;

#if ((__CORTEX_M == 4) || (__CORTEX_M == 33))
// Set TPIU prescaler to 22 (19 MHz / 22 = 863.63 kHz SWO speed)
tpiu_prescaler_val = 22 - 1;
#endif

#endif
// Enable output on pin
#if (SL_DEBUG_SWV_PIN > 7U)
Expand Down