Jump to content

ST HAL inclusion on ChibiOS+STM32F746G-DISCO


Tuetuopay

Recommended Posts

Hello,

While following this thread about the problems with running µGFX with ChibiOS on the STM32F746G-DISCO board, I noticed a small problem in the board files. The board.mk does add the ST HAL to the include path, but only for RAW32. However, the SDRAM init code is shared amongst all of the supported OSes, thus ChibiOS needs it. One caveat though : this init code (stm32f746g_discovery_sdram.c) needs a ST file (stm32f7xx_hal_rcc.h), but the compiler cannot find it when using ChibiOS as ST HAL is in the include path for RAW32 only.

I made a patch (and PR) on cpu20's repo that fixes the problem. However, I am not sure all environments should include this HAL (as I did in the patch), or ChibiOS and RAW32 only. I do slant towards the first option, but I'm no expert with µGFX.

Which option is best guys ?

Keep the good work !

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...