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! Unexpected UART interrupt in STM32G0

Hi All,I'm facing a strange issue on UART, I generate the code by CubeMx for UART functionality, UART is working fine but when ever i remove the TTL (Serial to USB) and keep Rx pin float, UART interrupt occurred continuously and main application stop...

vchau.2 by Associate III
  • 1155 Views
  • 3 replies
  • 0 kudos

PWM DMA generation with variable period

Hi all,I am trying to generate a PWM signal with both variable pulse width and period. I think the HAL_TIM_Base_Start_DMA function can only generate it with variable pulse width but not variable period. I have checked the timer cookbook and found the...

OFN by Associate II
  • 3119 Views
  • 9 replies
  • 0 kudos

LIN

Bonjour, J'essaie de faire communiquer ma carte Nucleo-723ZG avec un périphérique LIN.Apriori, ma carte est adapter au protocole LIN et j'arrive à configurer mon périphérique USART1 en LIN. J'utilise avec ma carte un transceiver LIN. Quand j'envoi un...

L4 Flash erase issue

MCU is STM32L4R9 with 1MB. I'm having trouble getting the device to erase the upper half of the flash programmatically. Apparently the device ships with opt bytes set for dual bank.I connected the device to the STM32 programmer through USB and turn...

EFrie.3 by Associate II
  • 1870 Views
  • 6 replies
  • 0 kudos

Resolved! STM32 F7: lock flash CR and avoid bus fault

Hi,On a STM32 F7, I would like to lock access to the FLASH_CR by writing a wrong key to the FLASH_KEYR register. Writing a wrong key results in a bus fault (disabling the bus fault raises it to a hard fault).Could someone help me with a way to write ...

LeeK by Associate II
  • 3732 Views
  • 7 replies
  • 3 kudos

Resolved! STM32G0 USBPD periphery seems to be deaf

Hello,I am developing a USB PD sink application on custom board with STM32G0B1VETI am using periphery UCPD2. I followed AN5418 to set up eveyrthing in CubeMX and add the specified pieces of code.Hovewer, ithe USBPD stack doesn't seem to send or recie...

Tadeas_Pilar_0-1695580295446.png

Resolved! USB HOST bootloader, start application

Starting from this video (https://www.youtube.com/watch?v=CGUC1wqSLCE) I'm trying to write my bootloader for DFU from an USB stick. The code works but I would like to tweak it such that:if at boot an USB stick is detected, than start the update, othe...

DamianoF by Associate III
  • 1849 Views
  • 2 replies
  • 1 kudos