Skip to content

Commit

Permalink
debug (#233)
Browse files Browse the repository at this point in the history
fixed dfu reset bug
  • Loading branch information
GitJRS authored Mar 16, 2023
1 parent 2ffb3c8 commit 2731176
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,5 @@ pipeline {
// However, beware that this pipeline will not run if the workspace is not manually cleaned.
cleanWs()
}
} }
}
}
5 changes: 4 additions & 1 deletion test/device_firmware_update/check_dfu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ export_tools_version
xflash ${ADAPTER_ID} --factory-version ${XTC_VERSION_MAJOR}.${XTC_VERSION_MINOR} --upgrade 0 ${FIRMWARE} -o ${OUTPUT_DIR}/${FIRMWARE_NAME}_upgrade.bin

# write the upgrade image
dfu-util -e -d 20b1:4001 -a 1 -D ${OUTPUT_DIR}/${FIRMWARE_NAME}_upgrade.bin --reset
dfu-util -e -d 20b1:4001 -a 1 -D ${OUTPUT_DIR}/${FIRMWARE_NAME}_upgrade.bin

# reset board
xgdb -batch -ex "connect ${ADAPTER_ID} --reset-to-mode-pins" -ex detach

# wait for dust to gather
sleep 5
Expand Down

0 comments on commit 2731176

Please sign in to comment.