Hi
I have a reasonably complex C-code written for STM32Fxxx. It's an implementation for a sensorless FOC observer for position and speed
I would like to interface this with the PMSM model example in PLECS and see the performance with respect to the 'truth'.
I have used C-Script a couple of times, but i think this approach would be messy, because
1) I have multiple header files included in the C-Code
2) The code is written to use CMSIS ARM_DSP for matrix operations. (Sure those functions could be rewritten but it'll be time consuming and messy)
I guess if somehow all the header files (including the suitably modified ARM stuff) were copied into the code declarations (It would be one massive 5K line long code declaration) and the initialization routine was copied to the (start function code), things could work, but it's an awful lot of work and if a bug is discovered, corrected it in the C-Script and making equivalent changes in the embedded code is again prone to errors.
So i looked at the DLL option..
I don't use Windows (Only Linux) and the example uses Visual Studio and seems complicated, so i kind of ruled that out.
So i was wondering if the PIL option is best(only option) suited for this problem ?