cancel
Showing results for 
Search instead for 
Did you mean: 

Possible bug: CubeMX is not generating MSP Init code for some peripherals in HW_Init.c under Linux

Song Qiang
Associate II

Recently I'm planning on moving development environment from Win to Linux since trueSTUDIO and cubeMX is all supported under Linux. My project created under Windows created by cubeMX works fine with trueSTUDIO. But After one regeneration of code under Linux, many errors arise at run-time. After a quick look about the registers, I found out that clocks and IO of LTDC, SDRAM and DMA2D is not generated, which should have been generated in HW_Init.c.

Attachment is the ioc file of the project and two HW_Init.c generated under Windows and Linux, respectively.

11 REPLIES 11

I saw the release notes for cubemx 5.5.0 says that new graphic solution based on pack is added?

There's no more TouchGFX Middleware in CubeMX - It's being replaced by "TouchGFX Generator" add-on which now generates your TouchGFX HAL. It feeds the designer input like screen dimensions (=> canvas dimensions) and bitdepth.

Please see this post it can help you https://community.st.com/s/question/0D50X0000BwjU6pSQE/official-release-xcubetouchgfx-v4130 .

Best Regards,

Khouloud