2019-12-07 05:42 AM
I have inserted this simple code to the main() of the CubeIDE generated code.
/* USER CODE BEGIN 2 */
HAL_StatusTypeDef status = HAL_UART_Transmit_DMA(
& huart3,
buf,
sizeof(buf));
/* USER CODE END 2 */
It should transmit a short message through the STlink console, and then, cause interrupt. But none of these occurred.
I have checked on Nucleo F733ZE and Nucleo G431RB( 64pin ).
The demonstration program of this problem is attached as zipped. file. To see the demo of the problem.
If the program run correctly, you will see the message on the terminal program on host, and program stop at break point on interrupt handler. I could not see these behavior.
The environment is :
Please kindly check.
2019-12-07 05:49 AM
The generated code is sometimes wrong, see
hth
KnarfB
2019-12-07 06:27 AM
> The generated code is sometimes wrong
I would say that there are some parts of HAL/CubeMX code, that are not flawed, but absolutely all that code is bloated and inflexible.
2019-12-10 04:12 PM
Thanks KnarfB
I've checked linked paged and understood what happen.
The workaround by KnarfB works fine.
2019-12-10 04:13 PM
Thanks Piranha.
Hope ST releases the updated CubeIDE soon.