cancel
Showing results for 
Search instead for 
Did you mean: 

Problem to connect Nucleo-NFC08A1 with STM32F205VET6 via SPI

CT-55555
Senior

Hello everyone, 

I try to connect the Nucleo-NFC08A1 board with a STM32F205VET6 via SPI. I'm also using the X-Cube NFC6  software extension and tried polling. 

                   STM32F205VET6            NUCLEO-NFC08A1

SCK:           PC0                           -     ST5 (Arduino Connectors)

MISO          PC1                           -     ST6 (Arduino Connectors)

MOSI          PC2                           -     ST7 (Arduino Connectors)

/SS             PD0                           -     ST7 (Arduino Connectors)

IRQ            PD1                           -     ST7 (Arduino Connectors)

I know its required to change the ports in platform.h but I could not found it. Can someone help me? Is there something else to change ? 

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions

Hi Brian, 

I found the reason for my problem. You forgot to connect CN6.4. to +5V. Thank you for your help I hope you're doing good. 

Rgds

View solution in original post

7 REPLIES 7
Brian TIDAL
ST Employee

Hi,

if you have used STM32CubeMX and the X-CUBE-NFC6 3.0.0 package and configured this through STM32CubeMX, there should be no need for modification. For example:

BrianTIDAL_0-1697194804734.png

Can you elaborate more on your issue: is it a compilation issue or an execution issue? If it an execution issue, have you properly configured the PD1 as GPIO_EXTI1 and enabled the EXTI Line 1 interrupt in the NVIC configuration?

I would recommend to set the ST25R_SELFTEST and ST25R_SELFTEST_TIMER compilation switch and make sure that st25r3916Initialize returns no error.

Rgds

BT

In order 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.

Hi BT, 

it's more like a execution because i tried to analyze the SPI with an Logic Analyzer and I don't receive any data.

 Rgds

Best Regards 

The Programm get's stuck when it tries to check the st25r3916CheckChipID(). It wants to read the Identyty register but did not get any value back. 

Hi,

I suggest to check the SPI configuration. Typical configuration for SPI on X-NUCLEO-NFC08A1:

BrianTIDAL_0-1697209173259.png

Feel free to share your ioc file.

Rgds

BT

In order 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.

Hi Brian, 

I checked the configuration and everthing looks the same. 

picture 3.PNG

piture 1.PNG

piture 2.PNG

   

BT

Brian TIDAL
ST Employee

Hi,

can you share some information regarding your Hardware setup:

  • do you have a custom STM32F205VET6 MCU board? is there some arduino connectors on this MCU board?
  • how is connected the X-NUCLEO-NFC08A1 to the MCU board: wire jumper or has the MCU board some arduino connectors
  • how is powered the X-NUCLEO-NFC08A1? Make sure CN6.6 and CN6.7 are connected to GND. Make sure 3V3 is connected to CN6.4. Make sure 5V is connected CN6.5
  • SPI:
    • is SPI3 CLK properly connected to CN5.7 on the X-NUCLEO-NFC08A1
    • is SPI3 MISO properly connected to CN5.6 on the X-NUCLEO-NFC08A1
    • is SPI3 MOSI properly connected to CN5.5 on the X-NUCLEO-NFC08A1
    • is SPI3 CS properly connected to CN5.4 on the X-NUCLEO-NFC08A1

Can you connect a logic analyzer on CN5.7/6/5/4 (SPI) and provide the log file?

Rgds

BT

In order 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.

Hi Brian, 

I found the reason for my problem. You forgot to connect CN6.4. to +5V. Thank you for your help I hope you're doing good. 

Rgds