Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error make AT32 #5

Open
AnOrdinaryUsser opened this issue Nov 4, 2022 · 1 comment
Open

Error make AT32 #5

AnOrdinaryUsser opened this issue Nov 4, 2022 · 1 comment

Comments

@AnOrdinaryUsser
Copy link

Hello everyone,

I saw that the repository could be useful to flash my hoverboard with AT32 processor and I want to see if I am able to get it.
However, I am having a little trouble, I have installed everything needed to do the make AT32, but I get this error from the terminal.
Can anyone tell me what is going on?

Build for target [AT32]
Using custom configuration [0]
arm-none-eabi-gcc build/stm32f1xx_hal_flash.o build/stm32f1xx_hal_hal_flash_ex.o build/stm32f1xx_hal_rcc.o build/stm32f1xx_hal_tim.o build/stm32f1xx_hal_tim_ex.o build/stm32f1xx_hal_hal_tim_ex.o build/stm32f1xx_hal_adc_ex. o build/stm32f1xx_hal_cortex.o build/stm32f1xx_hal_gpio.o build/stm32f1xx_hal_rcc_ex.o build/stm32f1xx_hal_pwr.o build/stm32f1xx_hal.o build/stm32f1xx_hal_adc.o build/stm32f1xx_hal_uart.o build/stm32f1xx_hal_i2c. o build/stm32f1xx_hal_dma.o build/setup.o build/control.o build/main.o build/bldc.o build/comms.o build/stm32f1xx_it.o build/BLDC_controller_data.o build/BLDC_controller.o build/system_at32f4xx. o build/startup_at32f403xe.o -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -specs=nano.specs -TAT32F403RCTx_FLASH.ld -lc -lm -lnosys -Wl,-Map=build/hover.map,--cref -Wl,--gc-sections -o build/hover.elf
/usr/lib/gcc/arm-none-eabi/10.3.1/../../arm-none-eabi/bin/ld: build/control.o:/home/sergio/Documents/hoverboard-firmware-hack/Src/control. c:19: multiple definition of hdma_i2c2_tx'; build/setup.o:/home/sergio/Documents/hoverboard-firmware-hack/Src/setup.c:225: defined for the first time here /usr/lib/gcc/arm-none-eabi/10.3.1/../../arm-none-eabi/bin/ld: build/control.o:/home/sergio/Documents/hoverboard-firmware-hack/Src/control. c:18: multiple definition of hdma_i2c2_rx'; build/setup.o:/home/sergio/Documents/hoverboard-firmware-hack/Src/setup.c:224: defined for the first time here
/usr/lib/gcc/arm-none-eabi/10.3.1/../../arm-none-eabi/bin/ld: build/comms.o:/home/sergio/Documentos/hoverboard-firmware-hack/Src/comms.c:8: multiple definition of huart2'; build/setup.o:/home/sergio/Documentos/hoverboard-firmware-hack/Src/setup.c:46: first definition here /usr/lib/gcc/arm-none-eabi/10.3.1/../../arm-none-eabi/bin/ld: build/BLDC_controller_data.o:/home/sergio/Documents/hoverboard-firmware-hack/Src/BLDC_controller_data. c:97: multiple definition of rtP'; build/main.o:/home/sergio/Documents/hoverboard-firmware-hack/Src/main.c:37: defined for the first time here
collect2: error: ld returns 1 output status
make: *** [Makefile:224: build/hover.elf] Error 1

Translated with www.DeepL.com/Translator (free version)

@AnOrdinaryUsser
Copy link
Author

Or when i do a make clean i get this:

Build for target [AT32]
Using custom configuration [0]
Create target lock file for AT32
echo "" > ./build/target_at32
/bin/sh: 1: cannot create ./build/target_at32: Directory nonexistent
make: *** [Makefile:178: pre-build] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant