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

HAL_I2C_Mem_Read on SMT32L0 causes HardFault

I call this function a very large amount of times through out my entire program however in just one spot I reliably get a Hard Fault when it's called. When this line is executed, the fault occurs. (*hi2c->pBuffPtr++) = hi2c->Instance->RXDR;I called t...

bootloader without manual pin settings

helloI am using stm32l4 series microcontroller with keil mdk arm 5 programing.Had successfully completed the booting process by manually setting boot0 pin and resetting the device using flash loader demo tool. Now i wanted to do the same without manu...

prsh by Associate II
  • 1908 Views
  • 8 replies
  • 0 kudos

Resolved! "Safely" removing a USB from a system

Hi all,I am currently learning how to interface with a USB using an stm32f2 as a host.I am using the fatfs library and it is working quite well.I have a question relating how removing a USB from the system. Similar to Windows for example, they have a...

Preinstalled serial bootloader in STM32F103

Hello everybody,I'm not familiarized with hardware's industrial production. My question is about the serial (UART) built-in bootloader that comes with the Blue Pill development board. If I would like to create a new custom circuit, and print 10 test ...

Dayi by Associate
  • 1029 Views
  • 1 replies
  • 0 kudos

STM32F410 RTC fails on year

When writing to RTC and then reading back, my year is always off - writing 18 gives me back 21. Tried adding delays up to a second between instructions, no joy. Using Cube and MDK, RTC is running LSE 32768 and works fine otherwise. Both read and writ...

JSirk by Associate II
  • 2487 Views
  • 12 replies
  • 0 kudos

STM32H7 Getting IEEE 1588 timestamps nightmare

Hi, I have being trying for weeks now to get PTP timestamps with no much luck.Q1. Is there any example code available? The user manual (en.DM00314099.pdf) is rather confusing.For example in 57.9.7 Programming guidelines for IEEE 1588 timestamping it ...

yo_misma by Associate
  • 508 Views
  • 0 replies
  • 0 kudos

Resolved! Receive data on VCP

I receive some data from a terminal. Say I send 1234 on the terminal.I set a break point onvoid EP3_OUT_Callback(void){ packet_receive = 1; Receive_length = GetEPRxCount(ENDP3); PMAToUserBufferCopy((unsigned char*)Receive_Buffer, ENDP3_RXADDR, Receiv...