cancel
Showing results for 
Search instead for 
Did you mean: 

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

cvanbeek
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

Hello @cvanbeek 

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

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

4 REPLIES 4
STTwo-32
ST Employee

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 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

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

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

STTwo-32
ST Employee

Hello @cvanbeek 

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

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.