987 views
in Getting started by

I am following your getting started guide for the STM32L4R9-Discovery board:

  • I have installed "Embedded Wizard Studio" and "Embedded Wizard STM32 Platform Package".
  • I placed the "Embedded Wizard Build Environment" in the C:\STM32\STM32L4R9-Discovery folder as in the example.
  • I did the build of the "Hello World" project without any problems.

but when I run the "make" command I get the following error:
 

 

c\:\stm32\stm32l4r9-discovery\...

 

The error I think is in the formatting of the path which has too much slash but I don't know how to remove it. Anyone know how to fix this?

2 Answers

0 votes
by

Hello,

this sounds strange... I just tired it once more and it works fine....

Can you please try

make clean

then 

make

and post the entire output?

Thanks and best regards,

Manfred.

by

I tried again by running "make clean" first, now the "make" command ends without errors but I find myself with the same problem when running "make install".

This is the complete output of the 2 commands:


C:\STM32\STM32L4R9-Discovery\Application\Project\GCC>make
-------------------------------------------------
Creating EmbeddedWizard-STM32L4R9-Discovery
-------------------------------------------------
Compiler Options: -O2 -Wall -mcpu=cortex-m4 -mlittle-endian -mthumb -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -DSTM32L4R9xx -DUSE_IOEXPANDER -DUSE_GVO_390x390 -DUSE_STM32L4R9I_DISCOVERY -DUSE_HAL_DRIVER -DEW_FRAME_BUFFER_COLOR_FORMAT=EW_FRAME_BUFFER_COLOR_FORMAT_RGB888 -DEW_SURFACE_ROTATION=0 -DEW_USE_FREE_RTOS=1
-------------------------------------------------
Creating object and binary directories
-------------------------------------------------
Compiling ../../Source/main.c
Compiling ../../Source/ewmain.c
Compiling ../../Source/DeviceDriver.c
Compiling ../../GeneratedCode/Core.c
Compiling ../../GeneratedCode/Effects.c
Compiling ../../GeneratedCode/Graphics.c
Compiling ../../GeneratedCode/Resources.c
Compiling ../../GeneratedCode/Views.c
Compiling ../../GeneratedCode/Application.c
Compiling ../../../PlatformPackage/RTE/ewextrte.c
Compiling ../../../PlatformPackage/RGB888/ewextgfx.c
Compiling ../../../TargetSpecific/ew_bsp_system.c
Compiling ../../../TargetSpecific/ew_bsp_clock.c
Compiling ../../../TargetSpecific/ew_bsp_event.c
Compiling ../../../TargetSpecific/ew_bsp_display.c
Compiling ../../../TargetSpecific/ew_bsp_touch.c
Compiling ../../../TargetSpecific/ew_bsp_console.c
Compiling ../../../TargetSpecific/ew_bsp_inout.c
Compiling ../../../TargetSpecific/ew_bsp_graphics.c
Compiling ../../../TargetSpecific/stm32l4xx_it.c
Compiling ../../../TargetSpecific/system_stm32l4xx.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_rcc.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_rcc_ex.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_cortex.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_gpio.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_dma.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_dsi.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_ltdc.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_gfxmmu.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_i2c.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_ll_fmc.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart_ex.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_pwr.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_pwr_ex.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_tim.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_tim_ex.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_dma2d.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_rtc.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_rtc_ex.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_ospi.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/BSP/Components/mfxstm32l152/mfxstm32l152.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/BSP/Components/ft3x67/ft3x67.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/BSP/STM32L4R9I-Discovery/stm32l4r9i_discovery.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/BSP/STM32L4R9I-Discovery/stm32l4r9i_discovery_io.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/BSP/STM32L4R9I-Discovery/stm32l4r9i_discovery_ts.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Drivers/BSP/STM32L4R9I-Discovery/stm32l4r9i_discovery_ospi_nor.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Middlewares/Third_Party/FreeRTOS/Source/list.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Middlewares/Third_Party/FreeRTOS/Source/queue.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Middlewares/Third_Party/FreeRTOS/Source/tasks.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Middlewares/Third_Party/FreeRTOS/Source/timers.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c
Compiling ../../../ThirdParty/STM32Cube_FW_L4/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c
Linking EmbeddedWizard-STM32L4R9-Discovery
arm-none-eabi-gcc -mcpu=cortex-m4 -mlittle-endian -mthumb -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wl,--gc-sections -Wl,-Map=./Bin/EmbeddedWizard-STM32L4R9-Discovery.map ./startup_stm32l4r9xx.s              ./Obj/main.o              ./Obj/ewmain.o              ./Obj/DeviceDriver.o         ./Obj/Core.o         ./Obj/Effects.o         ./Obj/Graphics.o         ./Obj/Resources.o         ./Obj/Views.o         ./Obj/Application.o         ./Obj/ewextrte.o         ./Obj/ewextgfx.o     ./Obj/ew_bsp_system.o     ./Obj/ew_bsp_clock.o     ./Obj/ew_bsp_event.o     ./Obj/ew_bsp_display.o     ./Obj/ew_bsp_touch.o     ./Obj/ew_bsp_console.o     ./Obj/ew_bsp_inout.o     ./Obj/ew_bsp_graphics.o     ./Obj/stm32l4xx_it.o     ./Obj/system_stm32l4xx.o              ./Obj/stm32l4xx_hal.o              ./Obj/stm32l4xx_hal_rcc.o              ./Obj/stm32l4xx_hal_rcc_ex.o              ./Obj/stm32l4xx_hal_cortex.o              ./Obj/stm32l4xx_hal_gpio.o              ./Obj/stm32l4xx_hal_dma.o              ./Obj/stm32l4xx_hal_dsi.o              ./Obj/stm32l4xx_hal_ltdc.o              ./Obj/stm32l4xx_hal_gfxmmu.o              ./Obj/stm32l4xx_hal_i2c.o              ./Obj/stm32l4xx_ll_fmc.o              ./Obj/stm32l4xx_hal_uart.o              ./Obj/stm32l4xx_hal_uart_ex.o              ./Obj/stm32l4xx_hal_pwr.o              ./Obj/stm32l4xx_hal_pwr_ex.o              ./Obj/stm32l4xx_hal_tim.o              ./Obj/stm32l4xx_hal_tim_ex.o              ./Obj/stm32l4xx_hal_dma2d.o              ./Obj/stm32l4xx_hal_rtc.o              ./Obj/stm32l4xx_hal_rtc_ex.o              ./Obj/stm32l4xx_hal_ospi.o              ./Obj/mfxstm32l152.o              ./Obj/ft3x67.o              ./Obj/stm32l4r9i_discovery.o              ./Obj/stm32l4r9i_discovery_io.o              ./Obj/stm32l4r9i_discovery_ts.o              ./Obj/stm32l4r9i_discovery_ospi_nor.o        ./Obj/list.o        ./Obj/queue.o        ./Obj/tasks.o        ./Obj/timers.o        ./Obj/cmsis_os.o        ./Obj/heap_4.o        ./Obj/port.o -L../../../PlatformPackage/RTE -L../../../PlatformPackage/RGB888 -lc -lnosys -lm -lewrte-m4-gcc -lewgfx-m4-gcc -T ./stm32l4_flash.ld -o ./Bin/EmbeddedWizard-STM32L4R9-Discovery.elf
Memory Usage:
./Bin/EmbeddedWizard-STM32L4R9-Discovery.elf  :
section                 size         addr
.isr_vector            0x1c0    0x8000000
.SectionEwResource   0x11dd4   0x90000000
.text                0x30408    0x80001c0
.rodata               0x6c90    0x80305c8
.ARM.extab               0x0    0x8037258
.ARM                     0x8    0x8037258
.preinit_array           0x0    0x8037260
.init_array              0x8    0x8037260
.fini_array              0x8    0x8037268
.data                  0x518   0x20000000
.bss                 0x79d74   0x20000520
._user_heap_stack     0x2204   0x2007a294
.ARM.attributes         0x30          0x0
.comment                0x4d          0x0
.debug_frame           0x840          0x0
Total                0xc5d91


EmbeddedWizard-STM32L4R9-Discovery successfully built !!

C:\STM32\STM32L4R9-Discovery\Application\Project\GCC>make install
-------------------------------------------------
Creating EmbeddedWizard-STM32L4R9-Discovery
-------------------------------------------------
Compiler Options: -O2 -Wall -mcpu=cortex-m4 -mlittle-endian -mthumb -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -DSTM32L4R9xx -DUSE_IOEXPANDER -DUSE_GVO_390x390 -DUSE_STM32L4R9I_DISCOVERY -DUSE_HAL_DRIVER -DEW_FRAME_BUFFER_COLOR_FORMAT=EW_FRAME_BUFFER_COLOR_FORMAT_RGB888 -DEW_SURFACE_ROTATION=0 -DEW_USE_FREE_RTOS=1
-------------------------------------------------
Creating object and binary directories
-------------------------------------------------
make: *** No rule to make target `c\:\stm32\stm32l4r9-discovery\thirdparty\stm32cube_fw_l4\drivers\bsp\components\mx25lm51245g\mx25lm51245g.h', needed by `Obj/ew_bsp_system.o'.  Stop.

C:\STM32\STM32L4R9-Discovery\Application\Project\GCC>

 

by

There should be no reason why the second 'make' does get this strange path.

What about

make clean

followed by

make install

Does this work?

Btw: What Windows version are you using? 

 

by
In fact it is a very strange behavior, I use windows 10.
On the second "make" always that error.
I worked around the problem by immediately using "make install" and so I was able to compile and load the project on the demoboard.
0 votes
by

Hello,

first of all, thank you for reporting this issue!

We were able to reproduce the problem, which can happen in all STM32 Build Environments (Version 11.00) when they are installed at a location with a short path (e.g. C:\STM32). 

The GCC ARM embedded toolchain (Version 10-2020-q4-major) is then creating dependency files with erroneous path entries (e.g. C\:\STM32). As a result the next 'make' fails with 'no rule to make target C\:\STM32\...' (note the additional \ after the drive letter).

We have now updated all STM32 Build Environments to Version 11.00.01 which contain a downgrade of GCC ARM embedded toolchain from 10-2020-q4-major back to 9-2020-q2-update used for building the binary.

You can register once more and download the new version.

Thanks and best regards,

Manfred.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...