mirror of
https://github.com/travisgoodspeed/goodwatch
synced 2024-11-21 15:48:02 +00:00
Fixes BSL entry sequence for compatibility with CC430F6147. #75
This commit is contained in:
parent
e99b5c5fca
commit
ce1e99e3aa
@ -30,10 +30,9 @@ class BSL:
|
||||
|
||||
def enter_bsl(self):
|
||||
"""Activates the bootloader by the sequence in SLAU319N."""
|
||||
self.setRST(False)
|
||||
self.setTST(False)
|
||||
time.sleep(0.250)
|
||||
self.setRST(True)
|
||||
time.sleep(0.10)
|
||||
|
||||
#Minimum two rising edges are required, but it helps to have three or more.
|
||||
self.setTST(False)
|
||||
@ -47,7 +46,7 @@ class BSL:
|
||||
|
||||
self.setRST(False)
|
||||
self.setTST(False)
|
||||
time.sleep(0.250)
|
||||
time.sleep(0.10)
|
||||
self.serial.flushInput();
|
||||
def reset(self):
|
||||
"""Exits the BSL by resetting the chip."""
|
||||
|
Loading…
Reference in New Issue
Block a user