Frequently Asked Questions
Issue with FreeRTOS Compilation Errors Using ARMCLANG (AC6)
- If you are using a template, simply copy the Middlewares folder from the "Other Notes" folder in the template to the root directory.


- If you created the project from scratch on Windows (without using a template), you will need to locate the firmware source code downloaded by CubeMX.
For example, the firmware source code in Linux is located in /home/tungchiahui(你自己的用户名)/STM32Cube/Repository/.

If you are using an F103, open the STM32Cube_FW_F1_V1.8.5 folder.
If you are using the F407, open the STM32Cube_FW_F4_V1.28.0 folder.
Find the path /home/tungchiahui/STM32Cube/Repository/STM32Cube_FW_F1_V1.8.5/Middlewares/Third_Party/FreeRTOS/Source/portable/.


Copy the ARM_CM3 folder from this GCC folder into the corresponding RVDS folder under the project folder.



Error executing cmake configuration

If you encounter an error like error cbuild: error executing 'cmake' configuration, delete the tmp folder under the MDK-ARM directory, then recompile.

#删除tmp文件夹
rm -rf ./tmp

Modify the assembler for the assembly language to the ARMClang integrated assembler.
This is a warning and does not affect normal use, but we should try to fix it if possible.

Warning: A1950W: The legacy armasm assembler is deprecated.
Consider using the armclang integrated assembler instead.
0 Errors, 1 Warning
No solution found yet.
Some tools were not downloaded.
Follow the steps below for arm tools, then enter the interface below to select the corresponding version, and click Update tool registry. (The most common issue is that the compiler and debugger libraries are not automatically downloaded.)
If you're unsure which tools are needed, it's recommended to select all the latest versions. (I've personally tested that selecting all the latest versions works fine.)

