STM32 MCUs Embedded software

Ask questions and find answers on STM32Cube packages, including HAL, LL and middleware, and expansion software.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Thread safety of code generated by Cube

Hello,I'm wondering if Cube's generated code for is thread safe. In particular, whether malloc can be safely used in a multi-threaded FreeRTOS setup.The broken malloc behavior was first described by Dave Nadler in 2019 here. He has also written about...

unturned3 by Associate II
  • 2773 Views
  • 7 replies
  • 2 kudos

Resolved! Mongoose not working with LWIP + FreeRTOS

 I'm trying to build a simple HTTP server using Mongoose with the LWIP IP stack on FreeRTOS CMSIS_V1. It is important that I let LWIP handle the network interface since I'm also using it to advertise a service using mDNS. This is what my task looks l...

marrr by Associate II
  • 527 Views
  • 8 replies
  • 2 kudos

Problems with HAL_UART_Transmit_DMA

I’m using the STM32F401RET6 board, collecting data from a USB accelerometer at 16 kHz.I wanted to verify that the data is actually being collected at 16 kHz, and then run an FFT to compare it with previously collected PC data. To do this, I need to t...

Para033 by Associate
  • 620 Views
  • 4 replies
  • 1 kudos

F103C8 USART DMA Issue

Hi, I'm having the following issue with the F103C8 USART DMA.After reset, sometimes the USART DMA Receive doesn't work. It doesn't happen every time, but it happens about once every 10 resets. HAL_UARTEx_ReceiveToIdle_DMA(&huart1, (uint8_t *)RxDataUs...

asttekin by Associate II
  • 228 Views
  • 3 replies
  • 1 kudos

Resolved! Simple ISR for DMA

I'm losing my mind a little, because this seems like it should be a simple task. I have configured my I2C module to enable DMA and interrupts: I can confirm that my call to HAL_I2C_Master_Transmit_DMA returns OK. I can also confirm that the generate...

avidroneg_0-1760975095854.png
avidroneg by Associate III
  • 266 Views
  • 4 replies
  • 3 kudos

Resolved! STM32N6 DK ETH problem

I use STM32Cube FW_N6 V1.2.0 to create an FW to run a web server on the DK board. I figured out that I can not talk to the PHY chip to read the PHY ID. I compared the code with another example that ST released and figured out that these codes are mis...

AliR by Associate
  • 228 Views
  • 2 replies
  • 1 kudos