Closed
Description
This code works fine when the MagTag boots cold.
import board
import busio
print(dir(board))
i2c = busio.I2C(board.SCL, board.SDA)
def printdevices():
i2c.try_lock()
# Find the I2C devices available.
devices = i2c.scan()
print("I2C devices:", len(devices))
for device in devices:
print(hex(device))
i2c.unlock()
print("I2C unlocked! ")
printdevices()
After connecting to Putty (here with COM29)
and pressing ctrl-c to get to the CP prompt
and pressing ctrl-d to reload...
There is a core code hard crash:
And the CDC connection to Putty is disconnecting:
PS: I observe similar behaviour using a featherS2.