cancel
Showing results for 
Search instead for 
Did you mean: 

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

daniaoday
Associate

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

 

1 REPLY 1
GMA
ST Employee

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