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

MOTIX™ MCU Forum Discussions

ashrafulkhn
Level 1
Level 1
5 questions asked 10 sign-ins First reply posted

Hi Guys,

I am getting these warning messages on the setMode and setMotoControl function. Can you guys tell me what are the meaning of these error messages and how to solve them.

Background:

- TLE9879 BLDC Arduino Sheild
- Arduino WiFi rev 2
- 12V power Supply
- Two sheilds stacked up on one Arduino

Error Log mentioned below:

=============================== E R R O R ====== L O G S ====================================


avrdude: safemode: Fuses OK (E:FF, H:FF, L:FF)

avrdude done.  Thank you.

========================================================== [SUCCESS] Took 9.17 seconds ==========================================================
--- Available filters and text transformations: colorize, debug, default, direct, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Miniterm on /dev/ttyACM0  9600,8,N,1 ---
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
Connecting with the wifi..

Board is connected to the wifi
IP Address  : 192.168.0.231
Subnet Mask : 255.255.255.0
Gateway IP  : 192.168.0.1
 
Connecting to Broker..
Broker address : 192.168.0.103
Port address   : 1883
 
Connected to broker.
Subscribed Topic: /belt1/MDR2
INFO: Starting initialization
INFO: Sending reset request to all boards
Answer: 
1901
INFO: Board 1 was successfully initialized
Answer: 
1901
INFO: Board 2 was successfully initialized
INFO: Done initializing

INFO: mode change complete -> Board: 1; FOC
WARNING: Board[2]; Action[mode control]; failed -> from Bootloader to FOC;
INFO: mode change complete -> Board: 2; FOC
WARNING: Board[1]; Action[set motor speed]; failed
INFO: motor speed change complete -> Board: 1; 2000.00
WARNING: Board[2]; Action[set motor speed]; action cannot be performed in bootloader
INFO: motor speed change complete -> Board: 2; 2000.00

//While START_MOTOR is passed
WARNING: Board[1]; Command[800]; Answer[800]
WARNING: Board[1]; Action[motor control]; failed
INFO: motor mode change complete -> Board: 1; start

//While STOP_MOTOR is passed
WARNING: Board[1]; Command[801]; Answer[801]
WARNING: Board[1]; Action[motor control]; failed
INFO: motor mode change complete -> Board: 1; stop

 

Q1. Please help me to understand the meaning of the command and the answer.
Q2. The warning message is shown but in the next line you may see that the actual command got executed and the motor starts and stops based on command.

0 Likes
1 Reply
RupakC
Moderator
Moderator
Moderator
First like given 50 solutions authored 100 replies posted

Hello @ashrafulkhn 
You may kindly share your project with us such that we can check the parameters that you have set and the libraries that you have used. 
We will get back to you on the solution to your problem once we analyze your code. 

Thanks and Regards

RupakC