ARM-software / vscode-cmsis-csolution

Extension support for VS Code CMSIS Project Extension
https://marketplace.visualstudio.com/items?itemName=Arm.cmsis-csolution
Other
28 stars 5 forks source link

Templates with multiple targets #96

Open ReinhardKeil opened 1 month ago

ReinhardKeil commented 1 month ago

The pack https://github.com/VladimirUmek/NXP_FRDM-MCXN947_BSP/releases contains a template with two targets: "Device with RAM/ROM". This enables configurations with a Flash (ROM) and RAM target that can be easily selected by using the Manage Solution / Context Set dialog.

The template is registered here: https://github.com/VladimirUmek/NXP_FRDM-MCXN947_BSP/blob/main/NXP.FRDM-MCXN947_BSP.pdsc#L1750

It effectively defines targets with:

  # List different hardware targets that are used to deploy the solution.
  target-types:
    - type: ROM
      variables:
        - LinkerScript: <script_for_ROM>

    - type: RAM
      variables:
        - LinkerScript:: <script_for_ROM>

In the moment, the VSCode extension cannot handle this type of templates. We should define how we extend it.