WeActStudio / MiniSTM32H7xx

STM32H750VBT6/STM32H743VIT6 Core Board With 0.96'' TFT,TF Card,8MB QSPI FLASH,8MB SPI FLASH,DVP Port
GNU General Public License v3.0
288 stars 100 forks source link

Test projects compiled with GCC doen't work properly #5

Closed WiseLord closed 2 years ago

WiseLord commented 3 years ago

I purchased the board and tried to compile the examples under GCC arm-none-eabi. I converted the following two projects into "Makefile" project type via STM32CubeMX:

Than, I added missing Drivers/BSP/ST7735/*.c files into Makefile, as well as missing defines (TFT96) found in .uvprojx

My results:

So, the question: have the developers ever tried to build their examples in something different than Keil? It would be wonderful to have the examples really OS- and IDE-independent.

WeActStudio commented 3 years ago

1.The compiler overoptimizes 2.just going to step through and see what's wrong with the code 3.This is a bug in our code, need to optimize

WiseLord commented 3 years ago

Actually, I also tried to disable optimization at all, with no effect. When I have some more free time, I'll try to look through it again.

On the other hand, you could also try recent GCC on your side.

WeActStudio commented 3 years ago

OK, If I have time, I will try!

WeActStudio commented 3 years ago

OK, If I have time, I will try!

Liuyufanlyf commented 3 years ago

I purchased the board and tried to compile the examples under GCC arm-none-eabi. I converted the following two projects into "Makefile" project type via STM32CubeMX:

  • SDK/HAL/03-LCD_Test/03-LCD_Test.ioc
  • SDK/HAL/08-DCMI2LCD/08-DCMI2LCD.ioc

Than, I added missing Drivers/BSP/ST7735/*.c files into Makefile, as well as missing defines (TFT96) found in .uvprojx

My results:

  • 03LCD_Test compiled with gcc-arm-none-eabi <= 7 works, while one compiled with gcc-arm-none-eabi >= 8 doesn't work. I can see brightness changing (so timer PWM is OK), but display initialization is failed whwn recent GCC is used.
  • 08-DCMI2LCD has the same situation regarding LCD, while camera doesn't work in any case (it's detected, but nothing is shown on the screen even with "good" compiler).

So, the question: have the developers ever tried to build their examples in something different than Keil? It would be wonderful to have the examples really OS- and IDE-independent.

I believe the newest pull request has solved this problem, you can have a try!