AnsweredAssumed Answered

Simple processor expert project

Question asked by Gnichi Mohamed on Feb 25, 2016
Latest reply on Feb 26, 2016 by Gnichi Mohamed

Hello

I want to make a simpl processor expert project. I have the frdm-kl03z.

Initially, processor expert includes interrupt manager component by default. If i remove it, the code generation does not work.

Also when i compile the code, it doesnt find lptmr header files, so i add the lptmr component to the project.

When i compile finally, it fails while linking

'Invoking: Cross ARM C++ Linker'

arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall  -g3 -T "C:/Users/Hamma/workspace.kds/test/Project_Settings/Linker_Files/ProcessorExpert.ld" -Xlinker --gc-sections -L"C:/Users/Hamma/workspace.kds/test/Project_Settings/Linker_Files" -Wl,-Map,"test.map" -specs=nosys.specs -specs=nano.specs -Xlinker -z -Xlinker muldefs -o "test.elf"  ./Static_Code/System/PE_low_level_init.o  ./Sources/Events.o ./Sources/main.o  ./SDK/platform/utilities/src/fsl_debug_console.o ./SDK/platform/utilities/src/fsl_misc_utilities.o ./SDK/platform/utilities/src/print_scan.o  ./SDK/platform/system/src/interrupt/fsl_interrupt_manager.o  ./SDK/platform/system/src/clock/MKL03Z4/fsl_clock_MKL03Z4.o  ./SDK/platform/system/src/clock/fsl_clock_manager.o ./SDK/platform/system/src/clock/fsl_clock_manager_common.o  ./SDK/platform/osa/src/fsl_os_abstraction_bm.o  ./SDK/platform/hal/src/sim/MKL03Z4/fsl_sim_hal_MKL03Z4.o  ./SDK/platform/hal/src/rtc/fsl_rtc_hal.o  ./SDK/platform/hal/src/port/fsl_port_hal.o  ./SDK/platform/hal/src/osc/fsl_osc_hal.o  ./SDK/platform/hal/src/mcglite/fsl_mcglite_hal.o ./SDK/platform/hal/src/mcglite/fsl_mcglite_hal_modes.o  ./SDK/platform/hal/src/lpuart/fsl_lpuart_hal.o  ./SDK/platform/hal/src/lptmr/fsl_lptmr_hal.o  ./SDK/platform/drivers/src/rtc/fsl_rtc_common.o  ./SDK/platform/drivers/src/lptmr/fsl_lptmr_common.o ./SDK/platform/drivers/src/lptmr/fsl_lptmr_driver.o  ./SDK/platform/devices/MKL03Z4/startup/gcc/startup_MKL03Z4.o  ./SDK/platform/devices/MKL03Z4/startup/system_MKL03Z4.o  ./SDK/platform/devices/startup.o  ./Generated_Code/Cpu.o ./Generated_Code/clockMan1.o ./Generated_Code/hardware_init.o ./Generated_Code/lpTmr2.o ./Generated_Code/osa1.o ./Generated_Code/pin_init.o  

d:/kds/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe:C:/Users/Hamma/workspace.kds/test/Project_Settings/Linker_Files/ProcessorExpert.ld:47: warning: memory region `m_interrupts' not declared

d:/kds/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe:C:/Users/Hamma/workspace.kds/test/Project_Settings/Linker_Files/ProcessorExpert.ld:57: warning: memory region `m_flash_config' not declared

d:/kds/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe:C:/Users/Hamma/workspace.kds/test/Project_Settings/Linker_Files/ProcessorExpert.ld:72: warning: memory region `m_text' not declared

d:/kds/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe:C:/Users/Hamma/workspace.kds/test/Project_Settings/Linker_Files/ProcessorExpert.ld:155: warning: memory region `m_data' not declared

d:/kds/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe:C:/Users/Hamma/workspace.kds/test/Project_Settings/Linker_Files/ProcessorExpert.ld:214: warning: memory region `m_interrupts_ram' not declared

d:/kds/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: section .flash_config loaded at [00000000,0000000f] overlaps section .interrupts loaded at [00000000,000000bf]

d:/kds/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: section .text loaded at [00000000,00002c13] overlaps section .flash_config loaded at [00000000,0000000f]

collect2.exe: error: ld returned 1 exit status

make: *** [test.elf] Error 1

Outcomes