cancel
Showing results for 
Search instead for 
Did you mean: 

ISSUE: STM32WL55JC2 SPI1 not working when project file is generated from CubeMX but works while using example file.

SSaya.1
Associate II

Hello,

Currently I am working on STM32WL55JC single core where I initialized PB3, PB4, PB5 and PA15 for SPI1 line with a FLASH Memory MT25QL.

I tried basic with reading Flash memory ID.

It worked when i used the SPI_FullDuplex_ComPolling_Master example as shown in first picture but when i tried to create my own project file it didn't worked {0xf as shown in 2nd Picture). I even tried generating code using Ioc file of SPI_FullDuplex_ComPolling_Master example.

What could be the reason? Am I missing something here?

I am using STM32Cube FW_WL V1.3.0.

0693W00000aHUUtQAO.png0693W00000aHUZYQA4.pngThank you

5 REPLIES 5
Imen.D
ST Employee

Hello @SSaya.1​ ,

Which CubeMX version used? Please make sure to use latest release of CubeMx.

If possible, share your ioc file for check.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Thank you for you reply,

CubeMX version 6.7.0 and CubeIde version 1.11.2,

I have attached the ioc file.

Rim LANDOLSI
ST Employee

Hello @SSaya.1​ ,

Referring to your screenshots, it seems that you added private user code to both the example and your own project.

So, to further analyze these added parts in the code, could you please provide the whole projects you are working on.

Thanks,

Rim

Hello,

Sorry for late reply,

Here is the one I have created from scratch. In which the SPI transmit and receive was not working

And here is the example file where i added my code which actually worked.