Do you have any external serial monitor program on USB to the Teensy? If so that needs to be dropped when you compile to upload or the needed communications to the Teensy is blocked from the TeensyLoader and then a button press is required to drop to the bootloader.
The IDE Serial Monitor does this when it is used.
I assume you mean another program that opens the USB device like minicom; I am not running any other apps that open the serial port and I haven't modified the bootloader, this is just a copy of the Blink sketch I'm using to test with. Is there a particular programmer I should have selected? I just left it as the default: "AVRISP mkII", since there was no Teensy-specific option.
Ok. I've done a little more homework on this and it's a little different than what I was expecting. I should also add that I've moved from running the Arduino IDE remotely over the net (Using X11 remote display) to running it on a local system to avoid any weirdness that might cause.
From what I can tell a fresh, untouched Teensy 3.6 shows up as a raw HID device like /dev/usb/hiddev2 and I have made sure the udev rules were installed from the TD download page. The permissions are correct so opening the device as my user ID is ok. One issue seems to be that there's no way to tell the IDE what port to use (It's grayed out, I expect because there is no /dev/ttyACMx device available). There also seems to be some odd TCP behavior which triggers some messages about syn flooding from the kernel:
Oct 1 05:38:20 acebrix kernel: [27618.756793] TCP: request_sock_TCP: Possible SYN flooding on port 3149. Sending cookies. Check SNMP counters.
The IDE prints these messages:
Opening Teensy Loader...
Sketch uses 16,812 bytes (1%) of program storage space. Maximum is 1,048,576 bytes.
Global variables use 2,496 bytes (0%) of dynamic memory, leaving 259,648 bytes for local variables. Maximum is 262,144 bytes.
An error occurred while uploading the sketch
Error reading Teensy Loader status! (tpc)This error should never happen (when using Arduino). Please report this to
paul@pjrc.com, hopefully with enough information to reproduce the problem so it can be understood and fixed!
I'm not clear on whether the kernel messages are also associated with some throttling/blocking behavior and I'll have to look into it further. At any rate it isn't quite a clear-cut as I had hoped. For reference these are the options in the IDE under Tools I have selected:
Board: Teensy 3.6
USB Type: No USB
Port <---- (disabled/grayed out)
CPU Speed: 180 MHz
Programmer: AVRISP mkII
My OS info:
Ubuntu 16.04.1 LTS
Linux acebrix 4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:42:33 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
|Update|
I did some research on what causes the kernel messages and adjusted the kernel values:
net.core.somaxconn (to 2048)
net.ipv4.tcp_max_syn_backlog (to 2048)
This eliminates the messages about syn flooding from the kernel, however the error from TD about TCP problems remains and it doesn't have any effect on the core issue.
|/end update|
Thanks-
Larry