Clean useless files
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
This commit is contained in:
parent
0e0ac6837d
commit
bf3a55ff8c
119 changed files with 0 additions and 517 deletions
|
|
@ -1,11 +0,0 @@
|
|||
# stm32 discovery boards, with onboard st/linkv1
|
||||
# ie, STM32VL
|
||||
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3744", \
|
||||
MODE:="0666", \
|
||||
SYMLINK+="stlinkv1_%n"
|
||||
|
||||
# If you share your linux system with other users, or just don't like the
|
||||
# idea of write permission for everybody, you can replace MODE:="0666" with
|
||||
# OWNER:="yourusername" to create the device owned by you, or with
|
||||
# GROUP:="somegroupname" and mange access using standard unix groups.
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
# stm32 nucleo boards, with onboard st/linkv2-1
|
||||
# ie, STM32F0, STM32F4.
|
||||
# STM32VL has st/linkv1, which is quite different
|
||||
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374b", \
|
||||
MODE:="0666", \
|
||||
SYMLINK+="stlinkv2-1_%n"
|
||||
|
||||
# If you share your linux system with other users, or just don't like the
|
||||
# idea of write permission for everybody, you can replace MODE:="0666" with
|
||||
# OWNER:="yourusername" to create the device owned by you, or with
|
||||
# GROUP:="somegroupname" and mange access using standard unix groups.
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
# stm32 discovery boards, with onboard st/linkv2
|
||||
# ie, STM32L, STM32F4.
|
||||
# STM32VL has st/linkv1, which is quite different
|
||||
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", \
|
||||
MODE:="0666", \
|
||||
SYMLINK+="stlinkv2_%n"
|
||||
|
||||
# If you share your linux system with other users, or just don't like the
|
||||
# idea of write permission for everybody, you can replace MODE:="0666" with
|
||||
# OWNER:="yourusername" to create the device owned by you, or with
|
||||
# GROUP:="somegroupname" and mange access using standard unix groups.
|
||||
|
|
@ -5,15 +5,6 @@ if sudo [ -w /etc/udev/rules.d ]; then
|
|||
sudo cp -v 45-maple.rules /etc/udev/rules.d/45-maple.rules
|
||||
sudo chown root:root /etc/udev/rules.d/45-maple.rules
|
||||
sudo chmod 644 /etc/udev/rules.d/45-maple.rules
|
||||
sudo cp -v 49-stlinkv1.rules /etc/udev/rules.d/49-stlinkv1.rules
|
||||
sudo chown root:root /etc/udev/rules.d/49-stlinkv1.rules
|
||||
sudo chmod 644 /etc/udev/rules.d/49-stlinkv1.rules
|
||||
sudo cp -v 49-stlinkv2.rules /etc/udev/rules.d/49-stlinkv2.rules
|
||||
sudo chown root:root /etc/udev/rules.d/49-stlinkv2.rules
|
||||
sudo chmod 644 /etc/udev/rules.d/49-stlinkv2.rules
|
||||
sudo cp -v 49-stlinkv2-1.rules /etc/udev/rules.d/49-stlinkv2-1.rules
|
||||
sudo chown root:root /etc/udev/rules.d/49-stlinkv2-1.rules
|
||||
sudo chmod 644 /etc/udev/rules.d/49-stlinkv2-1.rules
|
||||
echo "Reloading udev rules"
|
||||
sudo udevadm control --reload-rules
|
||||
echo "Adding current user to dialout group"
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
The maple upload script needs its rights to be set to 755
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/bash
|
||||
$(dirname $0)/stm32flash/stm32flash -g 0x8000000 -b 115200 -w "$4" /dev/"$1"
|
||||
Binary file not shown.
|
|
@ -1 +0,0 @@
|
|||
libstlink.so.1
|
||||
|
|
@ -1 +0,0 @@
|
|||
libstlink.so.1.5.1
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,54 +0,0 @@
|
|||
#!/bin/bash
|
||||
LD_LIBRARY_PATH=$(dirname $0)/stlink/lib
|
||||
if [ `uname -m` == "x86_64" ]; then
|
||||
$(dirname $0)/../linux64/stlink_upload $*
|
||||
else
|
||||
$(dirname $0)/stlink/st-flash write "$4" 0x8000000
|
||||
fi
|
||||
exit 0
|
||||
|
||||
## Remove the lines 2 to 7 (above) if you want this script to wait until the Serial device has been enumerated and loaded before the script exits
|
||||
|
||||
# Check for leaf device.
|
||||
function leaf_status()
|
||||
{
|
||||
|
||||
this_leaf_status=$(lsusb |grep "1eaf" | awk '{ print $NF}')
|
||||
# Find the mode of the leaf bootloader
|
||||
case $this_leaf_status in
|
||||
"1eaf:0003")
|
||||
echo "dfu"
|
||||
;;
|
||||
"1eaf:0004")
|
||||
echo "ttyACMx"
|
||||
;;
|
||||
*)
|
||||
#echo "$this_leaf_status"
|
||||
echo "unknown"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# You will need the usb-reset code, see https://github.com/rogerclarkmelbourne/Arduino_STM32/wiki/Using-a-generic-stm32-board-on-linux-with-Maple-bootloader
|
||||
#
|
||||
USBRESET=$(which usb-reset) || USBRESET="./usb-reset"
|
||||
|
||||
# Check to see if a maple compatible board is attached
|
||||
LEAF_STATUS=$(leaf_status)
|
||||
echo "USB Status [$LEAF_STATUS]"
|
||||
|
||||
$(dirname $0)/stlink/st-flash write "$4" 0x8000000
|
||||
|
||||
sleep 4
|
||||
# Reset the usb device to bring up the tty rather than DFU
|
||||
"$USBRESET" "/dev/bus/usb/$(lsusb |grep "1eaf" |awk '{print $2,$4}'|sed 's/\://g'|sed 's/ /\//g')" >/dev/null 2>&1
|
||||
# Check to see if a maple compatible board is attached
|
||||
LEAF_STATUS=$(leaf_status)
|
||||
echo "USB Status [$LEAF_STATUS]"
|
||||
# Check to see if the tty came up
|
||||
TTY_DEV=$(find /dev -cmin -2 |grep ttyAC)
|
||||
echo -e "Waiting for tty device $TTY_DEV \n"
|
||||
sleep 20
|
||||
echo -e "$TTY_DEV should now be available.\n"
|
||||
exit 0
|
||||
|
||||
Binary file not shown.
|
|
@ -1,11 +0,0 @@
|
|||
# stm32 discovery boards, with onboard st/linkv1
|
||||
# ie, STM32VL
|
||||
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3744", \
|
||||
MODE:="0666", \
|
||||
SYMLINK+="stlinkv1_%n"
|
||||
|
||||
# If you share your linux system with other users, or just don't like the
|
||||
# idea of write permission for everybody, you can replace MODE:="0666" with
|
||||
# OWNER:="yourusername" to create the device owned by you, or with
|
||||
# GROUP:="somegroupname" and mange access using standard unix groups.
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
# stm32 nucleo boards, with onboard st/linkv2-1
|
||||
# ie, STM32F0, STM32F4.
|
||||
# STM32VL has st/linkv1, which is quite different
|
||||
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374b", \
|
||||
MODE:="0666", \
|
||||
SYMLINK+="stlinkv2-1_%n"
|
||||
|
||||
# If you share your linux system with other users, or just don't like the
|
||||
# idea of write permission for everybody, you can replace MODE:="0666" with
|
||||
# OWNER:="yourusername" to create the device owned by you, or with
|
||||
# GROUP:="somegroupname" and mange access using standard unix groups.
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
# stm32 discovery boards, with onboard st/linkv2
|
||||
# ie, STM32L, STM32F4.
|
||||
# STM32VL has st/linkv1, which is quite different
|
||||
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", \
|
||||
MODE:="0666", \
|
||||
SYMLINK+="stlinkv2_%n"
|
||||
|
||||
# If you share your linux system with other users, or just don't like the
|
||||
# idea of write permission for everybody, you can replace MODE:="0666" with
|
||||
# OWNER:="yourusername" to create the device owned by you, or with
|
||||
# GROUP:="somegroupname" and mange access using standard unix groups.
|
||||
|
|
@ -5,15 +5,6 @@ if sudo [ -w /etc/udev/rules.d ]; then
|
|||
sudo cp -v 45-maple.rules /etc/udev/rules.d/45-maple.rules
|
||||
sudo chown root:root /etc/udev/rules.d/45-maple.rules
|
||||
sudo chmod 644 /etc/udev/rules.d/45-maple.rules
|
||||
sudo cp -v 49-stlinkv1.rules /etc/udev/rules.d/49-stlinkv1.rules
|
||||
sudo chown root:root /etc/udev/rules.d/49-stlinkv1.rules
|
||||
sudo chmod 644 /etc/udev/rules.d/49-stlinkv1.rules
|
||||
sudo cp -v 49-stlinkv2.rules /etc/udev/rules.d/49-stlinkv2.rules
|
||||
sudo chown root:root /etc/udev/rules.d/49-stlinkv2.rules
|
||||
sudo chmod 644 /etc/udev/rules.d/49-stlinkv2.rules
|
||||
sudo cp -v 49-stlinkv2-1.rules /etc/udev/rules.d/49-stlinkv2-1.rules
|
||||
sudo chown root:root /etc/udev/rules.d/49-stlinkv2-1.rules
|
||||
sudo chmod 644 /etc/udev/rules.d/49-stlinkv2-1.rules
|
||||
echo "Reloading udev rules"
|
||||
sudo udevadm control --reload-rules
|
||||
echo "Adding current user to dialout group"
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
The maple upload script needs its rights to be set to 755
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/bash
|
||||
$(dirname $0)/stm32flash/stm32flash -g 0x8000000 -b 115200 -w "$4" /dev/"$1"
|
||||
Binary file not shown.
|
|
@ -1 +0,0 @@
|
|||
libstlink.so.1
|
||||
|
|
@ -1 +0,0 @@
|
|||
libstlink.so.1.5.1
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,48 +0,0 @@
|
|||
#!/bin/bash
|
||||
LD_LIBRARY_PATH=$(dirname $0)/stlink/lib
|
||||
$(dirname $0)/stlink/st-flash write "$4" 0x8000000
|
||||
exit 0
|
||||
|
||||
# Check for leaf device.
|
||||
function leaf_status()
|
||||
{
|
||||
|
||||
this_leaf_status=$(lsusb |grep "1eaf" | awk '{ print $NF}')
|
||||
# Find the mode of the leaf bootloader
|
||||
case $this_leaf_status in
|
||||
"1eaf:0003")
|
||||
echo "dfu"
|
||||
;;
|
||||
"1eaf:0004")
|
||||
echo "ttyACMx"
|
||||
;;
|
||||
*)
|
||||
#echo "$this_leaf_status"
|
||||
echo "unknown"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# You will need the usb-reset code, see https://github.com/rogerclarkmelbourne/Arduino_STM32/wiki/Using-a-generic-stm32-board-on-linux-with-Maple-bootloader
|
||||
#
|
||||
USBRESET=$(which usb-reset) || USBRESET="./usb-reset"
|
||||
|
||||
# Check to see if a maple compatible board is attached
|
||||
LEAF_STATUS=$(leaf_status)
|
||||
echo "USB Status [$LEAF_STATUS]"
|
||||
|
||||
$(dirname $0)/stlink/st-flash write "$4" 0x8000000
|
||||
|
||||
sleep 4
|
||||
# Reset the usb device to bring up the tty rather than DFU
|
||||
"$USBRESET" "/dev/bus/usb/$(lsusb |grep "1eaf" |awk '{print $2,$4}'|sed 's/\://g'|sed 's/ /\//g')" >/dev/null 2>&1
|
||||
# Check to see if a maple compatible board is attached
|
||||
LEAF_STATUS=$(leaf_status)
|
||||
echo "USB Status [$LEAF_STATUS]"
|
||||
# Check to see if the tty came up
|
||||
TTY_DEV=$(find /dev -cmin -2 |grep ttyAC)
|
||||
echo -e "Waiting for tty device $TTY_DEV \n"
|
||||
sleep 20
|
||||
echo -e "$TTY_DEV should now be available.\n"
|
||||
exit 0
|
||||
|
||||
Binary file not shown.
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/bash
|
||||
$(dirname $0)/stm32flash/stm32flash -g 0x8000000 -b 115200 -w "$4" /dev/"$1"
|
||||
Binary file not shown.
|
|
@ -1 +0,0 @@
|
|||
libstlink.1.5.1.dylib
|
||||
Binary file not shown.
|
|
@ -1 +0,0 @@
|
|||
libstlink.1.dylib
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
DYLD_LIBRARY_PATH=$(dirname $0)/stlink/lib
|
||||
$(dirname $0)/stlink/st-flash write "$4" 0x8000000
|
||||
Binary file not shown.
|
|
@ -1,11 +0,0 @@
|
|||
@echo off
|
||||
rem: Note %~dp0 get path of this batch file
|
||||
rem: Need to change drive if My Documents is on a drive other than C:
|
||||
set driverLetter=%~dp0
|
||||
set driverLetter=%driverLetter:~0,2%
|
||||
%driverLetter%
|
||||
cd %~dp0
|
||||
rem: the two line below are needed to fix path issues with incorrect slashes before the bin file name
|
||||
set str=%4
|
||||
set str=%str:/=\%
|
||||
stm32flash\stm32flash.exe -g 0x8000000 -b 115200 -w %str% %1
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue