Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork92
Description
What are you doing?
I am importing an STM32H563ZI project into VSCode using the Embedded IDE plugin. The project was generated by STM32CubeMX and contains the ThreadX library. I'm importing it from an existing MDK-ARM project file.
Describe the bug
After importing the project from MDK-ARM project file, the preprocessor definitions (Defines) for the Assembly compiler (Asm) are not correctly imported. In EIDE, the field "Build Configuration -> Builder Options -> Assembler -> Preprocessor Definitions" is empty, which is inconsistent with the original MDK-ARM project configuration. This causes build errors.
To Reproduce
- Create an STM32H563ZI project with ThreadX library using STM32CubeMX
- Configure the assembler preprocessor definitions in MDK-ARM (e.g., TX_SINGLE_MODE_NON_SECURE=1, TX_PORT_USE_BASEPRI, TX_PORT_BASEPRI=64)
- In VSCode, use the Embedded IDE plugin to import the MDK-ARM project via the "Import existing project" feature
- Check "Build Configuration -> Builder Options -> Assembler -> Preprocessor Definitions" and find it empty
- Attempt to build the project and encounter errors related to missing macro definitions
Expected behavior
After importing the MDK-ARM project, all preprocessor definitions for the assembler should be correctly imported and displayed in the EIDE configuration. The project should build successfully without requiring manual addition of missing macro definitions.
Screenshots


Desktop (please complete the following information):
OS: Windows 11 25H2
EIDE Version: v3.26.1
VSCode Version: v1.106.1 (user setup)
Commit: cb1933bbc38d329b3595673a600fab5c7368f0a7
Date: 2025-11-16T10:20:23.745Z
Electron: 37.7.0
ElectronBuildId: 12781156
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200
Additional context
After manually adding the following macro definitions, the project compiles successfully:
TX_SINGLE_MODE_NON_SECURE=1
TX_PORT_USE_BASEPRI
TX_PORT_BASEPRI=64
您在做什么?
我正在从MDK-ARM工程文件导入一个使用STM32CubeMX生成的STM32H563ZI项目,该项目包含ThreadX库。
描述BUG
从MDK-ARM工程文件导入项目后,汇编编译器(Asm)的预处理器定义(Define)选项没有被正确导入。在EIDE中,"构建配置->构建器选项->汇编器->预处理器定义"字段为空,与原始MDK-ARM工程中的配置不一致,导致构建时出现错误。
重现步骤
使用STM32CubeMX生成一个包含ThreadX库的STM32H563ZI项目
在MDK-ARM中配置汇编器的预处理器定义(例如:TX_SINGLE_MODE_NON_SECURE=1, TX_PORT_USE_BASEPRI, TX_PORT_BASEPRI=64)
在VSCode中使用Embedded IDE插件,通过"导入现有项目"功能导入该MDK-ARM工程
检查"构建配置->构建器选项->汇编器->预处理器定义",发现内容为空
尝试构建项目,出现与缺少宏定义相关的错误
预期行为
导入MDK-ARM工程后,汇编器的所有预处理器定义应被正确导入,并在EIDE配置中正确显示。项目应能直接成功构建,无需手动添加缺失的宏定义。
桌面环境
OS: Windows 11 25H2
EIDE Version: v3.26.1
VSCode Version: v1.106.1 (user setup)
提交: cb1933bbc38d329b3595673a600fab5c7368f0a7
日期: 2025-11-16T10:20:23.745Z
Electron: 37.7.0
ElectronBuildId: 12781156
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200
附加信息
手动添加以下宏定义后,项目可以正常编译:
TX_SINGLE_MODE_NON_SECURE=1
TX_PORT_USE_BASEPRI
TX_PORT_BASEPRI=64
