cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with SDK 4.3 - missing files

David Martins
Senior
Posted on November 18, 2016 at 11:50

It sounds stupid.

Does SDK 4.3 have no *.a files?

How do I import and operate the AC6 correctly?

When compiling I have the following errors:

make all 

'Building target: STM32F30x_UserProject.elf'

'Invoking: MCU GCC Linker'

arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -L''C:\Program Files (x86)\STMicroelectronics\FOC SDK\v4.3.0\STM32 PMSM FOC LIB\Web\Project\AC6\MC Library Compiled'' -L''C:\Program Files (x86)\STMicroelectronics\FOC SDK\v4.3.0\STM32 PMSM FOC LIB\Web\Project\AC6\MC Library Compiled\MCO_SD''  --specs=rdimon.specs -T''C:\Program Files (x86)\STMicroelectronics\FOC SDK\v4.3.0\STM32 PMSM FOC LIB\Web\Project\AC6\STM32F30x_UserProject\STM32F302R8Tx_FLASH.ld'' -Wl,-Map=output.map -Wl,--gc-sections -lm -o ''STM32F30x_UserProject.elf'' @''objects.list''  -lMC_Library_STM32F302x8_single_drive -lMC_Lib_PS_CM4

c:/ac6/systemworkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.7.0.201602121829/tools/compiler/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -lMC_Library_STM32F302x8_single_drive

collect2.exe: error: ld returned 1 exit status

make: *** [STM32F30x_UserProject.elf] Error 1
8 REPLIES 8
Gigi
ST Employee
Posted on November 18, 2016 at 14:08

Ciao

Did you compile the library?

The project shall be in the same folder of the project for the application

STM32F30x_MC Library <- Library

STM32F30x_UserProject <- Application (that requires the library)

When you compile the library, take care to select the option for the F302x8.

Ciao

Gigi

David Martins
Senior
Posted on November 18, 2016 at 15:23

Can you compile this?

I can not!

''Nothing to build for project STM32F30x_MC Library'' - this is the message the compiler shows when I try to compile the lib.

Can you show me how to do with existing files in sdk 4.3?

Gigi
ST Employee
Posted on November 18, 2016 at 15:41

Ciao

Yes, I did it just now starting from a fresh installation.

I imported both projects in the workspace.

Selected STM32F30x_MC Library

Clicked on the black triangle near the hammer in the tool box and select STM32F302x8_SINGLE_DRIVE. The compilation start with a lot o sentences in the console. At the end I get this:

'Building target: ..\..\MC Library Compiled\libMC_Library_STM32F302x8_single_drive.a'

'Invoking: MCU GCC Archiver'

arm-none-eabi-ar -r

 

''..\..\MC Library Compiled\libMC_Library_STM32F302x8_single_drive.a'' @''objects.list''

 

arm-none-eabi-ar: creating ..\..\MC Library Compiled\libMC_Library_STM32F302x8_single_drive.a

'Finished building target: ..\..\MC Library Compiled\libMC_Library_STM32F302x8_single_drive.a'

Then I selected STM32F30x_UserProject

Click in the same triangle and select P-NUCLEO-IHM001-SINGLEDRIVE

After a long compilation I get

'Building target: STM32F30x_UserProject.elf'

'Invoking: MCU GCC Linker'

arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -L''C:\VSS\MC\3PH\0051.15\SOFTWARE\FIRMWARE\trunk\ProtectedSources\Project\AC6\MC Library Compiled'' -L''C:\VSS\MC\3PH\0051.15\SOFTWARE\FIRMWARE\trunk\ProtectedSources\Project\AC6\MC Library Compiled\MCO_SD''

 

--specs=rdimon.specs -T''C:\VSS\MC\3PH\0051.15\SOFTWARE\FIRMWARE\trunk\ProtectedSources\Project\AC6\STM32F30x_UserProject\STM32F302R8Tx_FLASH.ld'' -Wl,-Map=output.map -Wl,--gc-sections -lm -o ''STM32F30x_UserProject.elf'' @''objects.list''

 

-lMC_Library_STM32F302x8_single_drive -lMC_Lib_PS_CM4

'Finished building target: STM32F30x_UserProject.elf'

' '

make --no-print-directory post-build

'Generating binary and Printing size information:'

arm-none-eabi-objcopy -O binary ''STM32F30x_UserProject.elf'' ''STM32F30x_UserProject.bin''

arm-none-eabi-size ''STM32F30x_UserProject.elf''

  

text

      

  

data

      

   

bss

      

   

dec

      

   

hex

      

filename

 

34048

      

  

1140

      

  

4280

      

 

39468

      

  

9a2c

      

STM32F30x_UserProject.elf

' '

15:39:01 Build Finished (took 36s.848ms)

David Martins
Senior
David Martins
Senior
Posted on November 18, 2016 at 16:05

Does your SRC folder (MC_Library) contain any files?

Mine can not even open ...

I can not compile this ...

Gigi
ST Employee
Posted on November 18, 2016 at 16:09

Probaby I understood

The path for the sources is missing:

Right Click on src and select Properties

Click ''edit'' button and set

PROJECT_LOC\..\..\..\MCLibrary\src

Ciao

Gigi

David Martins
Senior
Posted on November 18, 2016 at 16:43

For some reason now, I can not include the ''project'' folder.

I had to copy the stm32f30x_conf file to the ''Web\MCLibrary\inc'' folder.

Do you know why?

Thank you

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