Skip to main content
cvanbeek
Associate III
September 25, 2024
Solved

BUG: STM32CubeMx mx-generated.cmake Errors in TrustZone Project

  • September 25, 2024
  • 2 replies
  • 1282 views

I have a few errors with the generated output of the mx-generated.cmake files on TrustZone projects using the CMake toolchain.

First off, STM32CubeMx puts the startup assembly file into the `Secure/startup` and `NonSecure/startup` folders.  The mx-generated.cmake file capitalizes `Startup` though, so CMake won't find the file on some systems:

 

./Core/Startup/startup_stm32u585xx.s

 

cvanbeek_4-1727299996722.png

My other issue is that if you include the STM32_USBPD_Library, it doesn't have the correct relative path for any files in the `Middlewares/ST/STM32_USBPD_Library/Core` folders.  It has a `.` instead of `..` in the include directories, sources, and linked directories.  What's weird is that all the other files in the libraries are fine.  Here are some screenshots of these errors:
cvanbeek_1-1727299792945.png

cvanbeek_2-1727299811856.png

cvanbeek_3-1727299841751.png

I'm testing on an STM32U585VIT6Q.

Best answer by STTwo-32

Hello @cvanbeek 

This behavior has been solved on the last version of the STM32CubeMX V6.13.0.

Best Regards.

STTwo-32

2 replies

STTwo-32
Technical Moderator
September 25, 2024

Hello @cvanbeek 

I think it is simular to an  issue that i've already reported. Could you please send your .ioc file.

Best Regards.

STTwo-32 

cvanbeek
cvanbeekAuthor
Associate III
October 3, 2024

Apologies for the delay. Here's an example project.

STTwo-32
Technical Moderator
October 7, 2024

Hello @cvanbeek 

Thank you so much for reporting this. For the first thing, it is already reported and escalated in this post. For the second, I've escalated to the concerned team for review and correction in the internal ticket 192980.

Best Regards.

STTwo-32

STTwo-32
STTwo-32Best answer
Technical Moderator
December 2, 2024

Hello @cvanbeek 

This behavior has been solved on the last version of the STM32CubeMX V6.13.0.

Best Regards.

STTwo-32