2025-08-25 7:36 AM
Dear STM32 Community,
We believe that the example projects provided for the STM32Cube embedded software are a valuable resource when developing projects.
We would like to better understand how developers use these examples in their workflow and explore ways to improve them. Therefore, we have a few questions we would like to ask:
From where do you obtain the examples, and why?
How do you use the examples in your work with STM32 embedded software?
What is working well, and what can we do to improve the examples and/or your experience working with them?
You can either reply directly in this thread or feel free to send me a private message.
Best regards,
Emil
2025-09-02 10:37 AM
I'll agree. Perhaps a different example code schema would be to write your code, then in a specific section do something like:
//*********************************************************************************
// Code here to write one character to the USART, assuming that the USART is already initialized
// example for HAL and CUBEMX using blocking send:
result = HAL_UART_Transmit(huart, dataptr, data_count, 20);
if (LF) result = HAL_UART_Transmit(huart, (uint8_t*)&terminate[0], sizeof(terminate), 20);
// ********************************************************************************
Using a usart send as an example.
Your BSP packages are so specific to a board as to limit them only to running a demo on your specific hardware.
You have experts in BSP packages, experts in LL packages, and experts in HAL packages. Simple #ifdef statements can control which gets used, and each expert can contribute their own connection to the driver.