cancel
Showing results for 
Search instead for 
Did you mean: 

Code generation fail in the MC workbench

DF_MC
Visitor

Hi, I have a project in the MC workbench and I can generate code (for stm32F407) successfully when I use the "Three Shunt Resistors" current reading topology, and the code works well on my board. Now I need to change my board and use the current sensors. So I change the current reading topology in my project to "Two insulated current sensors". However, when I try to generate the code, the error "Neither embedded nor external opamps selected for current sensing for motor M1" appears. But I can't find any configuration on this issue in the project settings, could you please tell me how can I fix the problem? Thanks a lot.post1.jpgpost2.jpgpost3.jpgpost4.jpg

3 REPLIES 3
DF_MC
Visitor

Now I can generate the code by selecting this check box of "Amplification on board" in the current sensing setting. However, when I compile the code, an error occurs "../Src/mc_config.c(259): error: #20: identifier "ICS_F4XX_PWMnCurrFdbk_Handle_t" is undefined" Could you please tell me how can I fix this error? Thanks a lot.

Hello @DF_MC,

Which MCSDK version are you using?
Using MCSDK5.4.8, NUCLEO-F446/STEVAL-CTM009V1 with ICS enabled, I have no compile error.

 

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

Hello,@GMA,

Thanks for the reply, I am using MCSDK5.3.3. Thanks.