cancel
Showing results for 
Search instead for 
Did you mean: 

FOC SDK 4.3 - Too large binary for STSPIN32F0

David Martins
Senior
Posted on November 29, 2016 at 19:09

Hello.

I am trying to use

http://www.st.com/content/st_com/en/products/evaluation-tools/solution-evaluation-tools/motor-control-solution-eval-boards/steval-spin3201.html

.

I was able to use

http://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/stm32-nucleo-expansion-boards/p-nucleo-ihm001.html

 successfully, but now I wanted to test a more powerful motor.

I have already corrected all project includes and selected the correct target (stm32f031x6).

The compiler compiles everything without errors, but the generated binary is too big for to be able to program the STSPIN32F0.

Someone can help me?

https://s3.postimg.org/s71nme2oj/Capturar.png

Project download:

https://meocloud.pt/link/12b5a145-26c4-4c9b-bac3-24fef6e41006/STM32F0xx_UserProject/

Thank you.

#foc-sdk-4.3 #foc-sdk-4.3 #stspin #stspin32f0 #stspin32f0
7 REPLIES 7
David Martins
Senior
Posted on November 29, 2016 at 19:47

Is this correct?

https://s12.postimg.org/qsipj5mhp/Capturar.png

David Martins
Senior
Posted on November 30, 2016 at 11:34

I've made some more changes, but I'm not able to lower the size of the binary file.

Please check this situation.

PS: I'm using AC6 projects
David Martins
Senior
Posted on November 30, 2016 at 13:05

This is the aspect of my workspace.

The original file that was in the ''startup'' folder was not the correct one for this EVB. I already changed to the correct one.

https://s14.postimg.org/cd1eerqgh/Capturar.png

The compiler continues to generate large files.
David Martins
Senior
Posted on November 30, 2016 at 17:27

This looks like a ghost house.

Can someone from ST please help me use their own EVB?

Can someone help me before December 2nd?

The forum has not yet closed ... but the help is no longer present.

dgrimes
Associate II
Posted on December 06, 2016 at 01:50

I just received the same evaluation board and also find nothing works for programming this. I have installed Keil uVision 5 and the micro must not be supported yet (I hope soon) as it takes to the package installer whenever I try to connect to the eval board. I hope you are having more luck than I am...so far this is only useful for holding some papers down.

Emmanuel L_O
Associate
Posted on December 06, 2016 at 10:59

To reduce the size of the generated binary under AC6, you can request the linker to use the nano libc library instead of the standard one.

For this, you have to add the option:  

--specs=nano.specs      in the linker flags.

Else, there is the STSW-SPIN3201, a  firmware example of the FOC 4.3 library which is dedicated for the STSPIN32F0. It has this option by default. It is provided here:

http://www.st.com/content/st_com/en/products/embedded-software/motor-control-ic-software/stsw-spin3201.html

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