2021-12-23 09:42 PM
I build a new application with a custom GATT and would like to use the UART debug features that can be seen in the examples. I configured my IOC as follows and verifid the UART is working with the following code:
char msg[] = "Begin1\n";
HAL_UART_Transmit_DMA(&huart1, msg, sizeof(msg));
However no debug messages are getting printed properly.. I have attached a screenshot and my complete example project. Working with the STM32WB5M-DK
Solved! Go to Solution.
2021-12-25 07:24 AM
AH yes. Now i can rest.. the MX did not add a call to APPD_Init()
Within app_entry.C
/* USER CODE BEGIN APPE_Init_1 */
APPD_Init(); //Add this
UTIL_LPM_SetOffMode(1 << CFG_LPM_APP, UTIL_LPM_DISABLE); //This disables OFF mode for the LPM
/* USER CODE END APPE_Init_1 */
Merry Christmas!
2021-12-25 07:24 AM
AH yes. Now i can rest.. the MX did not add a call to APPD_Init()
Within app_entry.C
/* USER CODE BEGIN APPE_Init_1 */
APPD_Init(); //Add this
UTIL_LPM_SetOffMode(1 << CFG_LPM_APP, UTIL_LPM_DISABLE); //This disables OFF mode for the LPM
/* USER CODE END APPE_Init_1 */
Merry Christmas!