cancel
Showing results for 
Search instead for 
Did you mean: 

Compiling STM32 PMSM FOC LIBv4.3 projects with AC6

paul2
Senior
Posted on October 05, 2017 at 21:54

Hi,

I'm trying to compile the STM32F30x User Project with based on AC6:

FOC SDK\v4.3.0\STM32 PMSM FOC LIB\Web\Project\AC6\STM32F30x_UserProject

When compiling I get the following error:

arm-none-eabi/bin/ld.exe: cannot find -lMC_Library_STM32F302x8_single_drive

Compiler is not able to find this library, which is correct since the file/library is not available within the library search path.

Anyone an idea about where to find, or how to get �MC_Library_STM32F302x8_single_drive�?

Thanks.

#stm32-mc-pmsm-sdk
1 ACCEPTED SOLUTION

Accepted Solutions
paul2
Senior
Posted on October 06, 2017 at 14:22

Solved by correcting the location of the src folder within the 'STM32F30x_MC Library' project.

Now I’m able to compile the MC library.

View solution in original post

7 REPLIES 7
paul2
Senior
Posted on October 06, 2017 at 14:22

Solved by correcting the location of the src folder within the 'STM32F30x_MC Library' project.

Now I’m able to compile the MC library.

Posted on October 06, 2017 at 14:28

Gerber wrote:

Solved by correcting the location of the src folder within the 'STM32F30x_MC Library' project.

Now I’m able to compile the MC library.

https://community.st.com/0D50X00009bMM5DSAW

 
crudo
Associate II
Posted on October 29, 2017 at 22:30

Hi,

I have the same problem but I don't know how to modify the 'STM32F30x_MC Library' project.

I suppose that the line to be modified is the following:

            <locationURI>copy_PARENT/MCLibrary/src</locationURI>

Which is the right value for the src location?

Posted on October 30, 2017 at 06:28

Hi,

sources:

v4.3.0\STM32 PMSM FOC LIB\Web\MCLibrary\src

Have a great day.

crudo
Associate II
Posted on October 30, 2017 at 10:51

Hi,

sorry I  made the wrong question. I know the MCLibrary's location in my HD, I suppose I should modified the file .project inside the directory v4.3.0\STM32 PMSM FOC LIB\Web\Project\AC6\STM32F30x_MC Library 

I suppose I should modified the value of copy_PARENT inside this file. I tried with the full path and all the paths removing one directory level at time but it didn't work. I didn't use the procedure 'Open Project from File System..' each time but just close and re-open Eclipse.

If you have some suggestion I really appreciate it.

Regars

Posted on October 30, 2017 at 11:11

Hi,

open the library project in AC6/Workbench. Look for the 'src' folder in your project. Right click on 'src' and select properties. Under resource you can edit the location of the nesacary folder/sources. Using a full path should do the job. 

Posted on October 30, 2017 at 14:07

It works. Thanks a lot for your support.

Regards