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

Resolved! FLASH_OB_DisableWRP bug

There is a bug in the above mentioned function in stm32f1xx_hal_flash_ex.c file. The function has a uint32_t type parameter WriteProtectPage which determines the flash page chunks to disable the write protection of. On my F103 MCU it means every bit ...

Baksi675 by Associate
  • 191 Views
  • 2 replies
  • 0 kudos

STM32U5G7 MX_USB_OTG_HS_PCD_Init() hangs

Hello STM32 friends!I've previously used USB on an STM32G474RET6, and it was initialized with the function:MX_USB_Device_Init()The goal is to use it as a USB serial port to communicate with my device, and that worked.Now I'm using the STM32U5G7VJT6, ...

Jack3 by Senior III
  • 436 Views
  • 6 replies
  • 2 kudos

What's a DMA TransferAllocatedPort?

I'm still working my way around the DMA learning curve.  Having found the IOC approach to DMA configuration too confusing, I'm configuring the structs and calling the HAL_DMA_Init(...) method myself.Something I haven't been able to find clearly descr...

Brian H by Senior
  • 255 Views
  • 3 replies
  • 1 kudos

Resolved! Serial communication limited to 512 bytes

Hello, I am using a NUCLEO-H7A3ZI-Q to send and receive packets over serial. I have a varying payload size, so I am using: HAL_UARTEx_ReceiveToIdle_DMA(&huart3, rx_buffer, 4096); as this searches for an idle at the end of the frame to begin processin...

Pincate by Associate III
  • 727 Views
  • 10 replies
  • 4 kudos

Resolved! 512 byte limit with HAL_UARTEx_ReceiveToIdle_DMA

Hello, I am having a issue with HAL_UARTEx_ReceiveToIdle_DMA on a NUCLEO-H7A3ZI-Q, when using the following code:uint8_t rx_buffer [4096]; HAL_UARTEx_ReceiveToIdle_DMA(&huart3, rx_buffer, sizeof(rx_buffer)); void HAL_UARTEx_RxEventCallback(UART_Handl...

Pincate_0-1771425939000.png Pincate_1-1771425954208.png
Pincate by Associate III
  • 593 Views
  • 11 replies
  • 0 kudos