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
Thai
Level 1
Level 1
First reply posted 5 sign-ins First question asked

Hello,

I have a custom board using TLE9879 which copies the Evaluation board of TLE9879 for the Arduino.

The only difference is that my chip select pin is P0.0 (BOARD2) instead of P2.3 (BOARD1).

As a consequence, the blinky test program is stuck in a loop where BOARD1 cannot be initialized. 

Can I change this behaviour in the Arduino library or do I have to adjust the default firmware?

Thank you very much in advance.

Best Regards,

Thai.

 

 

0 Likes
1 Solution
Raj_C
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 replies posted

Hi @Thai,

I am assuming that you have not made changes in your custom HW from the reference TLE9879 BLDC shield other than interchanging the P0.0 and P2.3. This means pin 4 of the Arduino is connecting to the P0.0 which is acting as SLAVE SELECT 1.

Raj_JC_0-1697696287300.png

 

Then you will need to make change in the BLDC Firmware in the following image:

 

Raj_JC_2-1697696366926.png

 

The content of Case 1 and Case 2 needs to be interchanged. (The boardnr gets its value from Auto Addressing Mechanism).  Which decides the Slave select pin interrupt for each individual board.

 

Please let us know if this helps.

 

Thank you

Best Regards

Raj Chaudhari

 

 

 

 

View solution in original post

0 Likes
5 Replies
Raj_C
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 replies posted

Hi @Thai,

I am assuming that you have not made changes in your custom HW from the reference TLE9879 BLDC shield other than interchanging the P0.0 and P2.3. This means pin 4 of the Arduino is connecting to the P0.0 which is acting as SLAVE SELECT 1.

Raj_JC_0-1697696287300.png

 

Then you will need to make change in the BLDC Firmware in the following image:

 

Raj_JC_2-1697696366926.png

 

The content of Case 1 and Case 2 needs to be interchanged. (The boardnr gets its value from Auto Addressing Mechanism).  Which decides the Slave select pin interrupt for each individual board.

 

Please let us know if this helps.

 

Thank you

Best Regards

Raj Chaudhari

 

 

 

 

0 Likes
Thai
Level 1
Level 1
First reply posted 5 sign-ins First question asked

Hello,

I am now able to change the code, it works with the evaluation board.

However, with my custom design, it does not work :(. When I try to communicate with it using arduino, the response is 

WARNING: Board[1]; Command[901]; Answer[FFFF]

And this is my custom design, can you help me to spot any mistake in this please.

I measure VDDP and VDDC and LIN: 

  • VDDP: 5V
  • VDDC: 1,5V
  • LIN: 9,9V

Thai_0-1698245266645.png

 

0 Likes
Raj_C
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 replies posted

Hi @Thai,

Could you please let me know how you have programmed the custom BLDC board?

Have you used the batch script programmer given in the firmware package?

Raj_JC_0-1698299297770.png

If not please use the batch file after placing the updated Hex file here. You will need to generate updated hex file for each example and place it here.

 

Please let us know if this resolves the issue.

 

Thank you

Best Regards

Raj Chaudhari

0 Likes
Thai
Level 1
Level 1
First reply posted 5 sign-ins First question asked

Hello Raj,

I'm uploading the Bootloader program into the Evalboard and my custom board using Keil C using a ST-LINK/V2 programmer.

Thai_0-1698311719574.png

Thai_1-1698311871346.png

I do have a J-link EDU Mini but it cannot connect to the EvalBoard somehow.

Thai_3-1698312655685.png

This is my current setup:

Thai_5-1698312689536.png

For some reasons, the EvalBoard cannot be detected using my J-link:

Thai_6-1698312801680.png

Thank you very much for helping me.

Best Regards

 

 

 

0 Likes
Raj_C
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 replies posted

Hi @Thai,

The issue can be due to the following reasons:

1) The J-Link connection is not correct. Please try changing the connection.

2) Device has entered Sleep mode because of incorrect programming. Please try to connect MON pin to RESET and keep Vs= 8V. Now, connect debugger and program with method mentioned in the previous response (i.e. Batch Script)

3) Try using methods given in section 5.2 How to flash the device if it is stuck in sleep mode of FAQ Software.

Thank you

Best Regards

Raj Chaudhari

0 Likes