Skip to main content
Graduate
October 13, 2023
Solved

Problem to connect Nucleo-NFC08A1 with STM32F205VET6 via SPI

  • October 13, 2023
  • 2 replies
  • 2111 views

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 topic has been closed for replies.
    Best answer by CT-55555

    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

    2 replies

    Technical Moderator
    October 13, 2023

    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

    CT-55555Author
    Graduate
    October 13, 2023

    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 

    CT-55555Author
    Graduate
    October 13, 2023

    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. 

    Technical Moderator
    October 16, 2023

    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

    CT-55555AuthorAnswer
    Graduate
    October 16, 2023

    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