STM32CubeMX (MCUs)

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! Delay issues on HAL_SPI libraries

Hello everyone,  I am using SPI to communicate two Nucleo Boards (a NUCLEO-L432KC and a NUCLEO-F411RE one), and i found out a weird behavior. The idea was to perform a transaction Master -> Slave in order to select a "register" to read. Once the Slav...

vicfer89 by Associate II
  • 185 Views
  • 5 replies
  • 0 kudos

STM32F401 SPI CLK turns off with DMA

Hello Got a weird issue, to further test I created  blank project with no other code to rule out conflict. When I put in HAL_SPI_Receive_IT(&hspi3, SPI_RX_BUF, 2);,According to my logic analyzer, the clk and data pins stay high and dont move. When I ...

i-3.jpg i-2.jpg i-1.jpg i-4.jpg

HAL_SPI_TransmitReceive_DMA not written correctly by CubeMX

I am using SPI with DMA as shown in the screenshot. DMA is using Data Handling to truncate data from SPI's 16bit buffer into 8 bit values.The following part of the code errors out. Commenting this code out makes my application work, but every time I ...

btd5_0-1711728270877.png
btd5 by Associate II
  • 110 Views
  • 2 replies
  • 0 kudos

Resolved! CubeMX SPI data size bug?

In CubeMX when configuring a SPI peripheral I can only choose either 8 or 16 bit, but the STM32G491 reference manual says data size can be from 4 to 16 bit. Is this a bug in CubeMX?(using the newest CubeMX version)

decalvus by Associate II
  • 316 Views
  • 4 replies
  • 0 kudos

Trigger SPI DMA transfer from Timer directly

Hey there, at the moment I am stuck with the following problem: I need to trigger a SPI DMA Transfer precisely at each Timer overflow. NVIC Timer interrupts are not an option, because the jitter is way too high when I have to jump into code each time...

JKram.1 by Associate II
  • 4405 Views
  • 11 replies
  • 1 kudos

HAL_SPI_Transmit Timeout problem

I am trying to implement a driver for an EEPROM. I created as follows: typedef struct { uint16_t address; uint16_t size; uint8_t *data; } test_t; And create a structure array as: test_t test[] = {{0x0000, 50, NULL}, {0x00AB, 70, NULL}, {0x0A...

SPI3 Clock not working on NucleoU575

Hello all, I want to use a NucleoU575 board to test an accelerometer sensor.I have written the driver for this accelerometer and currently, without having it connected to the Nucleo, I am trying to check whether my SPI3 Clock is working.This is the c...

_legacyfs_online_stmicro_images_0693W00000dDPOjQAO.png
KKots.1 by Associate II
  • 310 Views
  • 2 replies
  • 0 kudos