soc: stm32: config DBGMCU register writing for SWO configuration
Some stm32 series, do not have a LL_DBGMCU_SetTracePinAssignment function to enable trace IO port, this is the case with the stm32h7 serie. Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
parent
dcf42917c5
commit
e58ab6d713
@ -30,7 +30,7 @@ static int st_stm32_common_config(void)
|
||||
#if defined(CONFIG_SOC_SERIES_STM32WBX) || defined(CONFIG_SOC_SERIES_STM32H5X)
|
||||
LL_DBGMCU_EnableTraceClock();
|
||||
#endif
|
||||
#if !defined(CONFIG_SOC_SERIES_STM32WBX)
|
||||
#if !defined(CONFIG_SOC_SERIES_STM32WBX) && defined(DBGMCU_CR_TRACE_IOEN)
|
||||
LL_DBGMCU_SetTracePinAssignment(LL_DBGMCU_TRACE_ASYNCH);
|
||||
#endif
|
||||
#endif /* CONFIG_LOG_BACKEND_SWO */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user