2025-04-10 8:04 PM
Hi,
When I tried to generate a project with ThreadX for STM32N6, STCUBEMX generated incomplete code.
CubeMX Ver : 6.14.0
MCU: STM32N6
Platform: Ubuntu 24.04
ioc file attached.
2025-04-11 1:11 AM - edited 2025-04-11 7:05 AM
Hello @sai2 ,
First let me thank you for posting and welcome to the ST Community.
Your request is under investigation, and I will get back to you ASAP.
I suggest also that you provide a capture of the issue.
Best Regards.
Mahmoud
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.
2025-04-13 6:23 PM - edited 2025-04-13 6:26 PM
I attached a build log and screenshot of the folder structure. As you can see in the screenshot, there are duplicated cortex_m55 and cortex_M55 folder generated under middleware/ST/threadx/ports and there are no source code generated under middleware/ST/threadx/ports/cortex_M55/gnu/src. Generating project under window environment works and dont have duplicated "cortex_M55" folder.
There is another issue surfaced when I tried to import example application, which also result in incompleted project and was unable to build. Again, importing example project under window environment works fine.
Steps to reproduce:
1. Import STM32Cube Example
2. select "Ux_Host_VIDEO" example for "STM32N6570-DK"
3. build (fail)
error (for some reason I was unable to post the log file for example project)
make: *** No rule to make target '/home/sai/STM32CubeIDE/workspace_1.16.1/Ux_Host_VIDEO/Middlewares/ST/threadx/ports/cortex_m55/gnu/src/tx_misra.s', needed by 'Middlewares/ThreadX/Port/tx_misra.o'. Stop.
make: *** Waiting for unfinished jobs....
"make -j14 all" terminated with exit code 2. Build might be incomplete.
2025-04-16 4:12 AM
Hello @sai2 ,
Thank you for bringing this issue to our attention.
An internal ticket is raised to the Development team under this number: 207773.
Thanks.
Mahmoud
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.
2025-06-25 4:45 PM
I'm also facing this issue with STM32CubeMX 6.14.1, also working with the N6, on Linux. Do you recommend any workaround?
2025-07-07 6:51 AM
Hi @kcooper98 ,
May you try using STM32CubeMX 6.15.0, which is currently available for download?
Please let us know whether the problem is resolved.
-Amel
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.
2025-07-09 2:44 PM - edited 2025-07-09 2:49 PM
Hi @Amel NASRI,
I updated to 6.15.0, migrated my ioc project, and am using the N6 1.2.0 MCU package. I'm still seeing the same issue:
CMake Error at mx-generated.cmake:1318 (target_sources):
Cannot find source file:
.../Middlewares/ST/threadx/ports/cortex_M55/gnu/src/tx_thread_secure_stack_initialize.S
Call Stack (most recent call first):
CMakeLists.txt:43 (include)
CMake Error at mx-generated.cmake:1317 (add_library):
No SOURCES given to target: threadx
Call Stack (most recent call first):
CMakeLists.txt:43 (include)
Do you recommend any configuration or workaround? I've been temporarily including files generated in Windows which allows me to build properly but would prefer to not have those in source control.
- Kyle
2025-07-09 3:11 PM - edited 2025-07-09 3:11 PM
@Amel NASRI, I was digging into the generated files and found that the files are generated properly now, but the mx-generated.cmake file incorrectly has "cortex_M55" in some of the paths (line 1318) when it should be "cortex_m55". Temporarily editing this fixes the build, though that change disappears when regenerating (of course). Hope that helps!