2025-05-15 5:23 AM
How to import assembly files and compile them in STM32CudeIDE ?
When I create a .s source file in a project, I cannot even save the file, and STM32CudeIDE only reports an error:
Save failed
AST is empty
Solved! Go to Solution.
2025-05-15 10:55 AM
After installing multiple different versions of the IDE, I solved the problem by creating a new workspace. Thank you very much!
2025-05-15 5:50 AM
Can you create any other files?
This worked for me:
2025-05-15 7:41 AM
Thank you for your reply.
Yes, I can. If I edit and input the C code into the new file, it will work properly. However, when entering ASM code, an error will be reported.
I tried to modify startup_stm32h750vbtx.s in the Startup folder for testing purposes, and then saved it, but the same error occurred.
I speculate that STM32CudeIDE treats the. s assembly file as C code and attempts to establish a syntax tree to provide editing assistance This may be a bug in STM32CudeIDE.
2025-05-15 8:22 AM
Mine (v1.13.0) recognises .s files fine, and will create, edit, and build them correctly.
There must be an issue in your installation.
2025-05-15 8:36 AM
My IDE version is 1.18.0, I will try reinstalling it to see if it can solve the problem. Thanks a lot.
2025-05-15 8:42 AM
"AST is null" is from Eclipse
2025-05-15 10:04 AM
I just reinstalled 1.18.1, and the problem still exists.
2025-05-15 10:11 AM
Have you installed some Eclipse add-on from eclipse store?
Edit the assembly file in any other editor.
2025-05-15 10:55 AM
After installing multiple different versions of the IDE, I solved the problem by creating a new workspace. Thank you very much!