cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a project without an RTOS?

hwsw
Associate II

I have a STM32H7B3I-DK, and I can create a TouchGFX project with FreeRTOS and it works great.

I wanted to research not using an RTOS, so using CubeMX I created a project based on the STM32H7B3I-DK, which includes TouchGFX, but does not have an RTOS. The code looks like some of the comments I've seen, where MX_TouchGFX_Process(); is continually called within a loop.

However, the project doesn't build. It gets various errors, such as:

"fatal error: texts/TypedTextDatabase.hpp: No such file or directory"

"fatal error: touchgfx/hal/GPIO.hpp: No such file or directory"

"fatal error: touchgfx/hal/HAL.hpp: No such file or directory"

and maybe about eight more like that.

I was assuming that CubeIDE would create a project that builds, so I don't know why it has this issue.

2 REPLIES 2
MM..1
Chief III

Seems as you dont generate code in TouchGFX. When you use Cube for project you need some steps order.

  1. Create new project in Cube
  2. After generated locate file template part file for touchGFX and open it
  3. Create and generate GUI ... close
  4. Back in IDE change user parts and build
hwsw
Associate II

Thanks. That solved those errors. I was then getting a TouchGFX_FrameBuffer too small error, but I made some changes in the linker file to get around that.

I now have the problem that any project I create using CubeMX displays a blank screen. Without an ROTS it's white, with an RTOS it's black. Projects created with TouchGFX for my STM32H7B3I-DK work great, but of course, they all have an RTOS.