NXP i.MX RT685 EVK

Sample firmware

References

Program i.MX RT685 EVK

title: "Program i.MXRT685EVK using Segger J-Link Commander"
suite:
 - title: "Defines"
   ident: TPM
   steps:
    - command: define FIRMWARE.hex "zephyr-shell-mimxrt685_evk_cm33-3.3.0.hex"
    - command: define SBC.uart "UART2"
    - command: define SBC.vidpid "6666:8001"
 - title: "New SBC Session"
   steps:
    - command: usb detect
      id: "%SBC.vidpid%"
    - command: uartCfg %SBC.uart% 1000000
      id: "%SBC.vidpid%"
    - command: sleepms 500
    - command: uart %SBC.uart%
      send: "\x03\r\n\x03\r\n\x04\x04"
    - command: uart %SBC.uart%
      send: "\r\n\x04"
      expect: "pltagent:PASS"
      timeout: 30s
 - title: "Write firmware to ramdisk"
   steps:
    - command: uart %SBC.uart%
      send: "\r\npltagent-msc-present\r\n"
      expect: "pltagent-msc-present:PASS"
      timeout: 5s
    - command: usb storage mount ramdisk
      id: "%SBC.vidpid%"
    - command: usb storage write ramdisk %FIRMWARE.hex%
    - command: usb storage unmount ramdisk
    - command: uart %SBC.uart%
      send: "\r\npltagent-msc-mount\r\n"
      expect: "pltagent-msc-mount:PASS"
      timeout: 5s
 - title: "Program i.MX685EVK with J-Link Commander"
   steps:
    - command: uart %SBC.uart%
      send: |
        JLinkExe -device MIMXRT685S_M33 ; echo prog:$?:DONE
        eoe 1
        si 1
        speed 4000
        r
        loadfile %FIRMWARE.hex%
        verify
        r
        q
      extract: "prog:(\\d+):DONE"
      extractKey: RETVAL
      timeout: 2m
    - command: eval "RETVAL == '0'"