9 years, 5 months ago.

Wrong path in makefiles in imported project (sw4stm32)

Hello Everyone! Im trying to import simple project from mbed compiler to sw4stm32 and i got stuck. Im trying to do this in this steps:

  • 1. Export from mbed compiller, i choose in export window SW4STM32
  • 2. In SW4STM32 File -> Import -> Import existing project into workspace. /media/uploads/bmajkut/zrzut_ekranu_2016-05-25_16.16.04.png
  • 3. After that i get project imported into SW4STM32 /media/uploads/bmajkut/zrzut_ekranu_2016-05-25_16.17.40.png
  • 4. When i try to build this project i get something like that:

make all 
'Building target: Nucleo_blink_led.elf'
'Invoking: MCU G++ Linker'
arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -L"C:\Users\Bartek\Downloads\Nucleo_blink_led\mbed\TARGET_NUCLEO_F401RE\TOOLCHAIN_GCC_ARM" --specs=nano.specs -T"C:\Users\Bartek\Downloads\Nucleo_blink_led\mbed\TARGET_NUCLEO_F401RE\TOOLCHAIN_GCC_ARM\STM32F401XE.ld" -Wl,-Map=output.map -Wl,--gc-sections -fno-exceptions -fno-rtti -lm -o "Nucleo_blink_led.elf" @"objects.list ...
arm-none-eabi-g++: error: C:/Users/Bartek/Downloads/Nucleo_blink_ledmbed/TARGET_NUCLEO_F401RE/TOOLCHAIN_GCC_ARM/stm32f4xx_ll_usb.o: No such file or directory
make: *** [Nucleo_blink_led.elf] Error 1
  • 5. I found that this line:

arm-none-eabi-g++: error: C:/Users/Bartek/Downloads/Nucleo_blink_ledmbed/TARGET_NUCLEO_F401RE/TOOLCHAIN_GCC_ARM/stm32f4xx_ll_usb.o: No such file or directory

Is the wrong line because there is

C:/Users/Bartek/Downloads/Nucleo_blink_ledmbed/...

and should be like this: <<code> C:/Users/Bartek/Downloads/Nucleo_blink_led/mbed/... <</code>>

Ive tried to find this line in makefile and any other files in this project but there isnt such thing. Does anyone have any idea how make it works?

Be the first to answer this question.