2025-05-19 8:52 PM
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.
2025-05-19 9:14 PM
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.
2025-05-19 11:43 PM
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.
2025-05-20 12:41 AM
Hello,@GMA,
Thanks for the reply, I am using MCSDK5.3.3. Thanks.