Skip to main content
Associate II
April 10, 2025
Solved

Unable to generate ioc file due to: Negative index not allowed: -1.

  • April 10, 2025
  • 1 reply
  • 475 views

I used a custom development board, chip model STM32G474 to develop functions related to dual motor control, but when producing the cubemx project, the tip: Unable to generate ioc file due to: Negative index not allowed: -1...

Version info:

MC Workbench: 6.3.0

WB_to_Mx: 6.2.3.template-24-04-17

STM32CubeMX: 6.10.0

MC Firmware Library: 6.3.0-Full

 

Project attachment (.stwb6) and control board configuration file (.json) in attachment, suffix changed to TXT due to upload restrictions

daniaoday_0-1744284917925.png

daniaoday_1-1744284931288.png

 

Best answer by GMA

Hello @daniaoday,

Thank you for your problem report. Issue will be corrected for next delivery.
In the meantime, you can work around this problem by using a current sensing configuration with 1 ADC for motor 2.

1 reply

GMA
GMABest answer
Technical Moderator
April 11, 2025

Hello @daniaoday,

Thank you for your problem report. Issue will be corrected for next delivery.
In the meantime, you can work around this problem by using a current sensing configuration with 1 ADC for motor 2.

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