Skip to content

Inheritance - name of the inheritated target is not in the lables #3129

@0xc0170

Description

@0xc0170

Description

  • Type: Question
  • Priority: Minor

Question

This code snippet illustrate the problem:

`"MCU_K22F512": {
        "supported_form_factors": ["ARDUINO"],
        "core": "Cortex-M4F",
        "supported_toolchains": ["ARM", "GCC_ARM", "IAR"],
        "extra_labels": ["Freescale", "KSDK2_MCUS", "MCU_K22F", "KPSDK_MCUS", "KPSDK_CODE"],
        "is_disk_virtual": true,
        "macros": ["CPU_MK22FN512VLH12", "FSL_RTOS_MBED"],
        "inherits": ["Target"],
        "detect_code": ["0231"],
        "device_has": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
        "release_versions": ["2", "5"],
        "device_name": "MK22DN512xxx5"
    },
               "K22F": {
    "inherits": ["MCU_K22F512"],
               "extra_labels_add": ["FRDM"]
               },

To make K22F work, I would need to add to extra labels MCU_K22F512 to the target MCU_K22F512. It's not defined by default. But for a regular target like K22F it is, as I recall. I could not find any relevant info in the docs.

cc @bogdanm @theotherjimmy @MarceloSalazar

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions