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

SPI INTERRUPT PROBLEM

I have a code regarding the SPI interrupt, where my STM32F302R8 nucleo as a master while my arduino board as a slave. In this program, I use PB6(stm32) to pin D8(arduino) as my interrupt pin where the interrupt triggers when D8 goes to LOW.How my pro...

0693W00000BckSGQAZ.png 0693W00000BckSLQAZ.png 0693W00000BckSQQAZ.png 0693W00000BckSpQAJ.png
WM_IR by Senior
  • 541 Views
  • 1 replies
  • 0 kudos

how to build a hex that with external section data?

In STM32L4R9AI discovery board, the project includes const variables of graphical data.the data is placed as a separate section and will be flashed in the external flash.but after build, the variables are not inclued in the hex file.how to add the ex...

QGuo.1 by Associate
  • 655 Views
  • 2 replies
  • 0 kudos

I am using STM32L0 and I want to run RTC in my custom board. I using Internal LSI clock for RTC. When I set Alarm for 60 sec it is generated in around 54 sec so i think RTC is running faster . So how can i calibrate it?

void SystemClock_Config(void){ RCC_OscInitTypeDef RCC_OscInitStruct = {0}; RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; RCC_PeriphCLKInitTypeDef PeriphClkInit = {0}; /** Configure the main internal regulator output voltage */ __HAL_PWR_VOLTAGESCALING_...

0693W00000BckU2QAJ.png
SPraj.1 by Associate II
  • 1090 Views
  • 3 replies
  • 0 kudos

Resolved! SPI Init function not updating registers

I have two projects. One is an example from ST for a driver controlling stepper motors and the other is my own created with CubeMX where i've added the driver src and header files from the example into to the project. The main.c file is the same for ...

ZHama.1 by Associate II
  • 736 Views
  • 1 replies
  • 0 kudos

Compiler not checking ram overflow in local variables?

Stm32CubeIDE v1.6.1STM32 F1 library v1.8.4New, empty project.Something simple as this comples without any error or warning in a stm32f103.It has 20KB ram, but for some reason the compiler doesn't care that I'm allocating 64KB!Of course, it causes a ...

Help with SAI peripheral to replace I2S peripheral

Hello! Just a quick question, I just need some help figuring out what is what.I am coming from the I2S peripheral and setting up the SAI peripheral and to use the I2S protocol, it's that not straight forward.I am curious if anyone can tell me what is...

CLeo.1 by Senior II
  • 417 Views
  • 2 replies
  • 0 kudos

SPI DMA can access the flash memory?

Hello,I am working on Nucleo-h745ziq board .I have to interface the six spi with DMA. Right now DMA access the SRAM memory. I want to access the DMA with FLASH it is possible to access the six spi with DMA and uses the Flash memory. How the performan...

MDeva.1 by Associate II
  • 761 Views
  • 3 replies
  • 0 kudos

How to import drivers into project?

I have a folder that contains two subfolders, 'inc' and 'src' which have header and source files respectively. I have a new project created with CubeMX for a nucleo board with all initial peripheral settings set. How do I include the folder as mentio...

ZHama.1 by Associate II
  • 2276 Views
  • 3 replies
  • 0 kudos

Resolved! I am having troubles configuring ADC1 and ADC2 to run simultaneously using DMA. I was able to run multiple channels of ADC1 using DMA, but when I try to do it for ADC1 and ADC2, I only get one of them working. Any Advice?

I am using STM32H753ZI Nuccleo board. When I configure it on cube, I am using independent mode (otherwise no ADC works). I was only able to make them work together by stopping the running ADC in the conversion completion interrupt and raise a flag to...

KEria.1 by Associate III
  • 2121 Views
  • 8 replies
  • 0 kudos