mirror of
https://github.com/OpenSolo/OpenSolo.git
synced 2025-04-29 22:24:32 +02:00
16 lines
369 B
Python
Executable File
16 lines
369 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
# stm32loader in /usr/bin is not on the default python path; make
|
|
# sure we always find it no matter where this script is installed
|
|
import sys
|
|
sys.path.append("/usr/bin")
|
|
import stm32loader
|
|
|
|
cmd = stm32loader.CommandInterface()
|
|
cmd.open("/dev/ttymxc1", 115200)
|
|
cmd.initChip()
|
|
cmd.cmdGet()
|
|
cmd.cmdGetID()
|
|
cmd.cmdReadoutProtect()
|
|
cmd.releaseChip()
|