Errors in using Templated Components and importing Component Setting

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Errors in using Templated Components and importing Component Setting

Errors in using Templated Components and importing Component Setting

Since I want to use some settings of the provious project, I find there are two ways which both don't work. I select the "The LCD"  example project which locals in"\\\Freescale\CW MCU v10.3\MCU\CodeWarrior_Examples\Processor_Expert\Kinetis\TWR-K40X256\LCD".

  • First gererate code,  build and run the project with success. Then I save the processor setting as template and add  it in a empty PE project from the "Component Library", Generate Processor Export code with error "Incorrect Tool Chain Select", I check the new project propeties and change the "Current toolchain" as "ARM  toolchain"  in correpondence with the previous project.  Regenerate the code , there still exit 9 errors in the _arm_start.cfile .
    DescriptionResourcePathLocationType
    Undefined : "exit"__arm_start.c/PE_use_template/Project_Settings/Startup_Codeline 287C/C++ Problem
    Link failed.PE_use_templateC/C++ Problem
    mingw32-make: *** [PE_use_template.elf] Error 1PE_use_templateC/C++ Problem
    Undefined : "__aeabi_unwind_cpp_pr1"PE_use_templateline 0, external location: E:\CW_workspace\PE_use_template\RAM\Cpu_c.objC/C++ Problem
    Undefined : "__call_static_initializers"__arm_start.c/PE_use_template/Project_Settings/Startup_Codeline 251C/C++ Problem
    Undefined : "__copy_rom_sections_to_ram"__arm_start.c/PE_use_template/Project_Settings/Startup_Codeline 231C/C++ Problem
    Undefined : "__init_registers"__arm_start.c/PE_use_template/Project_Settings/Startup_Codeline 179C/C++ Problem
    Undefined : "__init_user"__arm_start.c/PE_use_template/Project_Settings/Startup_Codeline 257C/C++ Problem
    Undefined : "memset"__arm_start.c/PE_use_template/Project_Settings/Startup_Code

    line 229

    C/C++ Problem

  • Second, when I use export "Component Setting"  there still exist the same problems. Can anyone give some hints or advice to this problem?:D
Comments

I have solved this question. When I create a new PE project, in the "language and build Tools Options", the  "ARM build tools"  default is GCC, when I select "Freescale", and import the the Processor Export component or board setting,  the new project works. So I believe for this PE example projects, the build tool should be "Freescale" which is different from the default setting.

%3CLINGO-SUB%20id%3D%22lingo-sub-1119390%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EErrors%20in%20using%20Templated%20Components%20and%20importing%20Component%20Setting%20%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1119390%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ESince%20I%20want%20to%20use%20some%20settings%20of%20the%20provious%20project%2C%20I%20find%20there%20are%20two%20ways%20which%20both%20don't%20work.%20I%20select%20the%20%22The%20LCD%22%26nbsp%3B%20example%20project%20which%20locals%20in%22%5C%5C%5CFreescale%5CCW%20MCU%20v10.3%5CMCU%5CCodeWarrior_Examples%5CProcessor_Expert%5CKinetis%5CTWR-K40X256%5CLCD%22.%3C%2FP%3E%3CUL%3E%3CLI%3EFirst%20gererate%20code%2C%26nbsp%3B%20build%20and%20run%20the%20project%20with%20success.%20Then%20I%20save%20the%20processor%20setting%20as%20template%20and%20add%26nbsp%3B%20it%20in%20a%20empty%20PE%20project%20from%20the%20%22Component%20Library%22%2C%20Generate%20Processor%20Export%20code%20with%20error%20%22Incorrect%20Tool%20Chain%20Select%22%2C%20I%20check%20the%20new%20project%20propeties%20and%20change%20the%20%22Current%20toolchain%22%20as%20%22ARM%26nbsp%3B%20toolchain%22%26nbsp%3B%20in%20correpondence%20with%20the%20previous%20project.%26nbsp%3B%20Regenerate%20the%20code%20%2C%20there%20still%20exit%209%20errors%20in%20the%20%3CEM%3E_arm_start.c%3C%2FEM%3Efile%20.%3CTABLE%3E%3CTBODY%3E%3CTR%3E%3CTD%3EDescription%3C%2FTD%3E%3CTD%3EResource%3C%2FTD%3E%3CTD%3EPath%3C%2FTD%3E%3CTD%3ELocation%3C%2FTD%3E%3CTD%3EType%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E%20Undefined%20%3A%20%22exit%22%3C%2FTD%3E%3CTD%3E__arm_start.c%3C%2FTD%3E%3CTD%3E%2FPE_use_template%2FProject_Settings%2FStartup_Code%3C%2FTD%3E%3CTD%3Eline%20287%3C%2FTD%3E%3CTD%3EC%2FC%2B%2B%20Problem%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3ELink%20failed.%3C%2FTD%3E%3CTD%3EPE_use_template%3C%2FTD%3E%3CTD%3E%3C%2FTD%3E%3CTD%3E%3C%2FTD%3E%3CTD%3EC%2FC%2B%2B%20Problem%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3Emingw32-make%3A%20***%20%5BPE_use_template.elf%5D%20Error%201%3C%2FTD%3E%3CTD%3EPE_use_template%3C%2FTD%3E%3CTD%3E%3C%2FTD%3E%3CTD%3E%3C%2FTD%3E%3CTD%3EC%2FC%2B%2B%20Problem%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EUndefined%20%3A%20%22__aeabi_unwind_cpp_pr1%22%3C%2FTD%3E%3CTD%3EPE_use_template%3C%2FTD%3E%3CTD%3E%3C%2FTD%3E%3CTD%3Eline%200%2C%20external%20location%3A%20E%3A%5CCW_workspace%5CPE_use_template%5CRAM%5CCpu_c.obj%3C%2FTD%3E%3CTD%3EC%2FC%2B%2B%20Problem%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EUndefined%20%3A%20%22__call_static_initializers%22%3C%2FTD%3E%3CTD%3E__arm_start.c%3C%2FTD%3E%3CTD%3E%2FPE_use_template%2FProject_Settings%2FStartup_Code%3C%2FTD%3E%3CTD%3Eline%20251%3C%2FTD%3E%3CTD%3EC%2FC%2B%2B%20Problem%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EUndefined%20%3A%20%22__copy_rom_sections_to_ram%22%3C%2FTD%3E%3CTD%3E__arm_start.c%3C%2FTD%3E%3CTD%3E%2FPE_use_template%2FProject_Settings%2FStartup_Code%3C%2FTD%3E%3CTD%3Eline%20231%3C%2FTD%3E%3CTD%3EC%2FC%2B%2B%20Problem%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EUndefined%20%3A%20%22__init_registers%22%3C%2FTD%3E%3CTD%3E__arm_start.c%3C%2FTD%3E%3CTD%3E%2FPE_use_template%2FProject_Settings%2FStartup_Code%3C%2FTD%3E%3CTD%3Eline%20179%3C%2FTD%3E%3CTD%3EC%2FC%2B%2B%20Problem%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EUndefined%20%3A%20%22__init_user%22%3C%2FTD%3E%3CTD%3E__arm_start.c%3C%2FTD%3E%3CTD%3E%2FPE_use_template%2FProject_Settings%2FStartup_Code%3C%2FTD%3E%3CTD%3Eline%20257%3C%2FTD%3E%3CTD%3EC%2FC%2B%2B%20Problem%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EUndefined%20%3A%20%22memset%22%3C%2FTD%3E%3CTD%3E__arm_start.c%3C%2FTD%3E%3CTD%3E%2FPE_use_template%2FProject_Settings%2FStartup_Code%3C%2FTD%3E%3CTD%3E%3CP%3Eline%20229%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3C%2FTD%3E%3CTD%3E%3CP%3E%3C%2FP%3E%3CP%3EC%2FC%2B%2B%20Problem%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3C%2FP%3E%3CUL%3E%3CLI%3ESecond%2C%20when%20I%20use%20export%20%22Component%20Setting%22%26nbsp%3B%20there%20still%20exist%20the%20same%20problems.%20Can%20anyone%20give%20some%20hints%20or%20advice%20to%20this%20problem%3F%3AD%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1119390%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EComponent%20Development%20Environment%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EEmbedded%20Components%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1119391%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Errors%20in%20using%20Templated%20Components%20and%20importing%20Component%20Setting%20%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1119391%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20solved%20this%20question.%20When%20I%20create%20a%20new%20PE%20project%2C%20in%20the%20%22language%20and%20build%20Tools%20Options%22%2C%20the%26nbsp%3B%20%22ARM%20build%20tools%22%26nbsp%3B%20default%20is%20GCC%2C%20when%20I%20select%20%22Freescale%22%2C%20and%20import%20the%20the%20Processor%20Export%20component%20or%20board%20setting%2C%26nbsp%3B%20the%20new%20project%20works.%20So%20I%20believe%20for%20this%20PE%20example%20projects%2C%20the%20build%20tool%20should%20be%20%22Freescale%22%20which%20is%20different%20from%20the%20default%20setting.%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎04-15-2013 07:04 PM
Updated by: