Associate III
November 8, 2019
Question
STM32CubeMX 5.4.0: code generation for TRACER_EMB fails when choosing USART2 as Uart Trace Source
- November 8, 2019
- 3 replies
- 1419 views
Hi,
When choosing USART2 as "Uart Trace Source" for the TRACER_EMB the generated tracer_emb_conf.h file contains a Java backtrace, and the generated project cannot be built.
#define TRACER_EMB_USART_IRQHANDLER USART2_IRQHandler
#define TRACER_EMB_TX_AF_FUNCTION LL_GPIO_SetAFPin_0_7
Error: on line 185, column 6 in tracer_emb_conf_g0.ftl
Expecting a number here, found: valueNotSetted
The problematic instruction:
----------
==> if-else [on line 185, column 1 in tracer_emb_conf_g0.ftl]
----------
Java backtrace for programmers:
----------
freemarker.core.NonNumericalException: Error: on line 185, column 6 in tracer_emb_conf_g0.ftl
Expecting a number here, found: valueNotSettedI have attached the full STM32CubeMX project file, and the generated tracer_emb_conf.h.
As a workaround I use the LPUART, code generation works in this case.
Best regards,
Christoph
