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

SDRAM + SD-Card intermittent write failure.

I am having issues when writing a buffer that is declared in the external buffer to an SD card. When I tried to download a bulk file (1.5MB), write failure (f_write returns FR_DISK_ERR) would happen at least once during the download process, but if I...

cleonb322 by Associate III
  • 575 Views
  • 5 replies
  • 0 kudos

N657 Overdrive

Hello,An ST employee wrote this article: https://community.st.com/t5/stm32-mcus/how-to-use-the-stm32n6-in-overdrive-mode/ta-p/810926where you can increase the voltage to the STM32 core to get higher performance.  I have 3 questions regarding this art...

matt-crc by Senior III
  • 160 Views
  • 2 replies
  • 0 kudos

Resolved! Possible bug in HAL_UART_DeInit()

Hello all,There might be a possible bug in HAL_UART_DeInit(). When calling HAL_UART_DeInit() when it is already initialized could lead to CPU starvation. Assume that an interrupt fires after calling __HAL_UART_DISABLE(huart); and before huart->Instan...

bala- by Associate
  • 129 Views
  • 2 replies
  • 0 kudos

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
  • 2421 Views
  • 7 replies
  • 2 kudos

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
  • 242 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
  • 436 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
  • 150 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