2025-03-26 1:25 AM
I have used STEVAL-SPIN3202 evaluation board for Pump application after finalizing the code i have tried to make my custom board from the existing schematic but faced with many issues as listed below
1) From the existing schematic i have removed the programmer part and kept the pins open for connecting it through external stlink programmer to upload.
2) out the 4 board that was designed and assembled issues like one board was working fine but the debugging through uart pin was not possible, even though i have connected logic analyzer to check if data is transmitted by the mcu or not.
3) In some board the PWR LED was not turned on, but as the was assembled same as the working one with same components values.
Waiting for STEVAL-SPIN3202 ST team response for detailed explaination of the issue
2025-03-26 2:52 AM
Hello,
for the 2) MCU can be debugging through Serial Wire Debug (SWD) interface (SWD_CLK, SWD_IO pins) not through UART. Through UART can be MCU programmed or it can be used to send some data from MCU to PC if MCU is programmed to do it.
for the 3) Can you attached schematic of your board please? Did you measure a correct voltage on those LEDs? Are those LEDs connected in a correct polarity?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-03-26 9:37 PM
2025-04-01 4:10 AM
And is buck converter (VBUS -> 3V3) works right? Is 3.3 V on C503 and C504?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-04-01 5:17 AM
yes the buck converter is working fine and it is3V3 at C503 and C504
2025-04-01 5:21 AM
Right, so is 3V3 also on D2O2? Maybe the LED couldn´t work right.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-04-01 11:36 PM
it is working fine and it is glowing but D301 is not turning on
2025-04-02 3:28 AM
Recently through debugging the uart issue was solved in custom board and i was able to connect to motor pilot, but found the issue that it was starting with undervoltage, getting error like speed feedback error and overcurrent error although there was no load in motor after pressing the reset 2-3 times the motor was running smoothly.
I need help in software part as below
1) how to set the parameters in motor controller because i have tried, but as i have set under voltage at 9V and giving the supply of 12V then also it is showing undervoltage, setting the speed confiuration in sensorless startup as shown in the image it is not properly set and not getting how to calculate the parameters.
2)I have set the parameter for overcurrent to 50A but then also it showing error when motor is under no load.
3)In the code how to add such that if the the input supply current is greater than X A then the motor controller should top and for any other error it should wait for 15sec and then clear the error and again try to run the motor.
sir don't suggest some file or API like mc_api and all because previously also getting the same response and the problem is not solved Give a code snippet to add and solve the problem