cancel
Showing results for 
Search instead for 
Did you mean: 

FOC4.3 dual motor with ICS sensors and STM32F3 does not compile

mikemike9141
Associate III
Posted on November 06, 2017 at 19:19

I can select this configuration in STMCWB and generate all files, but the compiler complains in line 424 of MCTasks.c

  oCurrSensor[M1] = (CPWMC)IF3XX_NewObject(&PWMnCurrFdbkParamsM1, &ICS_DDParamsM1);

Error[Pe167]: argument of type 'struct <unnamed> const *' is incompatible with parameter of type 'pICS_F30XParams_t' C:\...\MCTasks.c 423

I checked, 'ICS_DDParamsM1' is of type 'ICS_DDParams_t', whereas the function expects a pointer to a parameter of type 'ICS_F30XParams_t'.

2 REPLIES 2
Laurent Ca...
Lead II

The question has been moved from the "Motor Control Hardware" section to the "STM32 Motor Control" section (the question is about the STM32 MC SDK). 

Best regards

Laurent Ca...
Lead II

The question has been moved from the "Motor Control Hardware" section to the "STM32 Motor Control" section (the question is about the STM32 MC SDK). 

Best regards