STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! SPI handle structure did not write and shift the register

I have declared my SPI2 base address:#define PERIPH_BASE 0x40000000U #define APB1PERIPH_BASE PERIPH_BASE #define SPI2_BASEADDR (APB1PERIPH_BASE + 0x3800)I have a SPI Handle structure:typedef struct{ SPI_RegDef_t *pSPIx; //This holds the base addr...

WM_IR by Senior
  • 1506 Views
  • 10 replies
  • 0 kudos

How to flush SPI buffer when using SPI over DMA.

I am using STM32G071RBTx on our custom boards. The controller is connected to a Beaglebone Black over SPI. The STM32 controller is working as an SPI slave and the Beaglebone as the master. There are not CS lines defined for the communication. FreeRTO...

SDas.1 by Associate II
  • 1380 Views
  • 2 replies
  • 0 kudos

How to use DMA to change PWM frequency?

Hi! I know overall idea of DMA and i need to use it but i have no idea how to do it. I found one post with same question but i didn't found any helpful info for me. I'm not advanced in case of using registers. I used them to directly change CCR and A...

Caraffa by Associate II
  • 4829 Views
  • 11 replies
  • 0 kudos

TIMx Link TIMX to Measure External Frequency

Am using NUCLEO-STM32H723 Nucleo-144 board.Sorry, but I have no experience with the above MCU/TIMx.My goal is to measure external frequency as accurately as possible.I'm interested to know how to Link between two timers.Example : TIM3 ( Master ) TI...

0693W00000BclHJQAZ.jpg 0693W00000BclG2QAJ.jpg
ESega.1 by Associate II
  • 1153 Views
  • 9 replies
  • 0 kudos

I need to configure CAN filters in such a way that only ID 0x80 and IDs between 0x200 and 0x300 passes all others are not allowed to be passed. How to do that?

I tried in this way but the problem is only 200-300 can pass but 80h is not passed. if i use if else then only 80h is passed not 200-300h. So, the problem is i can pass either 80h or 200h-300h. Not both 80h and 200-300h. #define Filter_ID1  0x80#def...

MAlam.2 by Associate II
  • 919 Views
  • 6 replies
  • 1 kudos