Skip to content

Commit

Permalink
Add vendor and device ids (#1)
Browse files Browse the repository at this point in the history
* Add vendor and device ids

* Add add vendor and device ids

* Use vendor and device ids
  • Loading branch information
yconst committed Jul 18, 2021
1 parent 226f4ea commit 52830d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flash.bat
Expand Up @@ -29,7 +29,7 @@ if exist CANine.bin (
curl.exe -O -J -L --output CANine.bin --url https://github.com/yconst/CANine/releases/latest/download/CANine.bin)
)

dfu-util-static.exe -c 1 -i 0 -a 0 -s 0x08000000 -D CANine.bin
dfu-util-static.exe -d 0x0483:0xdf11 -c 1 -i 0 -a 0 -s 0x08000000 -D CANine.bin

:END
endlocal
2 changes: 1 addition & 1 deletion flash.sh
Expand Up @@ -17,7 +17,7 @@ if [ "$answer" != "${answer#[Yy]}" ] ;then
curl -O -J -L --output ./CANine.bin --url https://github.com/yconst/CANine/releases/latest/download/CANine.bin
fi

if dfu-util -c 1 -i 0 -a 0 -s 0x08000000 -D ./CANine.bin; then
if dfu-util -d 0x0483:0xdf11 -c 1 -i 0 -a 0 -s 0x08000000 -D ./CANine.bin; then
echo "Done. Disconnect device and return BOOT jumper to off."
else
echo "DFU operation failed."
Expand Down
2 changes: 1 addition & 1 deletion flash_macos.sh
Expand Up @@ -17,7 +17,7 @@ if [ "$answer" != "${answer#[Yy]}" ] ;then
curl -O -J -L --output ./CANine.bin --url https://github.com/yconst/CANine/releases/latest/download/CANine.bin
fi

if dfu-util -c 1 -i 0 -a 0 -s 0x08000000 -D ./CANine.bin; then
if dfu-util -d 0x0483:0xdf11 -c 1 -i 0 -a 0 -s 0x08000000 -D ./CANine.bin; then
echo "Done. Disconnect device and return BOOT jumper to off."
else
echo "DFU operation failed."
Expand Down

0 comments on commit 52830d2

Please sign in to comment.