[teensy41] help getting started
Posted: Fri Mar 04, 2022 7:45 pm
I am having trouble getting started with upython on my teensy 4.1. I can connect to it and use the repl in either rshell or using the command:
mpremote connect /dev/tty.usbmodem14401
But I don't know how to copy a python script onto it. If I try
mpremote mount .
it hangs forever. If I do a keyboard interrupt to get out of the infinite hang up, this is the traceback:
^CTraceback (most recent call last):
File "/usr/local/bin/mpremote", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/mpremote/main.py", line 468, in main
pyb.enter_raw_repl()
File "/usr/local/lib/python3.9/site-packages/mpremote/pyboard.py", line 337, in enter_raw_repl
data = self.read_until(1, b"raw REPL; CTRL-B to exit\r\n>")
File "/usr/local/lib/python3.9/site-packages/mpremote/pyboard.py", line 303, in read_until
data = self.serial.read(min_num_bytes)
File "/usr/local/lib/python3.9/site-packages/serial/serialposix.py", line 565, in read
ready, _, _ = select.select([self.fd, self.pipe_abort_read_r], [], [], timeout.time_left())
KeyboardInterrupt
As I read that, it looks like it is trying to wait for a response, but not getting the response it expects.
Any suggestions on how to copy a *.py file to a teensy 4.1 running upython?
Thanks,
Ryan
mpremote connect /dev/tty.usbmodem14401
But I don't know how to copy a python script onto it. If I try
mpremote mount .
it hangs forever. If I do a keyboard interrupt to get out of the infinite hang up, this is the traceback:
^CTraceback (most recent call last):
File "/usr/local/bin/mpremote", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/mpremote/main.py", line 468, in main
pyb.enter_raw_repl()
File "/usr/local/lib/python3.9/site-packages/mpremote/pyboard.py", line 337, in enter_raw_repl
data = self.read_until(1, b"raw REPL; CTRL-B to exit\r\n>")
File "/usr/local/lib/python3.9/site-packages/mpremote/pyboard.py", line 303, in read_until
data = self.serial.read(min_num_bytes)
File "/usr/local/lib/python3.9/site-packages/serial/serialposix.py", line 565, in read
ready, _, _ = select.select([self.fd, self.pipe_abort_read_r], [], [], timeout.time_left())
KeyboardInterrupt
As I read that, it looks like it is trying to wait for a response, but not getting the response it expects.
Any suggestions on how to copy a *.py file to a teensy 4.1 running upython?
Thanks,
Ryan