cancel
Showing results for 
Search instead for 
Did you mean: 

Motor on STEVAL-SPIN3201 board does not run at all

Max Schachtschabel
Associate II
Posted on October 11, 2017 at 16:38

Greetings!

I am having trouble with the STEVAL-SPIN3201 board in combination with a DB87L01-S BLDC motor from Nanotec.

I connected the board to the three phases, the internal hall sensors, to the external DC and to the PC and flashed the SPIN3270 with the FOC SDK 4.3 using the SW4STM32 IDE.

The parameters of the motor (pole pairs, resistance, inductivity etc.) were inserted using the ST Motor Workbench. Building and flashing the demo project was no problem; however, the motor makes no intention to run after running the code. By stepping through the code I figured out that 'MC_FOC_DURATION' error code is set almost immediately after pushing the 'START_STOP' button on the board. The header file lists this error with the short explanation 'FOC rate too high', so I choose the lowest PWM rate possible in combination with the execution rate (4500Hz), still with the same result.

Debugging the code further to find the origin of this error led to no satisfying conclusion (apparently something about a bit in the PWM timer register 'TIM1->SR' that has not been reseted correctly?), so I am freshly out of ideas what the problem could be here. Does anyone have any suggestions where to look or what parameters may also need further adjustments?

Here you can also see the short datasheet of the used motor:

https://community.st.com/external-link.jspa?url=https%3A%2F%2Fde.nanotec.com%2Ffileadmin%2Ffiles%2FDatenblaetter%2FBLDC%2FDB87%2FDB87L01-S_neu.pdf

Many thanks in advance!

-M

#foc-sdk-4.3 #steval-spin3201 #mc_foc_duration
15 REPLIES 15
Posted on October 30, 2017 at 16:24

Yes the 'Inbox View' can be rather annoying, the respondent needs 'Thread View', clicking on the thread title from the inbox view gets you to that.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on October 30, 2017 at 16:29

That did the trick, thank you

:)

Sadly, I don't know what to do with the .hex file that you attached there... Is this a memory mapping of the whole source code of the SDK that needs to be flashed onto the SPIN3201? I could not find any way of importing or inserting this data into a STM32 Workbench project....
Posted on October 30, 2017 at 16:30

Indeed... adding a small clip icon could be very very useful.

Posted on October 30, 2017 at 16:31

Yes, the hex file is the equivalent of the compiled binary. You can program it directly into the microcontroller using something like the

http://www.st.com/en/development-tools/stsw-link004.html

Posted on October 30, 2017 at 16:34

Thanks, I will test it out once I find the time.

Laurent Ca...
Lead II

The question has been moved from the "Motor Control Hardware" section to the "STM32 Motor Control" section (the question is about the STM32 MC SDK). 

Best regards