cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F401 FT811-Q REG_ID 0x7C READING PROBLEM

MKoca.1
Senior

0693W00000WIvobQAD.png0693W00000WIvoWQAT.png0693W00000WIvoRQAT.png0693W00000WIvoMQAT.png0693W00000WIvntQAD.pngI am trying to use STM32F401 and FT811. I still can't read REG_ID for about 1 month. I usually get values 0x42 and 0xFF when I try to read. As I do not have a Logic Analyzer, it is not possible for me to check the lines at the moment. I can't understand where I went wrong. I would be very happy if you could help with this. Thanks in advance.

3 REPLIES 3
Aymen ABBES
ST Employee

Hello @MKoca.1​ , 

First of all let me thank you for posting.

Could you please provide the project you are working or your *.ioc file, on and the CubeMx and CubeIDE version so I be able to investigate the issue.

Kind regards,

Aymen

MKoca.1
Senior

Hello Mr. Aymen. Thank you for kindly answering my question.

I solved my problem. I realized that my problem was caused by SPI. I added the library "stm32f4xx_II_spi.c" and in addition to the spi configuration __HAL_SPI_ENABLE(&hspi1); I added the function and SPI worked. But I did not fully understand the logic of this situation. I tried to write the FT8xx driver and SPI configuration at the register level many times. I couldn't get the result. What is the difference of stm32f4xx_II_spi.c library here?

Best Regards.

MKoca.1
Senior

@Aymen ABBES​