BLDC_SHIELD_TLE9879: setParameter() Working.

Announcements

Webinar: Integrated solutions for smaller, simpler low-voltage motor control design.
Join the webinar to experience!

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Raj_C
Moderator
Moderator
Moderator
250 solutions authored 500 replies posted 50 likes received

To make setParameter() work for the BLDC_SHIELD_TLE9879. Please make the following changes to the firmware in the Keil IDE. This change needs to be done for the FOC, HALL, and BEMF firmware for the BLDC_SHIELD_TLE9879 individually.

  1. Add the following line of code, at line number 59, in "void changeSingleParameter(uint8 index, uint16 data1, uint16 data2)" in "commands.c" (in KEIL software program as shown in figure.1). 
  • Emo_Status.MotorState = EMO_MOTOR_STATE_UNINIT;   //Paste it in the firmware

Raj_JC_0-1669022560407.png

                                                                    Figure 1. setParameter Change in command.c file

      2.  Build the program and flash it to the BLDC_SHIELD_TLE9879 using 10-pin SWD programmer supported by the Keil IDE.

2 Replies
Raj_C
Moderator
Moderator
Moderator
250 solutions authored 500 replies posted 50 likes received

The above topic is the solution for setParameter().

M204T
Level 1
Level 1
10 sign-ins First question asked 5 sign-ins

Hello, thanks for this hint. It would be good, if newer shields have already this implementation. Specially for students projects that would be helpful.