cancel
Showing results for 
Search instead for 
Did you mean: 

Element type "define" must be followed by either attribute specifications, ">" or "/>"....

cosmogramma
Visitor

[PN]:NUCLEO-F746ZG, X-NUCLEO-IHM07M1
[VERSION]:
MC Workbench: 6.4.1 Build: 250722.154358
STM32CubeMX: 6.15.0
STM32Cube MCU Package for STM32F7: 1.17.3

[TOOL]: MC Workbench
[DETAILS]:The following error appears in the GUI when trying to generate the project.

Unable to generate ioc file due to: Element type "define" must be followed by either attribute specifications, ">" or "/>"....

[EXPECTED BEHAVIOR]:No such error should occur, the project should be generated. 

[HOW TO REPRODUCE]:Open the project in the attached zip file. Press "generate the project" and use the default settings (STM32CubeIDE etc). The error occurs.

Here are the lines from the .log file generated (with my username / project name removed)

2025-08-12 11:48:50,988 DEBUG [WB_to_MX.lambda$run_gui_mode$0] Arguments: [-mx_timeout, -1, -pack, assets/MotorControlPack/MotorControl.zip, -exp, templates/wb-defines_where_and_what.txt, -ftl, templates/wb_ioc_template.ftl, -xdm, C:\Users\[redacted]\.st_workbench\projects\project_name\project_name.wbdef, -ioc, C:\Users\[redacted]\.st_workbench\projects\project_name\project_name.ioc]
2025-08-12 11:48:50,989 DEBUG [ArgsValue.lambda$retrieve$2] CLI_ARG[ftl]: templates/wb_ioc_template.ftl
2025-08-12 11:48:50,989 DEBUG [ArgsValue.lambda$retrieve$2] CLI_ARG[exp]: templates/wb-defines_where_and_what.txt
2025-08-12 11:48:50,989 DEBUG [ArgsValue.lambda$retrieve$2] CLI_ARG[xdm]: C:\Users\[redacted]\.st_workbench\projects\project_name\project_name.wbdef
2025-08-12 11:48:50,989 DEBUG [ArgsValue.lambda$retrieve$2] CLI_ARG[ioc]: C:\Users\[redacted]\.st_workbench\projects\project_name\project_name.ioc
2025-08-12 11:48:50,990 DEBUG [ArgsValue.lambda$retrieve$2] CLI_ARG[pack]: assets/MotorControlPack/MotorControl.zip
2025-08-12 11:48:50,990 DEBUG [ArgsValue.lambda$retrieve$2] CLI_ARG[mx_timeout]: -1
2025-08-12 11:48:50,990 DEBUG [ArgsValue.retrieve] {xdm=C:\Users\[redacted]\.st_workbench\projects\project_name\project_name.wbdef, updftl=templates/wb_ioc_mc-middleware.ftl, mx_timeout=-1, exp=templates/wb-defines_where_and_what.txt, ioc=C:\Users\[redacted]\.st_workbench\projects\project_name\project_name.ioc, pack=assets/MotorControlPack/MotorControl.zip, ftl=templates/wb_ioc_template.ftl}
2025-08-12 11:48:50,991 DEBUG [WB_to_MX.run] Targeted MCU family = unknown_target_mcu
2025-08-12 11:48:50,991 DEBUG [WB_to_MX.run] Minimum associated CubeMx to the `6.0.0-a0` targeted MCU family is `unknown_target_mcu`




1 ACCEPTED SOLUTION

Accepted Solutions
cosmogramma
Visitor

I have found the issue, its as I used quotation marks " in my motor description.

Presumably the software isn't escaping these properly, but removing them fixed the issue.

View solution in original post

2 REPLIES 2
cosmogramma
Visitor

I have found the issue, its as I used quotation marks " in my motor description.

Presumably the software isn't escaping these properly, but removing them fixed the issue.

Hello @cosmogramma,

Thank you for your feedback.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA