Skip to main content
Nchun.1
Associate III
September 7, 2023
Solved

SPI Overrun error is occurring in stm32g030kt6 MCU Slave

I programmed stm32G030kt6 controller as slave .it need to send requesting packets to master . what is happening is  alternative packet is  getting skipped from my buffer as shown in below image .

uint8_t tx_buffer[41] = "\x29"
"\x3F\x4F\x5F\x6F\xFF\xFF\xFF\xFF\xFF\xFF"
"\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
"\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
"\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF";

Nchun1_1-1694073256527.png

kindly help in solving this. i can provide more information on this if it is needed 

This topic has been closed for replies.
Nchun.1
Nchun.1Best answer
Associate III
September 7, 2023

Thank you issue is solved now . typecasting the SPI data register is incorrect

2 replies

Issamos
Super User
September 7, 2023

Hello @Nchun.1 

It's always better to add information such as your code, the firmwares you are using ( with their versions),...

Best regards.

II

Nchun.1
Nchun.1AuthorBest answer
Associate III
September 7, 2023

Thank you issue is solved now . typecasting the SPI data register is incorrect