mmoskal / uf2-stm32f

UF2 bootloader for STM32F4
Other
114 stars 62 forks source link

Cannot draw screen using ILI9341(320x240) #11

Closed phillowcompiler closed 4 years ago

phillowcompiler commented 4 years ago

I tried the bootloader by cheap STM32F411CEU6 board(called WeAct miniF4) with ILI9341(320x240) display. (https://github.com/WeActTC/MiniF4-STM32F4x1)

But I cannot show the screen as follow. before

Therefore, I fixed screen.c for using ILI9341(320x240). after1 after2

yuanyanhui commented 4 years ago

@phillowcompiler

You made ILI9341(320x240) work on STM32F411CEU6, but in the updated code the configuration still shows 160x128. Is ILI9341(320x240) with SPI supported by STM32F411CEU6?

In the arcade hardware design notes, regarding 320x240 displays, it says "On F4, this requires an 8 bit parallel interface because SPI at 42Mhz is unstable; in this case STM32F412RE or better is required." Does this mean SPI for 320x240 is not possible? In the board.h of STM32F412, the display size is 320x240, but the pin configurations are SPI connection. If 8-bit mode is used, how board.h should be modified?

Can you help clear up the confusion? Thanks!

yuanyanhui commented 4 years ago

Checked the code again, the display size is 320x240. 160x128 is commented.

mmoskal commented 4 years ago

The bootloader is somewhat independent of Arcade, so it could support the screen, while Arcade doesn't. Having said that, it should work at 24MHz but the framerate will be lower. Or maybe it will work at 42MHz (or I guess 48MHz for 411) if the wires are shorter. You can experiment. There's nothing in the code to block this, it's just that it's currently not officially supported, since in our experiments it didn't work so well.

phillowcompiler commented 4 years ago

Thanks I will try😁