cancel
Showing results for 
Search instead for 
Did you mean: 

Your Input Matters: How Do You Use STM32Cube Examples?

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?

  • Are you working with the examples through the STM32Cube MCU packages, the STM32CubeMX Example Selector, or through GitHub?
  • Is there a particular reason you prefer one channel over the others?

How do you use the examples in your work with STM32 embedded software?

  • Do you use the examples to learn how to use a driver or a feature, as reference code for implementation, and/or for debugging?

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

10 REPLIES 10

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.