update programming script
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
#!/bin/bash
|
||||
/Applications/STMicroelectronics/STM32Cube/STM32_Programmer_CLI -c port=SWD -ob RDP=0xAA
|
||||
/Applications/STMicroelectronics/STM32Cube/STM32_Programmer_CLI -c port=SWD -e all -w /Users/willem/Documents/PROJECTS/Leo-led-truck/manufacturing/programming/firmware_v21_20211028.bin 0x08000000 -ob RDP=0xBB
|
||||
TOOLPATH="/Applications/STMicroelectronics/STM32Cube/STM32CubeProgrammer/STM32CubeProgrammer.app/Contents/MacOs/bin"
|
||||
|
||||
|
||||
$TOOLPATH/STM32_Programmer_CLI -c port=SWD -ob RDP=0xAA
|
||||
|
||||
status=$?
|
||||
if [ $status -ne 0 ]; then
|
||||
echo "Failed to set Optiobytes, EXIT!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
$TOOLPATH/STM32_Programmer_CLI -c port=SWD -e all -w firmware_v21_20211028.bin 0x08000000 -ob RDP=0xBB
|
||||
Reference in New Issue
Block a user