cancel
Showing results for 
Search instead for 
Did you mean: 

SPI3 issue NUCLEO-H7S3L8 (PC11 pin)

Dziubasku
Associate II

Hi, I have a problem configuring SPI3 on a NUCLEO-H7S3L8 board.

I’m writing directly to registers and not using any ready-made functions. I configured SPI3 and everything works correctly as long as I use PB4 as MISO. However, I wanted to use PC11 instead, and then I only read 0xFF.

I’m using exactly the same settings for PC11 as for PB4, and both are configured with AF6.

My question is: does PC11 require any special configuration, or maybe something on the Nucleo board blocks it from being used this way?

2 REPLIES 2
mƎALLEm
ST Employee

Hello,

Nothing special from NUCLEO board side. PC11 is exposed to both connectors and nothing already connected to it on the board according to its schematic.

What I suggest is to:

1- Start by toggling PC11 and check if it is toggling as intended.

2- Check if you already enabled RCC clock of PC port.

3- Check if you've selected the correct alienate function for SPI3_MISO on PC11. Did you select AF6? (you said you did it but please check):

mALLEm_0-1779786810808.png

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.
Andrew Neil
Super User

Have you used an oscilloscope and/or logic analyser to see what's actually happening on the wires?

 


@Dziubasku wrote:

I’m writing directly to registers and not using any ready-made functions. ?


So have you tried doing it via CubeMX ?

If the behaviour remains the same, that would rule-out any issues in your code.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.