Migrating sensorless FOC codebase to a custom hardware board

Hi AhmadStevie,

We currently don’t have an app note or documentation for migrating to a custom board hardware.

However, adapting the FW to a custom board is pretty simple. Especially with the help of our “PAC FOC Application FW” serving as a reference. You can find here: PAC5524 - Qorvo.
Our PAC FOC FW project, includes board supported files for all PAC EVKs, as well as a custom .c/.h files intended specifically for custom board hardware. You can clone our existing PAC55xx Eval Boards files as a reference for your custom board.

Here are steps you can take:

  1. Open our PAC55xx PAC FOC project.
  2. Navigate to the pac_foc/pac55xx/board folder to view all EVK board files
  3. Clone an existing EVK board .c/.h files into the custom .c/h files
  4. If your custom board uses a 1-shunt current sensing setup, refer to board files with 1-shunt in their names.
  5. These board files configure all key peripherals, such as the gate driver, diff amplifiers, ADCs, and timers.

Let us know if this helps!