STM32 MCUs Products

Ask questions, find answers, and share insights on STM32 products and their technical features.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Flash that goes into "Inconsistency error" during second word write in debug mode, and first write is 0 in normal run.

HelloI'm working on the implementation of a UF2 bootloader for the STM32H743ZI, and I get an issue with the flash that goes into "Inconsistency error" during second word write.I have properly erased the flash sector before the write.Here is the funct...

Switching relay causes hardFault on MCU

I am switching 5V relay with BJT using MCU(STM32G030) pin. When clock speed is 64MHz(max speed) and 1ms timer update interrupt is enabled, not every time I switched relay but sometimes MCU goes into hardFault handler. But if I disable timer update in...

SSone.1 by Associate III
  • 2293 Views
  • 6 replies
  • 0 kudos

STSW-STM32102 driver is no more adequate from Windows® 10

STM32F078 USB connection to Windows 10 reports there are no compatible drivers. The STM website says " Starting from Windows® 10, the STSW-STM32102 driver is no more adequate and the usage of the native inbox driver is recommended.How can I resolve t...

rfdmod by Associate
  • 10726 Views
  • 9 replies
  • 0 kudos

STM32H745I-DISCO STLink UART Virtual Com Port not outputting

Hello, I have a STM32H745I-DISCO board that I would like to debug using UART Serial over the STLINK virtual com port. UM2488 Section 6.14 shows this should be connected to USART3. I have the USART3 peripheral enabled with the following configuration:...

0693W00000JORC3QAP.png 0693W00000JOR6pQAH.png
woozl by Associate II
  • 1785 Views
  • 4 replies
  • 0 kudos

HardFault debugging on STM32G491RE

Hello everyone,I've added a complex Simulink-generated function to my code which previously used Freertos to read some sensors with I2C in DMA mode and sending messages over CAN.Unfortunately I'm getting an Hard fault as soon as this function is call...

0693W00000JORuFQAX.png

Resolved! Trouble writing option byte in STM32G030

I'm trying to write the option byte in my STM32G030 uC to be able to start the internal boot loader by pulling BOOT0 high (set nBOOT0_SEL = 0). The problem is I'm getting a WRPERR while writing. All other related registers are in default state. If I ...

EKoec by Associate II
  • 721 Views
  • 2 replies
  • 0 kudos

Receiving data from L3GD20 gyroscope sensor via SPI

I'm trying to understand how SPI works on STM32. I use a STM32L472-discovery kit which includes a L3GD20 gyroscope sensor. On the board, STM32L4 is connected to the sensor via SPI2. I configured the GPIO pins needed for SPI2 and provided clocks to th...

TLee.15 by Associate II
  • 2612 Views
  • 8 replies
  • 1 kudos

STM32 with USB charging

I want to charge the Android phone along with USB data transfer. I am using STM32F072C8T6 as micro-controller and NCP1855 for mobile charging.The problem is this, in some mobile phones the charging is happening but the USB is not getting detected(And...