MKS SERVO42B is 3d printer closed loop stepper motor NEMA17 MKS SERVO42 developed by Makerbase that prevents losing steps. CPU is STM32F103C8T6 ARM 32-bit Cortex™-M3 CPU Core,72 MHz. Magnetic encoder is Allegro's A1333LLETR-T Contactless 0° to 360° angle sensor IC ,12bit .This Project open source hardware and code,support platformio build and upload firmware...
When building the project I get this error that I couldn't figure how to debug it
Indexing .pio/build/mks_servo42b/libFrameworkCMSISDevice.a
Linking .pio/build/mks_servo42b/firmware.elf
.pio/build/mks_servo42b/src/LIB/src/stm32f10x_flash.o: In function FLASH_WaitForLastOperation': /home/medchedli/Documents/MKS-SERVO42B/firmware/src/LIB/src/stm32f10x_flash.c:1596: multiple definition ofFLASH_WaitForLastOperation'
.pio/build/mks_servo42b/FrameworkHALDriver/Src/stm32f1xx_hal_flash.o:/home/medchedli/.platformio/packages/framework-stm32cubef1/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c:827: first defined here
.pio/build/mks_servo42b/libFrameworkCMSISDevice.a(system_stm32f1xx.o): In function SystemInit': /home/medchedli/.platformio/packages/framework-stm32cubef1/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/system_stm32f1xx.c:188: multiple definition ofSystemInit'
.pio/build/mks_servo42b/src/CMSIS/system_stm32f10x.o:/home/medchedli/Documents/MKS-SERVO42B/firmware/src/CMSIS/system_stm32f10x.c:216: first defined here
.pio/build/mks_servo42b/libFrameworkCMSISDevice.a(system_stm32f1xx.o): In function SystemCoreClockUpdate': /home/medchedli/.platformio/packages/framework-stm32cubef1/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/system_stm32f1xx.c:238: multiple definition ofSystemCoreClockUpdate'
.pio/build/mks_servo42b/src/CMSIS/system_stm32f10x.o:/home/medchedli/Documents/MKS-SERVO42B/firmware/src/CMSIS/system_stm32f10x.c:319: first defined here
.pio/build/mks_servo42b/libFrameworkCMSISDevice.a(system_stm32f1xx.o):(.rodata.AHBPrescTable+0x0): multiple definition of AHBPrescTable' .pio/build/mks_servo42b/src/CMSIS/system_stm32f10x.o:/home/medchedli/Documents/MKS-SERVO42B/firmware/src/CMSIS/system_stm32f10x.c:167: first defined here .pio/build/mks_servo42b/libFrameworkCMSISDevice.a(system_stm32f1xx.o):(.data.SystemCoreClock+0x0): multiple definition ofSystemCoreClock'
.pio/build/mks_servo42b/src/CMSIS/system_stm32f10x.o:(.data.SystemCoreClock+0x0): first defined here
collect2: error: ld returned 1 exit status
*** [.pio/build/mks_servo42b/firmware.elf] Error 1
I replaced ststm version with an older one (11.0.0) and It did fix the problem. There is many declaration conflicts with ststm latest release ( version 12.0.0)
Hello
When building the project I get this error that I couldn't figure how to debug it
Indexing .pio/build/mks_servo42b/libFrameworkCMSISDevice.a Linking .pio/build/mks_servo42b/firmware.elf .pio/build/mks_servo42b/src/LIB/src/stm32f10x_flash.o: In function
FLASH_WaitForLastOperation': /home/medchedli/Documents/MKS-SERVO42B/firmware/src/LIB/src/stm32f10x_flash.c:1596: multiple definition of
FLASH_WaitForLastOperation' .pio/build/mks_servo42b/FrameworkHALDriver/Src/stm32f1xx_hal_flash.o:/home/medchedli/.platformio/packages/framework-stm32cubef1/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c:827: first defined here .pio/build/mks_servo42b/libFrameworkCMSISDevice.a(system_stm32f1xx.o): In functionSystemInit': /home/medchedli/.platformio/packages/framework-stm32cubef1/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/system_stm32f1xx.c:188: multiple definition of
SystemInit' .pio/build/mks_servo42b/src/CMSIS/system_stm32f10x.o:/home/medchedli/Documents/MKS-SERVO42B/firmware/src/CMSIS/system_stm32f10x.c:216: first defined here .pio/build/mks_servo42b/libFrameworkCMSISDevice.a(system_stm32f1xx.o): In functionSystemCoreClockUpdate': /home/medchedli/.platformio/packages/framework-stm32cubef1/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/system_stm32f1xx.c:238: multiple definition of
SystemCoreClockUpdate' .pio/build/mks_servo42b/src/CMSIS/system_stm32f10x.o:/home/medchedli/Documents/MKS-SERVO42B/firmware/src/CMSIS/system_stm32f10x.c:319: first defined here .pio/build/mks_servo42b/libFrameworkCMSISDevice.a(system_stm32f1xx.o):(.rodata.AHBPrescTable+0x0): multiple definition ofAHBPrescTable' .pio/build/mks_servo42b/src/CMSIS/system_stm32f10x.o:/home/medchedli/Documents/MKS-SERVO42B/firmware/src/CMSIS/system_stm32f10x.c:167: first defined here .pio/build/mks_servo42b/libFrameworkCMSISDevice.a(system_stm32f1xx.o):(.data.SystemCoreClock+0x0): multiple definition of
SystemCoreClock' .pio/build/mks_servo42b/src/CMSIS/system_stm32f10x.o:(.data.SystemCoreClock+0x0): first defined here collect2: error: ld returned 1 exit status *** [.pio/build/mks_servo42b/firmware.elf] Error 1