STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! 32bit input capture (AN2592) inaccuracy

Apnote "Achieving 32-bit timer resolution with software expansion" (AN2592) mentions that it is possibleto create 32bit input capture with only one 16bit timer. Combine interrupt from update event to count timer overflows and regular 16bit input cap...

CAN example doesn't work between HAL and SPL.

I have two STM32 based development boards and would like to get CAN example (slightly modified) to work with a simple data packet of 2 bytes sent from one board to the other. But I detect no valid CAN frame on the bus.The setup is taken from here: ST...

Madhan by Associate II
  • 1402 Views
  • 3 replies
  • 0 kudos

Correct TRGO selection for interfacing timer

I'm confused as to what MMS bits I should choose as TRGO for an "interfacing" timer.A timer is used to trigger COM events on another timer.Its slave controller is configured in Reset mode, so it's automatically reset on any edge change on TI1, for ex...

neoxic by Associate II
  • 984 Views
  • 0 replies
  • 0 kudos

Resolved! Value of passed variable changes during function call !?

I'm having a real nasty bug and finally found the reason for it. But the thing is, that I don't understand where it comes from.I calculate a variable within method A of a class and at the end of said method i pass it to method B by value. When steppi...

JHöfl.1 by Associate III
  • 2932 Views
  • 5 replies
  • 0 kudos

Resolved! Question on SPI communication

Hi I am learning to write driver code for SPI. I have an nucleo-L476RG development board with me implementing full-duplex transmit only operation and reading the output of a MOSI pin using a logic-analyzer. The Nucleo board is working as the masterSo...

0693W00000JPooRQAT.png 0693W00000JPoobQAD.png
Tbone1 by Associate II
  • 1509 Views
  • 8 replies
  • 0 kudos

how to transmit an array with HAL_SPI_Transmit_DMA?

Could you please explain me how to use HAL_SPI_Transmit_DMA with an array?In this caseuint16_t data1= 1024;HAL_SPI_Transmit_DMA(&hspi1, &data1, 1)I get a warning concerning the pointer ("passing argument 2 of 'HAL_SPI_Transmit_DMA' from incompatible ...

Tommino by Senior
  • 7687 Views
  • 10 replies
  • 0 kudos