Programm Flash is full after building a new project

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Programm Flash is full after building a new project

1,673件の閲覧回数
Stabsauger
Contributor I

Hello,

I´m new to MCUXpresso.

I have FRDM KE04Z devboard for getting into the programming of µC.

I´ve imported the hello world example and sucessfully debugged it on the controller.

Now i want to create my own project. When i do that by the SDK-Wizard that works fine but when i try to build the project the compiler shows me that the programm needs to much flash.

 

Memory region         Used Size  Region Size  %age Used
   PROGRAM_FLASH:        9568 B         8 KB    116.80%
            SRAM:         492 B         1 KB     48.05%

 

What am I doing wrong?

 

 

Complete Log:

スポイラ

16:43:01 **** Build of configuration Debug for project MKE04Z4_Project_test ****
make -r -j8 all
Building file: ../utilities/fsl_debug_console.c
Building file: ../startup/startup_mke04z4.c
Building file: ../source/MKE04Z4_Project_test.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DCPU_MKE04Z8VFK4 -DCPU_MKE04Z8VFK4_cm0plus -DSDK_OS_BAREMETAL -DSDK_DEBUGCONSOLE=1 -DCR_INTEGER_PRINTF -DPRINTF_FLOAT_ENABLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\board" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\source" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\drivers" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\component\uart" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\utilities" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\CMSIS" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\device" -O0 -fno-common -g3 -Wall -c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fmerge-constants -fmacro-prefix-map="../utilities/"= -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"utilities/fsl_debug_console.d" -MT"utilities/fsl_debug_console.o" -MT"utilities/fsl_debug_console.d" -o "utilities/fsl_debug_console.o" "../utilities/fsl_debug_console.c"
Invoking: MCU C Compiler
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DCPU_MKE04Z8VFK4 -DCPU_MKE04Z8VFK4_cm0plus -DSDK_OS_BAREMETAL -DSDK_DEBUGCONSOLE=1 -DCR_INTEGER_PRINTF -DPRINTF_FLOAT_ENABLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\board" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\source" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\drivers" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\component\uart" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\utilities" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\CMSIS" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\device" -O0 -fno-common -g3 -Wall -c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fmerge-constants -fmacro-prefix-map="../startup/"= -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"startup/startup_mke04z4.d" -MT"startup/startup_mke04z4.o" -MT"startup/startup_mke04z4.d" -o "startup/startup_mke04z4.o" "../startup/startup_mke04z4.c"
arm-none-eabi-gcc -D__REDLIB__ -DCPU_MKE04Z8VFK4 -DCPU_MKE04Z8VFK4_cm0plus -DSDK_OS_BAREMETAL -DSDK_DEBUGCONSOLE=1 -DCR_INTEGER_PRINTF -DPRINTF_FLOAT_ENABLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\board" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\source" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\drivers" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\component\uart" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\utilities" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\CMSIS" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\device" -O0 -fno-common -g3 -Wall -c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fmerge-constants -fmacro-prefix-map="../source/"= -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"source/MKE04Z4_Project_test.d" -MT"source/MKE04Z4_Project_test.o" -MT"source/MKE04Z4_Project_test.d" -o "source/MKE04Z4_Project_test.o" "../source/MKE04Z4_Project_test.c"
Building file: ../source/semihost_hardfault.c
Building file: ../drivers/fsl_clock.c
Building file: ../drivers/fsl_common.c
Invoking: MCU C Compiler
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DCPU_MKE04Z8VFK4 -DCPU_MKE04Z8VFK4_cm0plus -DSDK_OS_BAREMETAL -DSDK_DEBUGCONSOLE=1 -DCR_INTEGER_PRINTF -DPRINTF_FLOAT_ENABLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\board" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\source" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\drivers" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\component\uart" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\utilities" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\CMSIS" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\device" -O0 -fno-common -g3 -Wall -c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fmerge-constants -fmacro-prefix-map="../source/"= -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"source/semihost_hardfault.d" -MT"source/semihost_hardfault.o" -MT"source/semihost_hardfault.d" -o "source/semihost_hardfault.o" "../source/semihost_hardfault.c"
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DCPU_MKE04Z8VFK4 -DCPU_MKE04Z8VFK4_cm0plus -DSDK_OS_BAREMETAL -DSDK_DEBUGCONSOLE=1 -DCR_INTEGER_PRINTF -DPRINTF_FLOAT_ENABLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\board" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\source" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\drivers" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\component\uart" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\utilities" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\CMSIS" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\device" -O0 -fno-common -g3 -Wall -c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fmerge-constants -fmacro-prefix-map="../drivers/"= -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"drivers/fsl_clock.d" -MT"drivers/fsl_clock.o" -MT"drivers/fsl_clock.d" -o "drivers/fsl_clock.o" "../drivers/fsl_clock.c"
arm-none-eabi-gcc -D__REDLIB__ -DCPU_MKE04Z8VFK4 -DCPU_MKE04Z8VFK4_cm0plus -DSDK_OS_BAREMETAL -DSDK_DEBUGCONSOLE=1 -DCR_INTEGER_PRINTF -DPRINTF_FLOAT_ENABLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\board" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\source" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\drivers" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\component\uart" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\utilities" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\CMSIS" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\device" -O0 -fno-common -g3 -Wall -c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fmerge-constants -fmacro-prefix-map="../drivers/"= -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"drivers/fsl_common.d" -MT"drivers/fsl_common.o" -MT"drivers/fsl_common.d" -o "drivers/fsl_common.o" "../drivers/fsl_common.c"
Building file: ../drivers/fsl_common_arm.c
Building file: ../drivers/fsl_gpio.c
Finished building: ../utilities/fsl_debug_console.c
Finished building: ../source/MKE04Z4_Project_test.c
Finished building: ../startup/startup_mke04z4.c
Invoking: MCU C Compiler
Invoking: MCU C Compiler

arm-none-eabi-gcc -D__REDLIB__ -DCPU_MKE04Z8VFK4 -DCPU_MKE04Z8VFK4_cm0plus -DSDK_OS_BAREMETAL -DSDK_DEBUGCONSOLE=1 -DCR_INTEGER_PRINTF -DPRINTF_FLOAT_ENABLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\board" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\source" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\drivers" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\component\uart" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\utilities" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\CMSIS" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\device" -O0 -fno-common -g3 -Wall -c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fmerge-constants -fmacro-prefix-map="../drivers/"= -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"drivers/fsl_common_arm.d" -MT"drivers/fsl_common_arm.o" -MT"drivers/fsl_common_arm.d" -o "drivers/fsl_common_arm.o" "../drivers/fsl_common_arm.c"


arm-none-eabi-gcc -D__REDLIB__ -DCPU_MKE04Z8VFK4 -DCPU_MKE04Z8VFK4_cm0plus -DSDK_OS_BAREMETAL -DSDK_DEBUGCONSOLE=1 -DCR_INTEGER_PRINTF -DPRINTF_FLOAT_ENABLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\board" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\source" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\drivers" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\component\uart" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\utilities" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\CMSIS" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\device" -O0 -fno-common -g3 -Wall -c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fmerge-constants -fmacro-prefix-map="../drivers/"= -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"drivers/fsl_gpio.d" -MT"drivers/fsl_gpio.o" -MT"drivers/fsl_gpio.d" -o "drivers/fsl_gpio.o" "../drivers/fsl_gpio.c"
Building file: ../drivers/fsl_port.c
Finished building: ../source/semihost_hardfault.c
Finished building: ../drivers/fsl_common.c
Invoking: MCU C Compiler

arm-none-eabi-gcc -D__REDLIB__ -DCPU_MKE04Z8VFK4 -DCPU_MKE04Z8VFK4_cm0plus -DSDK_OS_BAREMETAL -DSDK_DEBUGCONSOLE=1 -DCR_INTEGER_PRINTF -DPRINTF_FLOAT_ENABLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\board" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\source" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\drivers" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\component\uart" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\utilities" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\CMSIS" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\device" -O0 -fno-common -g3 -Wall -c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fmerge-constants -fmacro-prefix-map="../drivers/"= -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"drivers/fsl_port.d" -MT"drivers/fsl_port.o" -MT"drivers/fsl_port.d" -o "drivers/fsl_port.o" "../drivers/fsl_port.c"

Building file: ../drivers/fsl_uart.c
Finished building: ../drivers/fsl_clock.c
Invoking: MCU C Compiler
Building file: ../device/system_MKE04Z4.c
arm-none-eabi-gcc -D__REDLIB__ -DCPU_MKE04Z8VFK4 -DCPU_MKE04Z8VFK4_cm0plus -DSDK_OS_BAREMETAL -DSDK_DEBUGCONSOLE=1 -DCR_INTEGER_PRINTF -DPRINTF_FLOAT_ENABLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\board" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\source" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\drivers" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\component\uart" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\utilities" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\CMSIS" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\device" -O0 -fno-common -g3 -Wall -c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fmerge-constants -fmacro-prefix-map="../drivers/"= -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"drivers/fsl_uart.d" -MT"drivers/fsl_uart.o" -MT"drivers/fsl_uart.d" -o "drivers/fsl_uart.o" "../drivers/fsl_uart.c"

Invoking: MCU C Compiler
Building file: ../component/uart/fsl_adapter_uart.c
arm-none-eabi-gcc -D__REDLIB__ -DCPU_MKE04Z8VFK4 -DCPU_MKE04Z8VFK4_cm0plus -DSDK_OS_BAREMETAL -DSDK_DEBUGCONSOLE=1 -DCR_INTEGER_PRINTF -DPRINTF_FLOAT_ENABLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\board" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\source" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\drivers" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\component\uart" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\utilities" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\CMSIS" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\device" -O0 -fno-common -g3 -Wall -c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fmerge-constants -fmacro-prefix-map="../device/"= -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"device/system_MKE04Z4.d" -MT"device/system_MKE04Z4.o" -MT"device/system_MKE04Z4.d" -o "device/system_MKE04Z4.o" "../device/system_MKE04Z4.c"
Building file: ../board/board.c
Invoking: MCU C Compiler
Finished building: ../drivers/fsl_common_arm.c
arm-none-eabi-gcc -D__REDLIB__ -DCPU_MKE04Z8VFK4 -DCPU_MKE04Z8VFK4_cm0plus -DSDK_OS_BAREMETAL -DSDK_DEBUGCONSOLE=1 -DCR_INTEGER_PRINTF -DPRINTF_FLOAT_ENABLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\board" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\source" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\drivers" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\component\uart" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\utilities" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\CMSIS" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\device" -O0 -fno-common -g3 -Wall -c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fmerge-constants -fmacro-prefix-map="../component/uart/"= -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"component/uart/fsl_adapter_uart.d" -MT"component/uart/fsl_adapter_uart.o" -MT"component/uart/fsl_adapter_uart.d" -o "component/uart/fsl_adapter_uart.o" "../component/uart/fsl_adapter_uart.c"
Invoking: MCU C Compiler

arm-none-eabi-gcc -D__REDLIB__ -DCPU_MKE04Z8VFK4 -DCPU_MKE04Z8VFK4_cm0plus -DSDK_OS_BAREMETAL -DSDK_DEBUGCONSOLE=1 -DCR_INTEGER_PRINTF -DPRINTF_FLOAT_ENABLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\board" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\source" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\drivers" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\component\uart" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\utilities" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\CMSIS" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\device" -O0 -fno-common -g3 -Wall -c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fmerge-constants -fmacro-prefix-map="../board/"= -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"board/board.d" -MT"board/board.o" -MT"board/board.d" -o "board/board.o" "../board/board.c"
Finished building: ../drivers/fsl_gpio.c
Building file: ../board/clock_config.c
Building file: ../board/peripherals.c

Invoking: MCU C Compiler
Finished building: ../drivers/fsl_port.c
arm-none-eabi-gcc -D__REDLIB__ -DCPU_MKE04Z8VFK4 -DCPU_MKE04Z8VFK4_cm0plus -DSDK_OS_BAREMETAL -DSDK_DEBUGCONSOLE=1 -DCR_INTEGER_PRINTF -DPRINTF_FLOAT_ENABLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\board" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\source" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\drivers" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\component\uart" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\utilities" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\CMSIS" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\device" -O0 -fno-common -g3 -Wall -c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fmerge-constants -fmacro-prefix-map="../board/"= -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"board/clock_config.d" -MT"board/clock_config.o" -MT"board/clock_config.d" -o "board/clock_config.o" "../board/clock_config.c"
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DCPU_MKE04Z8VFK4 -DCPU_MKE04Z8VFK4_cm0plus -DSDK_OS_BAREMETAL -DSDK_DEBUGCONSOLE=1 -DCR_INTEGER_PRINTF -DPRINTF_FLOAT_ENABLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\board" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\source" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\drivers" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\component\uart" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\utilities" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\CMSIS" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\device" -O0 -fno-common -g3 -Wall -c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fmerge-constants -fmacro-prefix-map="../board/"= -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"board/peripherals.d" -MT"board/peripherals.o" -MT"board/peripherals.d" -o "board/peripherals.o" "../board/peripherals.c"

Building file: ../board/pin_mux.c
Invoking: MCU C Compiler
Finished building: ../device/system_MKE04Z4.c
arm-none-eabi-gcc -D__REDLIB__ -DCPU_MKE04Z8VFK4 -DCPU_MKE04Z8VFK4_cm0plus -DSDK_OS_BAREMETAL -DSDK_DEBUGCONSOLE=1 -DCR_INTEGER_PRINTF -DPRINTF_FLOAT_ENABLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\board" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\source" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\drivers" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\component\uart" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\utilities" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\CMSIS" -I"C:\Users\manum\Documents\MCUXpressoIDE_11.5.1_7266\workspace\MKE04Z4_Project_test\device" -O0 -fno-common -g3 -Wall -c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fmerge-constants -fmacro-prefix-map="../board/"= -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"board/pin_mux.d" -MT"board/pin_mux.o" -MT"board/pin_mux.d" -o "board/pin_mux.o" "../board/pin_mux.c"
Finished building: ../drivers/fsl_uart.c
Finished building: ../component/uart/fsl_adapter_uart.c
Finished building: ../board/board.c




Finished building: ../board/peripherals.c

Finished building: ../board/clock_config.c

Finished building: ../board/pin_mux.c

Building target: MKE04Z4_Project_test.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -Xlinker -Map="MKE04Z4_Project_test.map" -Xlinker --gc-sections -Xlinker -print-memory-usage -Xlinker --sort-section=alignment -Xlinker --cref -mcpu=cortex-m0plus -mthumb -T MKE04Z4_Project_test_Debug.ld -o "MKE04Z4_Project_test.axf" ./utilities/fsl_debug_console.o ./startup/startup_mke04z4.o ./source/MKE04Z4_Project_test.o ./source/semihost_hardfault.o ./drivers/fsl_clock.o ./drivers/fsl_common.o ./drivers/fsl_common_arm.o ./drivers/fsl_gpio.o ./drivers/fsl_port.o ./drivers/fsl_uart.o ./device/system_MKE04Z4.o ./component/uart/fsl_adapter_uart.o ./board/board.o ./board/clock_config.o ./board/peripherals.o ./board/pin_mux.o
c:/nxp/mcuxpressoide/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.1.202201181444/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: MKE04Z4_Project_test.axf section `.text' will not fit in region `PROGRAM_FLASH'
c:/nxp/mcuxpressoide/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.1.202201181444/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: region `PROGRAM_FLASH' overflowed by 1376 bytes
Memory region Used Size Region Size %age Used
PROGRAM_FLASH: 9568 B 8 KB 116.80%
SRAM: 492 B 1 KB 48.05%
collect2.exe: error: ld returned 1 exit status
make[1]: *** [makefile:53: MKE04Z4_Project_test.axf] Error 1
make: *** [makefile:44: all] Error 2
"make -r -j8 all" terminated with exit code 2. Build might be incomplete.

16:43:03 Build Failed. 4 errors, 0 warnings. (took 2s.827ms) 

 

0 件の賞賛
返信
2 返答(返信)

1,596件の閲覧回数
Stabsauger
Contributor I

Thank you for the reply.

I haven´t written any code. I just created a new project with the sdk-wizard.

Until now i found out that removing debug-console and using optimization reduces code size.

Now i was trying to play a bit with pwm, uard, adc and fsl-drivers. That works fine but im running out of memory very fast.

For example i copied a pwm-example from Keil-uVison5 to MCUXpresso to test it. But it needs about 150% of memory. Just for one PWM-example...

Im pretty sure that im doing something wrong but cant figure out what it is.

Are the fsl-drivers using a lot of memory instead of setteng the register by hand?

0 件の賞賛
返信

1,651件の閲覧回数
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hello

The FRDM-KE04Z only has 8 kB of flash memory, and looks that your application needs 16.80% more.

What you can try is to optimize your code to make the flash memory footprint smaller, for example using less global variables and storing functions in RAM.

You can take a look to these threads for more information:

https://community.nxp.com/t5/Kinetis-Microcontrollers/MCUXPresso-K66F/m-p/1445258#M62910

https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/LPC-How-to-place-data-function-file-in-s...

Another thing you can try is to use an external memory to flash your application.

I hope this helps, Daniel.

0 件の賞賛
返信