boards.io

frdm-k64f

FRDM-K64F

Inheritance

  1. frdm-k64f
  2. base

Key facts

Vendor
NXP
Bootloader family
MCU
Architecture
Arm Cortex-M (MCU) (guessed from the name)
Processor
MK64FN1M0xxx12
USB vendor ID
0d28
USB product ID
0204
Connections
serial, ssh

Deploy methods

image

Boot methods

pyocd cmsis-dap jlink

Overridable variables (1)

Variables set with a default value in this template. They can be overridden from the device dictionary or, for some of them, from the job context.

VariableDefault
device_info[{'board_id': board_id, 'usb_vendor_id': usb_vendor_id, 'usb_product_id': usb_product_id}]

Fixed settings (3)

VariableValue
usb_vendor_id'0d28'
usb_product_id'0204'
processor'MK64FN1M0xxx12'
{# device_type: frdm-k64f #}
{% extends 'base.jinja2' %}
{% set usb_vendor_id = '0d28' %}
{% set usb_product_id = '0204' %}
{% set processor = 'MK64FN1M0xxx12' %}
{% set device_info = device_info|default([{'board_id': board_id, 'usb_vendor_id': usb_vendor_id, 'usb_product_id': usb_product_id}]) %}
{% block body %}
board_id: '{{ board_id|default('0000000000') }}'
usb_vendor_id: '{{ usb_vendor_id }}'
usb_product_id: '{{ usb_product_id }}'
usb_sleep: {{ usb_sleep|default(0) }}

actions:
  deploy:
    connections:
    methods:
      image:
        parameters:

  boot:
    connections:
      serial:
      ssh:
    methods:
      pyocd:
        parameters:
          command:
            {{ pyocd_command }}
          options:
          - -t k64f
          - -f 3000000
      cmsis-dap:
        parameters:
          usb_mass_device: '{{ usb_mass_device|default('/notset') }}'
          resets_after_flash: {{ resets_after_flash|default(True) }}
          {# Allow to set any cmsis-dap parameters in a device dict. #}
          {% filter indent(width=10) -%}
          {% block cmsis_dap_params %}{% endblock cmsis_dap_params %}
          {% endfilter %}
          {# Next empty line is mandatory (jinja matters). #}

      jlink:
        parameters:
          command: JLinkExe
          address: {{ load_address|default("0x00000000") }}
          processor: {{ processor }}
          supported_core_types: {{ supported_core_types }}
          erase_command: {{ erase_command|default(["erase"]) }}
          reset_command: {{ reset_command|default(["r"]) }}
          options:
          - '-if SWD'
          - '-speed 4000'

  test:
    methods:
      docker:
        # Docker-shell additional command-line options. Can be given as
        # a list here, or additional options can be taken from device
        # dict vars below (which in turn can be not defined (== null),
        # a string, or an inline list of strings).
        global_options:
        - {{ docker_shell_global_arguments }}
        options:
        - {{ docker_shell_extra_arguments }}
{% endblock body -%}

Rendered with the default values (no device dictionary), using LAVA's own template environment.