File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed
Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 5959 name : build-artifact
6060 path : ./build
6161
62- - name : Rename .out to .elf
63- run : cd ./build/application/executable && ren application.out application.elf
64- shell : cmd
65-
6662 - name : Flash on board
67- run : cd ./build/application/executable && LinkServer flash MIMXRT1176xxxxx:MIMXRT1170-EVKB load .\application.elf
63+ run : ./scripts/ flash.bat
6864 shell : cmd
Original file line number Diff line number Diff line change 1+ @ ECHO off
2+
3+ SET CURRENT_DIRECTORY = %CD%
4+ ECHO " Current directory: %CURRENT_DIRECTORY% "
5+
6+ cd ../build/application/executable/
7+
8+ REM Need to rename the .out into .elf to call the LinkServer flash cmd
9+ ren application.out application.elf
10+
11+ LinkServer flash MIMXRT1176xxxxx:MIMXRT1170-EVKB load .\application.elf
12+
13+ IF %ERRORLEVEL% NEQ 0 (
14+ ECHO " Failed to flash the board"
15+ EXIT /B %ERRORLEVEL%
16+ )
17+
18+ cd %CURRENT_DIRECTORY%
You can’t perform that action at this time.
0 commit comments