Enable FT800-FT813 library for STM32F4 #25
Replies: 4 comments 5 replies
-
Hello, I am really in no position to give advice on any STM32 related issues since I never actively used any STM32. That said, I dug out my STM32 test project I worked on a while ago, updated it to the latest files and updated EVE_target.c and EVE_target.h with the small improvements over the released code I found. Attached is my test project for PlatformIO. And this also reminded me that I have not re-installed STM32CubeIDE yet, I recently updated my system. |
Beta Was this translation helpful? Give feedback.
-
Hi Rudolph, I used your same library and it is working perfectly fine with ESP32 for PlatformIO and in ESP32 I had to call EVE_init_spi() to associate the SPI port with your library. There is still something that missing for me that my SPI bus didn't get call to send out the data. |
Beta Was this translation helpful? Give feedback.
-
Well now, technically it is working, at least mostly except for supporting DMA. |
Beta Was this translation helpful? Give feedback.
-
RudolphRiedel Thank you very much, Mr. Rudolph Riedel. I'm using FT811 driver display and I haven't been able to spi communication for a long time. I've been trying to figure out where I went wrong for days and I solved my problem with the code you shared. For now at least I can read the ID. Thank you very much for sharing this valuable information. I wish you good work. |
Beta Was this translation helpful? Give feedback.
-
Hi Rudolph,
Thank you so much for your sharing the library. Can you please give me some pointer to see where is the problem reside?
I am using STM32F4 39ZI, the library migration is straight forward.
I created the project from cube so it is using normal MX_SPI1_Init(); to init the SPI hence I don't need to call EVE_init_spi(void); mater of fact the library didn't have the EVE_init_spi() function for the STM32F4 option.
My project doesn't have the stm32f4xx_ll_spi.h/c but I manage to download the driver.
Code is compiled successfully no problem, but when I started to run it stuck at this while(!LL_SPI_IsActiveFlag_TXE(EVE_SPI)); in the function spi_transmit(uint8_t data).
I connected the signals to logic analyzer but I don't see clk, miso, mosi data.
I double check the library is using SPI1 as my MX_SPI1_Init().
Am I missing something or did something wrong in the configuration?
Thank you so much for your help.
Beta Was this translation helpful? Give feedback.
All reactions