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

USB communication only via control transaction (EP0)

I need to write an application which should communicate only via endpoint 0, i.e. using only control transactions. My question is whether this is possible with STM32 family (regardless of the series (F0, F1, ...)). I think that it should be possible ...

dr.look by Associate II
  • 5250 Views
  • 8 replies
  • 0 kudos

Hello, I am making a keyboard to use it myself with stm32f103 and when I follow the steps below, I cannot read the capslock and numlock leds from the computer. How can I get the status of these leds? thanks

Update the usbd_hid.c...static uint8_t USBD_HID_DataOut(USBD_HandleTypeDef *pdev, uint8_t epnum);...USBD_ClassTypeDef USBD_HID = {USBD_HID_Init,USBD_HID_DeInit,USBD_HID_Setup,NULL, /*EP0_TxSent*/ NULL, /*EP0_RxReady*/USBD_HID_DataIn, /*DataIn*/USBD_H...

AYılm.1 by Associate II
  • 553 Views
  • 0 replies
  • 0 kudos

STM32H7 and SDMMC/FatFs

Hello Everyone,I have an STM32H7 interfacing with an SD card Using FatFs. I am using the cube ide, latest drivers etc. (embedded packages version 1.9.0) (FatFs Middlewhere version: R0.12c)I am facing an issue where sometimes (50% of the time?) The Ca...

TCash.1 by Associate III
  • 2094 Views
  • 4 replies
  • 0 kudos

Problem with our proprietary bootloader. Interface interrupts may come too quickly while flash pages are being deleted and written.

Hi everyone, I have a problem with our proprietary bootloader on STM32L151, STM32L451 and STM32F303 micros.I transfer the content of a flash page via any interrupt-controlled interface (CAN, UART, USB etc.). If all the data for a flash page is availa...

Carsten1 by Associate II
  • 1472 Views
  • 7 replies
  • 0 kudos

Resolved! ST32H7 SPI DMA Callback not called in non-circular Mode

Hi,I have seen this some time ago in another thread: https://community.st.com/s/question/0D53W000005771OSAQ/stm32h7xx-spi-tx-with-dma-halspitxcpltcallback-is-called-only-if-dma-is-configured-in-circular-modeI am kind of repeating the questions in tha...

JRS by Associate III
  • 2343 Views
  • 2 replies
  • 0 kudos

Resolved! Problems with FatFS and FreeRTOS integration

Hi, everyone.I have a board with STM32F215 uC and I want to create a Data Logger on FreeRTOS.I've been reading about these problems and I don't find what's going on.I modified the task's stack on the FR configuration, I made sure that timebase source...

by Not applicable
  • 1093 Views
  • 2 replies
  • 1 kudos

Resolved! Bug in uart init function when setting baudrate register (BRR). In file /Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.c at line 3201, it calculates usartdiv casting it to uint16_t and then checks if it is less than 0xffff.

In this way, error never occurs leading to wrong baudrates. if (pclk != 0U) { /* USARTDIV must be greater than or equal to 0d16 */ usartdiv = (uint16_t)(UART_DIV_SAMPLING16(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); ...

Lmoio.1 by Senior
  • 2025 Views
  • 6 replies
  • 0 kudos

Resolved! How to connect NUCLEO-G071RB with STM32CubeMonitor-UCPD

I purchased a NUCLEO-G071RB and X-NUCLEO-USBPDM1 to development of my project.​Then I wrote a sample program according to application note AN5418, but it doesn't recognize it as a connectable port to the UCPD monitor.​Is it related to HWBoardVersionN...

Sodag.1 by Associate II
  • 1643 Views
  • 8 replies
  • 0 kudos

Location of MAC address storage in stm32h7 memory

When configuring a network interface, there is usually a hard coded MAC address somewhere in a config file, which is used to setup the interface.In production this address needs to be unique (purchased). For example in some stm32f4 mcus, there is a s...

emcewees by Associate
  • 2127 Views
  • 3 replies
  • 0 kudos