How to fix: project template component was not found in components

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to fix: project template component was not found in components

947 次查看
marek-trmac
NXP Employee
NXP Employee

This question was asked by b50843‌:

Manifest generator reports the following errors:

E, [2018-09-27T13:53:22.634730 #6488] ERROR -- : evkbimxrt1050: Board project template component was not found in components

E, [2018-09-27T13:53:22.635739 #6488] ERROR -- : MIMXRT1052: Device project template component was not found in components

How to fix them?

Regards,
Marek


NOTE: If you find the answer useful, kindly click on "ACCEPT AS SOLUTION" button
2 回复数

912 次查看
marek-trmac
NXP Employee
NXP Employee

Project templates are used to create new project for a board or for a device in MCU IDE (using SDK package) or in MDK uVision or IAR EmbWorkbench using CMSIS pack. These templates are mandatory for each device or board. The template typically contains the following files:

- pin_mux.*

- clock_config.*

- board.*

- peripherals.*

The project templates in the manifest:

    <component id="project_template.MK64F12.MK64F12" name="MK64F12" type="project_template" category="Board Support/SDK Project Template" device_cores="core0_MK64FN1M0xxx12" core="cm4" dependency="..." devices="MK64FN1M0xxx12" version="1.0.0" user_visible="true">
      <source path="devices/MK64F12/project_template" type="src">
        <files mask="board.c"/>
        <files mask="clock_config.c"/>
        <files mask="peripherals.c"/>
        <files mask="pin_mux.c"/>
      </source>
      <source path="devices/MK64F12/project_template" type="c_include">
        <files mask="board.h"/>
        <files mask="clock_config.h"/>
        <files mask="peripherals.h"/>
        <files mask="pin_mux.h"/>
      </source>
    </component>

    <component id="project_template.frdmk64f.MK64F12" name="frdmk64f" type="project_template" category="Board Support/SDK Project Template" device_cores="core0_MK64FN1M0xxx12" core="cm4" dependency="..." devices="MK64FN1M0xxx12" version="1.0.0" user_visible="true">
      <source path="boards/frdmk64f/project_template" type="src">
        <files mask="board.c"/>
        <files mask="clock_config.c"/>
        <files mask="peripherals.c"/>
        <files mask="pin_mux.c"/>
      </source>
      <source path="boards/frdmk64f/project_template" type="c_include">
        <files mask="board.h"/>
        <files mask="clock_config.h"/>
        <files mask="peripherals.h"/>
        <files mask="pin_mux.h"/>
      </source>
    </component>

Project templates in YAML:

DEVICES_Project_Template.MK64F12:
  section-type: component
  __requires__:
  - driver.uart component.uart_adapter driver.port driver.gpio driver.smc device.MK64F12
    device.MK64F12_startup driver.common utility.debug_console component.serial_manager_uart
    driver.clock driver.rtc device.MK64F12 driver.i2c driver.adc16 driver.dspi
  meta-name: project_template.MK64F12
  contents:
    files:
    - source: devices/MK64F12/project_template/board.h
      type: c_include
    - source: devices/MK64F12/project_template/board.c
      type: src
    - source: devices/MK64F12/project_template/clock_config.h
      type: c_include
    - source: devices/MK64F12/project_template/clock_config.c
      type: src
    - source: devices/MK64F12/project_template/pin_mux.h
      type: c_include
    - source: devices/MK64F12/project_template/pin_mux.c
      type: src
    - source: devices/MK64F12/project_template/peripherals.h
      type: c_include
    - source: devices/MK64F12/project_template/peripherals.c
      type: src
  component_info:
    common:
      type: project_template
      component_bundle: bundles.board_project_templates
      variant: MK64F12
      default_variant: true
      manifest_name: MK64F12
      version: 1.0.0

BOARD_Project_Template.frdmk64f:
  section-type: component
  __requires__:
  - device.MK64F12 device.MK64F12_startup driver.uart component.uart_adapter driver.port
    driver.common utility.debug_console component.serial_manager_uart driver.gpio
    driver.smc driver.clock board.frdmk64f driver.i2c driver.rtc driver.adc16 driver.dspi
  meta-name: project_template.frdmk64f
  contents:
    files:
    - source: boards/frdmk64f/project_template/board.h
      type: c_include
    - source: boards/frdmk64f/project_template/board.c
      type: src
    - source: boards/frdmk64f/project_template/clock_config.h
      type: c_include
    - source: boards/frdmk64f/project_template/clock_config.c
      type: src
    - source: boards/frdmk64f/project_template/pin_mux.h
      type: c_include
    - source: boards/frdmk64f/project_template/pin_mux.c
      type: src
    - source: boards/frdmk64f/project_template/peripherals.h
      type: c_include
    - source: boards/frdmk64f/project_template/peripherals.c
      type: src
  component_info:
    common:
      type: project_template
      component_bundle: bundles.board_project_templates
      variant: frdmk64f
      manifest_name: frdmk64f
      version: 1.0.0

Regards,
Marek


NOTE: If you find the answer useful, kindly click on "ACCEPT AS SOLUTION" button

912 次查看
marek-trmac
NXP Employee
NXP Employee

Examples where these project templates are specific in YAML stored in Git:

Git\mcu-sdk-2.0\bin\generator\records_v1\msdk\components\socs\MK64F12\components.yml  

Search for "DEVICES_Project_Template.:" or "BOARD_Project_Template.:"

Regards,
Marek


NOTE: If you find the answer useful, kindly click on "ACCEPT AS SOLUTION" button
0 项奖励
回复