Skip to content

Commit

Permalink
Merge pull request #15 from lab11/delay-after-reset
Browse files Browse the repository at this point in the history
Add delay after reset when entering bootloader.
  • Loading branch information
JelmerT committed Feb 2, 2015
2 parents ff9182d + 7e1918e commit d6711e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cc2538-bsl.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ def open(self, aport='/dev/tty.usbserial-000013FAB', abaudrate=500000):
self.sp.setRTS(0)
self.sp.setRTS(1)
self.sp.setRTS(0)
time.sleep(0.002) # Make sure the pin is still asserted when the cc2538
# comes out of reset. This fixes an issue where there
# wasn't enough delay here on Mac.
self.sp.setDTR(0)

def close(self):
Expand Down

0 comments on commit d6711e2

Please sign in to comment.