STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

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
  • 1751 Views
  • 6 replies
  • 0 kudos

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 the issue ? I have tried it on a new installation of Windows 10 build 19041.329 and I get the same issue.This it the website that states I should use Windows 10 drivers. https://my.st.com/content/my_st_com/en/products/development-t...

rfdmod by Associate
  • 8817 Views
  • 9 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
  • 568 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
  • 2158 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...