{# device_type: lpcxpresso55s69 #}
{% extends 'base.jinja2' %}
{% set usb_vendor_id = '1366' %}
{% set usb_product_id = '0105' %}
{% block body %}
board_id: '{{ board_id|default('0000000000') }}'
usb_vendor_id: '{{ usb_vendor_id }}'
usb_product_id: '{{ usb_product_id }}'

actions:
  deploy:
    connections:
      lxc:
    methods:
      lxc:
      image:
        parameters:
{% if flasher_deploy_commands %}
      flasher:
        commands: {{ flasher_deploy_commands }}
{% endif %}

  boot:
    connections:
      serial:
      lxc:
      ssh:
    methods:
      lxc:
      minimal:
      pyocd:
        parameters:
          command:
            {{ pyocd_command }}
          options:
          - -d {{ debug|default('debug') }}
          - -t lpc55s69
          connect_before_flash: true
      jlink:
        parameters:
          command: JLinkExe 
          address: {{ load_address|default("0x00000000") }}
          processor: {{ processor|default("LPC55S69_core0") }}
          supported_core_types: {{ supported_core_types }}
          erase_command: {{ erase_command|default(["erase"]) }}
          reset_command: {{ reset_command|default(["r"]) }}
          options:
          - '-if SWD'
          - '-speed auto'
{% endblock body -%}

{% set device_info = device_info|default([{'board_id': board_id, 'usb_vendor_id': usb_vendor_id, 'usb_product_id': usb_product_id}]) %}
