Bug: Configuration with Hall as main and Open Loop debugging enabled creates unbuildable project
- July 23, 2024
- 2 replies
- 1297 views
[VERSION]: MCSDK 6.2.1, 6.3.0 (CubeMX 6.11.0, STM32G4 FW V1.5.1)
[TOOL]: Motor control WorkBench
[DETAILS]: When creating a project that has the Hall sensor of a motor selected as the main sensor and also the Open Loop debug feature enabled, the resulting project can't be built due to missing defines and variables.
[EXPECTED BEHAVIOR]: I expect the tool to create buildable and working code.
[HOW TO REPRODUCE]: Create a configuration like mentioned under DETAILS. I renamed and attached a MCWB configuration made with preset hardware (I-PMSM 24V motor, B-G431B-ESC1 inverter).
Generate code from project.
When importing the project in CubeIDE and trying to build it, following Errors pop up:
- undeclared defines OPEN_LOOP_VOLTAGE_d, OPEN_LOOP_VF, OPEN_LOOP_OFF, OPEN_LOOP_K for the OpenLoop_ParamsM1 typedef in mc_config.c
- 'VirtualSpeedSensorM1' undeclared, used in various places in mc_tasks.c
