Skip to main content
Associate
Question

CubeMX 6.19.0: Cant enable adv_trace and LPUART issues

I have attached ioc file.

I can’t enable ADV_TRACE in CubeMX using STM32WB09KEVx.

I have all peripherals enabled to use STM32_BLE (client app) and using LPUART with DMA

 

Even with it ADV_TRACE disabled it adds it to app_conf.h and usart_if.h:

#include "stm32_adv_trace.h"

And it wont build since the file doesn’t exist.

 

It also adds other things which are related to adv_trace (app_conf.h):

#define APP_DBG(...)                                      \

{                                                                 \

  UTIL_ADV_TRACE_COND_FSend(VLEVEL_L, ~0x0, ADV_TRACE_TIMESTAMP_ENABLE, __VA_ARGS__); \

}

 

Second issue: in usart_if.c:
HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
  HAL_UART_Receive_IT(&huart1, &charRx, 1);
shouldn’t it be:
  HAL_UART_Receive_IT(huart, &charRx, 1);

Third issue: it’s trying to use LPUART1_DMA_MspDeInit() in usart_if.c which doesn’t exist.

2 replies

ST Technical Moderator

Hello ​@bruno192 

Thanks for reporting this issue,

I am checking it internally and I will get back to you ASAP;

BR, Souhaib

To give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
ST Technical Moderator

Hello ​@bruno192 

Thank you for your contribution,
This issue has been raised internally to the dedicated team for review. (Ticket CDM0067825 :This is an internal tracking number and is not accessible or usable by customers) 

KR, Souhaib

To give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.