Skip to main content
SSaya.1
Associate III
February 23, 2023
Question

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

  • February 23, 2023
  • 5 replies
  • 3514 views

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

This topic has been closed for replies.

5 replies

ST Technical Moderator
February 23, 2023

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
SSaya.1
SSaya.1Author
Associate III
February 23, 2023

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
March 2, 2023

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

SSaya.1
SSaya.1Author
Associate III
March 21, 2023

Hello,

Sorry for late reply,

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

SSaya.1
SSaya.1Author
Associate III
March 21, 2023

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