2016-11-18 02:50 AM
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_CM4c:/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_drivecollect2.exe: error: ld returned 1 exit statusmake: *** [STM32F30x_UserProject.elf] Error 12016-11-18 05:08 AM
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
2016-11-18 06:23 AM
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?2016-11-18 06:41 AM
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)
2016-11-18 06:49 AM
Something is not the same in your project and in my ...
https://spostimg.org/46wjzm877/Capturar.png ________________ Attachments : Capturar.PNG : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hynj&d=%2Fa%2F0X0000000bJT%2FyYsH30YtqoxN7onrzYUQZHD8mxcTd9LHTQhTx6t.f6c&asPdf=false2016-11-18 07:05 AM
Does your SRC folder (MC_Library) contain any files?
Mine can not even open ...I can not compile this ...2016-11-18 07:09 AM
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
2016-11-18 07:43 AM
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 you2021-06-15 04:35 AM
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