Skip to main content
mikemike9141
Associate III
November 6, 2017
Question

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

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'.

This topic has been closed for replies.

2 replies

Laurent Ca...
Senior III
June 28, 2021

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...
Senior III
June 28, 2021

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