Skip to content

Commit

Permalink
workflow: on_target: patch nrfutil 1Mbaud
Browse files Browse the repository at this point in the history
Apply config patch for nrfutil device 1Mbaud.

Signed-off-by: Giacomo Dematteis <[email protected]>
  • Loading branch information
DematteisGiacomo committed Oct 3, 2024
1 parent df991fb commit 9a158f7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/on_target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,29 @@ jobs:
--software-version ${{ inputs.artifact_fw_version }} \
hello.nrfcloud.com-${{ inputs.artifact_fw_version }}-thingy91x-nrf91.elf
- name: Patch nrfutil for dfu (temporary)
run: |
echo ${NRFUTIL_HOME}
cat > ${NRFUTIL_HOME}/lib/nrfutil-device/14-nrfdl-mcuboot-plugin_config.json << EOF
{
"description": "Thingy:91 X",
"key": {
"product_id": "0x910A",
"vendor_id": "0x1915"
},
"traits": ["mcuBoot"],
"mcuboot_baudrate": 1000000
}
EOF
- name: Verify nrfutil configuration
env:
NRFUTIL_HOME: /usr/local/share/nrfutil
shell: bash
run: |
cat "${NRFUTIL_HOME}/lib/nrfutil-device/14-nrfdl-mcuboot-plugin_config.json"
- name: Run UART tests
working-directory: thingy91x-oob/tests/on_target
run: |
Expand Down
2 changes: 2 additions & 0 deletions tests/on_target/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ RUN <<EOT
mv nrfutil /usr/local/bin
chmod +x /usr/local/bin/nrfutil
nrfutil install device
nrfutil self-upgrade
nrfutil upgrade
EOT

# Install Go
Expand Down

0 comments on commit 9a158f7

Please sign in to comment.