2022-11-20 04:38 AM
I 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.
2022-11-23 02:53 AM
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
2022-12-01 10:37 PM
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.
2022-12-01 10:38 PM
@Aymen ABBES