Skip to main content
PSonani
Associate
November 26, 2021
Question

Why building "blinky" project is taking more than 4 minutes every time on STM32MP157F-DK2 CORTEX-m4 ?

  • November 26, 2021
  • 2 replies
  • 1325 views

-- Using STM32cubeIDE.

This topic has been closed for replies.

2 replies

Olivier GALLIEN
Technical Moderator
November 26, 2021

Hi @PSonani​ 

Can you provide further details.

PC configuration, CubeIDE version, build traces

Thanks

Olivier

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
PSonani
PSonaniAuthor
Associate
November 26, 2021

PC:

Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz  3.19 GHz

8.00 GB RAM

64-bit operating system, x64-based processor

CubeIDE:

Version: 1.7.0

Build: 10852_20210715_0634 (UTC)

Build Trace: This time it didn't take 4 mins to build, but I tried building simple UART project and this took ,

I have included traces for both project below.

#Blinky Project#

11:01:15 **** Incremental Build of configuration Debug for project Blinky_CM4 ****

make -j4 all 

arm-none-eabi-size  Blinky_CM4.elf 

  text   data   bss   dec   hex filename

 34252   304   1852  36408   8e38 Blinky_CM4.elf

Finished building: default.size.stdout

11:02:03 Build Finished. 0 errors, 0 warnings. (took 48s.80ms)

#UART project --> Just transmitting a character using UART7#

11:09:32 **** Incremental Build of configuration Debug for project test_UART_CM4 ****

make -j4 all 

arm-none-eabi-gcc "../Core/Src/main.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DNO_ATOMIC_64_SUPPORT -DMETAL_INTERNAL -DMETAL_MAX_DEVICE_REGIONS=2 -DVIRTIO_SLAVE_ONLY -DUSE_HAL_DRIVER -DSTM32MP157Fxx -DUSE_FULL_LL_DRIVER -c -I../OPENAMP -I../Core/Inc -I../../Middlewares/Third_Party/OpenAMP/open-amp/lib/include -I../../Middlewares/Third_Party/OpenAMP/libmetal/lib/include -I../../Drivers/STM32MP1xx_HAL_Driver/Inc -I../../Drivers/STM32MP1xx_HAL_Driver/Inc/Legacy -I../../Drivers/CMSIS/Device/ST/STM32MP1xx/Include -I../../Middlewares/Third_Party/OpenAMP/virtual_driver -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Core/Src/main.d" -MT"Core/Src/main.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Core/Src/main.o"

arm-none-eabi-gcc -o "test_UART_CM4.elf" @"objects.list"  -mcpu=cortex-m4 -T"C:\Users\psonani\STM32CubeIDE\workspace_1.7.0\test_UART\CM4\STM32MP157FACX_RAM.ld" --specs=nosys.specs -Wl,-Map="test_UART_CM4.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group

Finished building target: test_UART_CM4.elf

arm-none-eabi-size  test_UART_CM4.elf 

arm-none-eabi-objdump -h -S test_UART_CM4.elf > "test_UART_CM4.list"

  text   data   bss   dec   hex filename

 39688   304   1852  41844   a374 test_UART_CM4.elf

arm-none-eabi-objcopy -O binary test_UART_CM4.elf "test_UART_CM4.bin"

Finished building: default.size.stdout

Finished building: test_UART_CM4.list

Finished building: test_UART_CM4.bin

11:14:12 Build Finished. 0 errors, 0 warnings. (took 4m:40s.321ms)

Thank you for the help!