AnsweredAssumed Answered

Event ReadHallSensors Count and Crash

Question asked by jjacp on Nov 17, 2017
Latest reply on Nov 22, 2017 by jjacp

Hello,

 

I’m currently going through dumitru-daniel.popa's excellent Motor Control Class with Model Based Design for the MPC5744P, but I am stuck on Lecture 5, specifically the Event-Based Hall Sensor Reading portion.

 

I can read the three Hall sensors just fine, but as I see in Freemaster, the HallChangeCount variable continuously increases, even if I do not rotate the motor (see screenshot). To be clear, the Hall_(A, B, C) inputs report correctly, but the count is always active. This eventually causes my board to crash after a short while. I know from the lecture videos, that this is not normal behavior.

 

I used both the original model file from the lecture 5 webpage (attached), as well as building the model from scratch following the videos.

 

Has anyone seen this behavior before? Is there a fix?

 

Here are details on my setup:

 

Hardware:

MPC5744P Dev Kit with DEVKIT-MOTORGD

BLDC motor with 3 Hall-Effect sensors

 

Software:

MATLAB R2016b

NXP Model Based Design Toolbox v2.0.0

S32DS Power v1.2 Compiler

Freemaster 2.0

Hotfixes 3 and 5 from https://community.nxp.com/thread/451804#comment-916493

 

Thank you!

Outcomes