STM32 MCUs Embedded software

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! Bug found and solved inside HAL_RCCEx_GetPeriphCLKFreq(uint32_t PeriphClk), why is this happening?. Additional bugs found too

Hi all, how are you?. Yesterday I was unable to make the RTC work on my STM32F103C6, miraculously I've noted that the program was giving an error condition (until that moment I wasn't using the error handler function, now I'm using it) then I found t...

VRami.1 by Associate III
  • 763 Views
  • 5 replies
  • 1 kudos

How to read multiple bytes in SPI with HAL

Hi everybody,I've been trying for a while to read multiple bytes from an LIS3MDL accelerometer. I know how to read and write registers but one at a time. I can't figure it out the multiple part... So, if I want to read from reg 0x27 to 0x2D, I unders...

JMart.5 by Associate II
  • 974 Views
  • 2 replies
  • 0 kudos

Calculating FS USB CDC transfer speed

I am sending a 140kB array from the stm32f746 DISCO board. I am using the core cycle counter to measure the speed. The SYSCLK is set to 50Mhz, 20ns per cycle. It takes 709 core cycles to complete the transfer. I calculate the transfer speed to be 70k...