Loading...
 
Skip to main content

System Workbench for STM32


Re: Code size

I tried your solution, but when I rebuilt my project, I received a result in the console:
"19:03:28 **** Incremental Build of configuration Debug for project Centrala_ppoz_EP ****
make all
'Building target: Centrala_ppoz_EP.elf'
'Invoking: MCU GCC Linker'
arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -T"C:\ST_IDE\Centrala_ppoz_EP\LinkerScript.ld" -Wl,-Map=output.map -Wl,--gc-sections -o "Centrala_ppoz_EP.elf" ./startup/startup_stm32.o ./src/main.o ./src/syscalls.o ./src/system_stm32f0xx.o ./StdPeriph_Driver/src/stm32f0xx_adc.o ./StdPeriph_Driver/src/stm32f0xx_can.o ./StdPeriph_Driver/src/stm32f0xx_cec.o ./StdPeriph_Driver/src/stm32f0xx_comp.o ./StdPeriph_Driver/src/stm32f0xx_crc.o ./StdPeriph_Driver/src/stm32f0xx_crs.o ./StdPeriph_Driver/src/stm32f0xx_dac.o ./StdPeriph_Driver/src/stm32f0xx_dbgmcu.o ./StdPeriph_Driver/src/stm32f0xx_dma.o ./StdPeriph_Driver/src/stm32f0xx_exti.o ./StdPeriph_Driver/src/stm32f0xx_flash.o ./StdPeriph_Driver/src/stm32f0xx_gpio.o ./StdPeriph_Driver/src/stm32f0xx_i2c.o ./StdPeriph_Driver/src/stm32f0xx_iwdg.o ./StdPeriph_Driver/src/stm32f0xx_misc.o ./StdPeriph_Driver/src/stm32f0xx_pwr.o ./StdPeriph_Driver/src/stm32f0xx_rcc.o ./StdPeriph_Driver/src/stm32f0xx_rtc.o ./StdPeriph_Driver/src/stm32f0xx_spi.o ./StdPeriph_Driver/src/stm32f0xx_syscfg.o ./StdPeriph_Driver/src/stm32f0xx_tim.o ./StdPeriph_Driver/src/stm32f0xx_usart.o ./StdPeriph_Driver/src/stm32f0xx_wwdg.o
'Finished building target: Centrala_ppoz_EP.elf'
' '
make --no-print-directory post-build
'Generating binary:'
arm-none-eabi-objcopy -O binary "Centrala_ppoz_EP.elf" "Centrala_ppoz_EP.bin" & arm-none-eabi-size - -format=berkeley Centrala_ppoz_EP.elf
arm-none-eabi-size: invalid option — r
Usage: arm-none-eabi-size option(s) file(s)
Displays the sizes of sections inside binary files
If no input file(s) are specified, a.out is assumed
The options are:
-A|-B --format={sysv|berkeley} Select output style (default is berkeley)
-o|-d|-x --radix={8|10|16} Display numbers in octal, decimal or hex
-t --totals Display the total sizes (Berkeley only)
--common Display total size for *COM* syms
--target= Set the binary file format
@ Read options from
-h --help Display this information
-v --version Display the program's version

arm-none-eabi-size: supported targets: elf32-littlearm elf32-bigarm elf32-little elf32-big plugin srec symbolsrec verilog tekhex binary ihex
make1: post-build Error 1 (ignored)
' '

19:03:30 Build Finished (took 1s.744ms)"

 
Collapse/expand modules below