STM32 MCUs Products

Ask questions, find answers, and share insights on STM32 products and their technical features.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Toggle led using external interrupt from push button

I want to toggle a led when an external interrupt happened. But I could not. That's my code using keil mdk for stm32f103c8t6 Any help, please?   #include "stm32f10x.h" void GPIO_Config (void) { RCC->APB2ENR |= (1<<2); // Enable GPIOA clock GPIOA-...

NNana.1 by Associate
  • 4084 Views
  • 7 replies
  • 0 kudos

Resolved! How to config the FIFO Threshold of OCTOSPI

According to my understanding, I can read/write data directly through the "DR" register. Why do I have to set the FIFO Threshold value? How to use the FIFO correctly during the reading and writing procedure?  And another question is that How to set ...

0693W00000WKyrJQAT.jpg
rsun.11 by Associate II
  • 2699 Views
  • 3 replies
  • 0 kudos

Resolved! Possible to use TWO circular DMA buffers for same I2C rxd?

Hello,I would like to use TWO circular DMA buffers for ONE I2C interface.Depending on received address byte, in the ADDR interrupt I would always enable the correct circular buffer (disabling the other one - so at one time always only ONE buffer is a...

flyer31 by Senior
  • 1908 Views
  • 3 replies
  • 0 kudos

Resolved! Can't program STM32G031J6-DISCO: “No device found on target"

Hi, I am trying to use an STM32G031J6-DISCO board to get a grasp on the 8-pin STM32G031J6 MCU that I consider for building small IoT sensors (for teaching purposes). I am new to STM32 products (or ST MCUs in general). I managed to write a few variati...

afvincent by Associate II
  • 4914 Views
  • 11 replies
  • 1 kudos

SPI receive

SPI receive funtion not working correctly. Only one time is working, where is my mistake ?thanks void SPITransReceive(SPI_TypeDef* SPIx,uint8_t data,uint8_t *pbuff,uint8_t dataSize){ while(dataSize > 0){  while((SPIx->SR & SPI_I2S_FLAG_TXE) == R...

hdemi.1 by Associate III
  • 1000 Views
  • 6 replies
  • 0 kudos