cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f030cctx uart generated code bug

dqsh06
Senior

hello,

now I am using stm32f030cct6 to design a simple program. i used all the 6 uarts of this chip. it works fine, but the interrupt code generated by STM32CubeMX has a simple bug. 

the code as below.

dqsh06_0-1769566375098.png

for the uart6, there is a useless (&huart6);  i think it is no effect to the function, but when building, there is a warning.

stm32f0xx_it.c:172:33: warning: statement with no effect [-Wunused-value]
[build]   172 |   HAL_UART_IRQHandler(&huart6);(&huart6);
[build]       |                                ~^~~~~~~~
 
I dont like the warning. 
so i think you can simplly fix this bug.
 
thanks.
1 REPLY 1
Ghofrane GSOURI
ST Employee

Hello @dqsh06 

I'm currently investigating this behaviour.I will get back to you ASAP.

Thx

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.