Skip to main content
MMess.1
Associate II
July 21, 2023
Solved

STM32U5A9J-DK SPI3_CS Pin

  • July 21, 2023
  • 3 replies
  • 2611 views

Hi

We are using the STM32U5A9J-DK Development Kit.

I want to connect an external device over SPI to the Board using the SPI3 wired to the CN10 Pin see the schematics. As from the datasheet of the development board and also found in the schematics, the pin 16 is routed to PG15 (SPI3_CS)

MMess1_0-1689948609735.png

Using the STM32CubeMX it is not possible to set the SPI3_CS nor SPI3_NSS signal on this Pin.

MMess1_1-1689948729504.png

I just checked the manual of the STM32U5A9J Controller and it look's like it is not a alternate function of this Pin.

MMess1_2-1689948926096.png

I think there is a mistake somewhere, either in the STM32CubeMX or in the Schematics and Datasheet of the Discovery Kit.

 

This topic has been closed for replies.
Best answer by Mike_ST

Hello,

As you said, it is an error in the schematic, there is no SPI3_NSS on that PG15 pin.

It is not an error in CubeMX.

Please use another pin where the SPI3_NSS function is actually present, like PA4 (PIN 25/ CN9).

Or use PG15 as a GPIO to do the CS function.

3 replies

Ghofrane GSOURI
Technical Moderator
July 21, 2023

Hello @MMess.1 

Thank you for your contributions and for your detailed explanations,

I confirm the issue on my side, it has been reported to STM32CubeMX development team .

Internal ticket number:  157861(This is an internal tracking number and is not accessible or usable by customers).

I will keep you posted with updates.

Thx

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Mike_ST
Mike_STBest answer
Technical Moderator
July 27, 2023

Hello,

As you said, it is an error in the schematic, there is no SPI3_NSS on that PG15 pin.

It is not an error in CubeMX.

Please use another pin where the SPI3_NSS function is actually present, like PA4 (PIN 25/ CN9).

Or use PG15 as a GPIO to do the CS function.

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. 
Tesla DeLorean
Guru
July 27, 2023

+1 Use as a GPIO,  most STM32 use a GPIO for SPI CS as the peripheral level behaviour with the pin might charitably be described as "unhelpful"

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..