MATLAB: Which hardware board should I use for DRV8312

drv8312-69m-kitEmbedded Coderf28069matlab codersimulink coder

I am using DRV8312-69M-KIT with control card F2806x ISO control card Release 0.4 that contains processor F28069MPZT. For automatic code generation, which hardware board should I use when doing settings in Matlab — > Configuration Parameters — > Hardware Implementation. F2806x or F28069M LaunchPad?

Best Answer

Hi Karol,
For the F2806x ControlCard, the F2806x will have better default compared to the F28069M LaunchPad.
Things to keep in mind:
  • F2806x and F28069M LaunchPad trigger the same configuration with different deafult settings.
  • If your controlCard is using an F28069M (not F28069), make sure to select the correct processor under Hardware impementation > Target Hardware Resources > Build Options > Device Name. This is one change you have to do to run the following example: c28069pmsmfoc_ert.slx (https://www.mathworks.com/help/releases/R2018b/supportpkg/texasinstrumentsc2000/ug/permanent-magnet-synchronous-motor-field-oriented-control.html). You will have to make that change in the shipping example.
  • In the shipping example, we also have specific GPIO sttings for the eCAP to work with Hall sensors, make sure to keep these untouched. Reselecting a different processor may reset these to default values.
  • The rest will have good deafults for the kit that you are considering.
I hope it helps,
Thanks,
Antonin.