AnsweredAssumed Answered

CR95HF and STM32F4-discovery

Question asked by lefevre.florian on May 21, 2014
Latest reply on May 22, 2014 by lefevre.florian

I'm trying to use MikroElektronika RFID Click (with a CR95HF embeded) as RFID Reader with a STM32F407VG.

The CR95HF is connected to the STM32F4 by SPI. The driver and Lib provide by ST are working with STM32F1. It doesn't work on STM32F4. 

I've tried to modify the driver and lib, by mainly reconfigure the GPIO. It still not working.
The STM32F4 can't communicate with CR95HF. (No response to Echo request).

The SPI GPIO are configured as follow : 

     /* configure pins used by SPI1      * PA5 = SCK      * PA6 = MISO      * PA7 = MOSI      */     GPIO_InitStruct.GPIO_Pin = GPIO_Pin_7 | GPIO_Pin_6 | GPIO_Pin_5;GPIO_InitStruct.GPIO_Mode = GPIO_Mode_AF;GPIO_InitStruct.GPIO_OType = GPIO_OType_PP;GPIO_InitStruct.GPIO_Speed = GPIO_Speed_50MHz;GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_NOPULL;GPIO_Init(GPIOA, &GPIO_InitStruct);// connect SPI1 pins to SPI alternate functionGPIO_PinAFConfig(GPIOA, GPIO_PinSource5, GPIO_AF_SPI1);GPIO_PinAFConfig(GPIOA, GPIO_PinSource6, GPIO_AF_SPI1);GPIO_PinAFConfig(GPIOA, GPIO_PinSource7, GPIO_AF_SPI1);

The NSS/CS Pin is Configured in Mode_Out; OType_PP; PuPd_UP.

The Board schematic is described here :

Can you please help me on that problem ?
Does it exist a CR95HF driver for STM32F4 ?