Hi JesseBeeker,
Sorry for delay due various holidays.
Please find attached the latest models we have for the BLDC Open/Closed Loop.
#1: In order to use these examples please apply patch from here: https://community.nxp.com/thread/489947#comment-1106251
#2: check on the S32K144 EVB schematic how are the resistors R167/168/165 and 166 placed.
#2: open the models in Simulink and read carefully the instructions, making sure the phases and halls are connected in the specific order. The models assumes the S32K144 EVB is configured as factory default - without any modifications. The jumper configuration required is shown in Simulink model info.
The models released with the toolbox in the past were developed with a slightly different setup (prototyping one) and the mean time in production the kit is a bit different. The examples attached here were tested on a standard kit similar with the one you have ordered.
I have noted that the working C-Code uses PTD11 and PTD10 for Hall A and B respectively. The MBD Toolbox examples are using PTA15 and PTA16. It was clear in Freemaster that you cannot use the PTA signals here. Perhaps I have an old development set up but I ordered it late 2018, so that would be strange.
Indeed the MBDT examples are using the PTA15 - Hall A, PTA16 - Hall B and PTA1 - Hall C.
If you take a look at the board schematics (https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/ultra-reliable-mcu...) you will see that by default the R167 and R165 are placed by default on the board to route the Hall signals to PTA15/16
I do not know the reason why your kit has the R168/R166 plased. Perhaps marekmusak might have an explanation. As far as i know the only changes should be on the MotorGD Kit when switching from PMSM/BLDC.
Anyhow, you can simply change the Simulink model to use the new pins (in 3 places) and it should work fine.
I'm looking forward for your feedback and suggestions.
Best regards,
Daniel