Teensyduino 1.48 Beta #1

Status
Not open for further replies.
Thanks - going to give it a go - it was this line :: PIT_MCR = 0;
I didn't see in post #61 that was letting me know the pieces were not all in one place ...
 
With this PIT code in place it starts up:
Code:
	set_arm_clock(600000000);
	//set_arm_clock(984000000); Ludicrous Speed

[B]	// Undo PIT timer usage by ROM startup
	CCM_CCGR1 |= CCM_CCGR1_PIT(CCM_CCGR_ON);
	PIT_MCR = 0;
	PIT_TCTRL0 = 0;
	PIT_TCTRL1 = 0;
	PIT_TCTRL2 = 0;
	PIT_TCTRL3 = 0;[/B]

Indeed the T4 starts up with uncanny eyes sketch now- but I must need pin and SPI mode adjustments ? as one screen white pulsing under black - the other no signs - but SerMon scrolling data.
 
.
If you get any messages in red, especially any Java exceptions, please report them on this thread.

This was red. Arduino 1.8.10 TD 1.48 B1 on a Jetson Nano Ubuntu 18.04 AARCH64 first compile after install and reboot.
Sketch was the example for XPT2046_Touchscreen. The next compile attempt worked.

Arduino: 1.8.10 (Linux), TD: 1.48-beta1, Board: "Teensy 4.0, Serial, Faster, US English"

Opening Teensy Loader...
Teensy Loader could not find the directory /tmp/arduino_build_278085
Multiple libraries were found for "ILI9341_t3.h"
Used: /home/slo/arduino-1.8.10/hardware/teensy/avr/libraries/ILI9341_t3
Multiple libraries were found for "SPI.h"
Used: /home/slo/arduino-1.8.10/hardware/teensy/avr/libraries/SPI
Multiple libraries were found for "XPT2046_Touchscreen.h"
Used: /home/slo/Arduino/libraries/XPT2046_Touchscreen
Not used: /home/slo/arduino-1.8.10/hardware/teensy/avr/libraries/XPT2046_Touchscreen
quitexit status 1
Error compiling for board Teensy 4.0.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
 
Hi,

does the Teensy 4.0 not support fast (hardware) CRC calculation like the Teensy 3.x?
With Teensy 3.x I was using Frank Boesings FastCRC implementation ( https://github.com/FrankBoesing/FastCRC ) which makes use of the FastCRC libraries for AVR.

When I try to compile my code, it seems to switch to the code for software CRC calculation but this compilation terminates due to a missing file in teensy/avr/libraries/FastCRC. The console output is:
Code:
Arduino: 1.8.9 (Windows 10), TD: 1.48-beta1, Board: "Teensy 4.0, Serial, Faster, US English"

...

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\FastCRC\FastCRCsw.cpp:38:0:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\FastCRC\FastCRC_tables.h:38:23: fatal error: pgmspace.h: No such file or directory

compilation terminated.
 
Hi,

does the Teensy 4.0 not support fast (hardware) CRC calculation like the Teensy 3.x?
With Teensy 3.x I was using Frank Boesings FastCRC implementation ( https://github.com/FrankBoesing/FastCRC ) which makes use of the FastCRC libraries for AVR.

When I try to compile my code, it seems to switch to the code for software CRC calculation but this compilation terminates due to a missing file in teensy/avr/libraries/FastCRC. The console output is:

Looks like Teensyduino doesn't have the latest FastCRC. Fetch the latest from https://github.com/FrankBoesing/FastCRC
or change FastCRC_tables.h to read
#if defined(__AVR__ ) || defined(__IMXRT1052__) || defined(__IMXRT1062__)

T4 does have hardware CRC, but it is a fixed polynomial, not as fancy as T3*. FastCRC doesn't support the T4 hardware CRC so will use table-driven CRCs. see
https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=197722&viewfull=1#post197722
 
Looks like Teensyduino doesn't have the latest FastCRC. Fetch the latest from https://github.com/FrankBoesing/FastCRC
or change FastCRC_tables.h to read
#if defined(__AVR__ ) || defined(__IMXRT1052__) || defined(__IMXRT1062__)

T4 does have hardware CRC, but it is a fixed polynomial, not as fancy as T3*. FastCRC doesn't support the T4 hardware CRC so will use table-driven CRCs. see
https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=197722&viewfull=1#post197722

Thank you Manitou. After replacing the FastCRC library in Teensyduino with the latest version from FrankBoesing, the code compiles.

But when the library gets loaded and initialized, it freezes my T4. So even the table driven software CRCs seems not usable at the moment.
 
Thank you Manitou. After replacing the FastCRC library in Teensyduino with the latest version from FrankBoesing, the code compiles.

But when the library gets loaded and initialized, it freezes my T4. So even the table driven software CRCs seems not usable at the moment.

Sigh, that must be the 1.48-beta1 PIT initialization problem discussed earlier in this thread. Try commenting out PIT_MCR = 0 in hardware/teensy/avr/cores/teensy4/startup.c
 
Sigh, that must be the 1.48-beta1 PIT initialization problem discussed earlier in this thread. Try commenting out PIT_MCR = 0 in hardware/teensy/avr/cores/teensy4/startup.c

Thanks. After commenting out PIT_MCR = 0 in startup.c it does not freeze anymore.
Which side effects may it cause, when it is not set to 0?
 
Another strangeness with 1.48-beta1. Exhibited on 1.8.10 on ubuntu 32-bit and 64-bit running FastCRC benchmark example. Sometimes when running the sketch the last few lines are not printed ?? may happen after a rebuild, or after pushing program button, or after unplug/plug USB ???? Adding while(!Serial) after Serial.begin() seems to cure it.

can anyone else reproduce the problem??
 
Another strangeness with 1.48-beta1. Exhibited on 1.8.10 on ubuntu 32-bit and 64-bit running FastCRC benchmark example. Sometimes when running the sketch the last few lines are not printed ?? may happen after a rebuild, or after pushing program button, or after unplug/plug USB ???? Adding while(!Serial) after Serial.begin() seems to cure it.

can anyone else reproduce the problem??

I also had this effect one time (last three lines missing) - but with Teensy 3.2 connected.

A FastCRC benchmark comparison between Teensy 3.2 (with hardware CRC) and Teensy 4.0 (table based CRC) is quite interesting:

Teensy 3.2:

Code:
CRC Benchmark
F_CPU: 96 MHz, length: 57344 Bytes.

Maxim (iButton) FastCRC:	Value:0xD2, Time: 1052 us (436.08 mbs)
Maxim (iButton) builtin:	Value:0xD2, Time: 43718 us (10.49 mbs)
MODBUS FastCRC:	Value:0x25F1, Time: 1053 us (435.66 mbs)
MODBUS builtin: 	Value:0x25F1, Time: 47308 us (9.70 mbs)
XMODEM FastCRC:	Value:0xB217, Time: 1051 us (436.49 mbs)
XMODEM builtin: 	Value:0xB217, Time: 47311 us (9.70 mbs)
MCRF4XX FastCRC:	Value:0x4BE4, Time: 1049 us (437.32 mbs)
MCRF4XX builtin:	Value:0x4BE4, Time: 8392 us (54.67 mbs)
KERMIT FastCRC:	Value:0x9137, Time: 1050 us (436.91 mbs)
Ethernet FastCRC:	Value:0x29C6653B, Time: 1052 us (436.08 mbs)


Teensy 4.0 (with buffersize set to the same size as for T3.2 for better comparison and uncommented PIT_MCR = 0 in the startup.c):

Code:
CRC Benchmark
F_CPU: 600 MHz, length: 57344 Bytes.

Maxim (iButton) FastCRC:	Value:0xD2, Time: 674 us (680.64 mbs)
Maxim (iButton) builtin:	Value:0xD2, Time: 4111 us (111.59 mbs)
MODBUS FastCRC:	Value:0x25F1, Time: 487 us (942.00 mbs)
MODBUS builtin: 	Value:0x25F1, Time: 5791 us (79.22 mbs)
XMODEM FastCRC:	Value:0xB217, Time: 527 us (870.50 mbs)
XMODEM builtin: 	Value:0xB217, Time: 6507 us (70.50 mbs)
MCRF4XX FastCRC:	Value:0x4BE4, Time: 463 us (990.83 mbs)
MCRF4XX builtin:	Value:0x4BE4, Time: 957 us (479.36 mbs)
KERMIT FastCRC:	Value:0x9137, Time: 300 us (1529.17 mbs)
Ethernet FastCRC:	Value:0x29C6653B, Time: 727 us (631.02 mbs)

But I recognized another problem:

The Teensy 4.0 is getting VERY hot and seems to shutdown after some time (serial monitor switches into "disconnected"). The benchmark only runs once in the setup() - is the empty loop() of the benchmark a problem for T4?
The Teensy 3.2 stays cool.
 
The Teensy 4.0 is getting VERY hot and seems to shutdown after some time (serial monitor switches into "disconnected"). The benchmark only runs once in the setup() - is the empty loop() of the benchmark a problem for T4?
The Teensy 3.2 stays cool.

That shouldn't happen, can you print out chip temperature float tmpc = tempmonGetTemp() in a loop ...
 
Thank you Manitou. After replacing the FastCRC library in Teensyduino with the latest version from FrankBoesing, the code compiles.

But when the library gets loaded and initialized, it freezes my T4. So even the table driven software CRCs seems not usable at the moment.

Have made the PIT change locally ...

Not sure which example? I pulled the github fastcrc and ran FastCRC_Benchmark and it works. Reduced delay in setup to 50ms

Then made a function of the benchmark and called from setup and then loop() each 1.5 secs. It runs once and then repeatedly.
 
I also had this effect one time (last three lines missing) - but with Teensy 3.2 connected.

I can confirm missing FastCRC lines problem occurred with T3.2 with 1.48-beta1. Also seems to be fixed with while(!Serial). I turned on LED at end of benchmark tests to confirm sketch wasn't hanging, and LED is on at end, even though last few lines may not be printed. :confused:
 
Thanks. After commenting out PIT_MCR = 0 in startup.c it does not freeze anymore.
Which side effects may it cause, when it is not set to 0?

you need to read the earlier posts in this thread to learn more about PIT initialization.
 
Another strangeness with 1.48-beta1. Exhibited on 1.8.10 on ubuntu 32-bit and 64-bit running FastCRC benchmark example. Sometimes when running the sketch the last few lines are not printed ?? may happen after a rebuild, or after pushing program button, or after unplug/plug USB ???? Adding while(!Serial) after Serial.begin() seems to cure it.

can anyone else reproduce the problem??

I do see something of this - it is buffering of some initial USB print before Serial is online - and the test is complete before Serial is online and the last print doesn't get buffered.

IIRC some beta testing - doing that early print without Serial online delays the arrival of Serial - and buffereing is selective and limited.

Did a quick mod and it indeed gets to loop() before Serial prints at the end - the @437ms was called last as setup() ended and the test was complete.

This is typical behavior when doing .print before Serial is online. Test here is on T4

Code:
CRC Benchmark
F_CPU: 600 MHz, length: 1024 Bytes.

Maxim (iButton) FastCRC:	Value:0x78, Time: 17 us (481.88 mbs)
Maxim (iButton) builtin:	Value:0x78, Time: 74 us (110.70 mbs)
MODBUS FastCRC:	Value:0x2487, Time: 160 us (51.20 mbs)
MODBUS builtin: 	Value:0x2487, Time: 105 us (78.02 mbs)
XMODEM FastCRC:	Value:0x190E, Time: 192 us (42.67 mbs)
XMODEM builtin: 	Value:0x190E, Time: 121 us (67.70 mbs)
MCRF4XX FastCRC:	Value:0xF5F5, Time: 191 us (42.89 mbs)
MCRF4XX builtin:	Value:0xF5F5, Time: 17 us (481.88 mbs)
KERMIT FastCRC:	Value:0x318, Time: 5 us (1638.40 mbs)
[B]IN LOOP() Serial online @741
prior Serial NOT online @437[/B]
 
This is typical behavior when doing .print before Serial is online. Test here is on T4

Ah, a feature. I'm familiar with losing the first few lines when not using while(!Serial), but i don't think i've seen it print the first few lines and then lose later ones. whatever.

thanks
 
I also had this effect one time (last three lines missing) - but with Teensy 3.2 connected.

A FastCRC benchmark comparison between Teensy 3.2 (with hardware CRC) and Teensy 4.0 (table based CRC) is quite interesting:

Teensy 3.2:

Code:
CRC Benchmark
F_CPU: 96 MHz, length: 57344 Bytes.

Maxim (iButton) FastCRC:	Value:0xD2, Time: 1052 us (436.08 mbs)
Maxim (iButton) builtin:	Value:0xD2, Time: 43718 us (10.49 mbs)
MODBUS FastCRC:	Value:0x25F1, Time: 1053 us (435.66 mbs)
MODBUS builtin: 	Value:0x25F1, Time: 47308 us (9.70 mbs)
XMODEM FastCRC:	Value:0xB217, Time: 1051 us (436.49 mbs)
XMODEM builtin: 	Value:0xB217, Time: 47311 us (9.70 mbs)
MCRF4XX FastCRC:	Value:0x4BE4, Time: 1049 us (437.32 mbs)
MCRF4XX builtin:	Value:0x4BE4, Time: 8392 us (54.67 mbs)
KERMIT FastCRC:	Value:0x9137, Time: 1050 us (436.91 mbs)
Ethernet FastCRC:	Value:0x29C6653B, Time: 1052 us (436.08 mbs)


Teensy 4.0 (with buffersize set to the same size as for T3.2 for better comparison and uncommented PIT_MCR = 0 in the startup.c):

Code:
CRC Benchmark
F_CPU: 600 MHz, length: 57344 Bytes.

Maxim (iButton) FastCRC:	Value:0xD2, Time: 674 us (680.64 mbs)
Maxim (iButton) builtin:	Value:0xD2, Time: 4111 us (111.59 mbs)
MODBUS FastCRC:	Value:0x25F1, Time: 487 us (942.00 mbs)
MODBUS builtin: 	Value:0x25F1, Time: 5791 us (79.22 mbs)
XMODEM FastCRC:	Value:0xB217, Time: 527 us (870.50 mbs)
XMODEM builtin: 	Value:0xB217, Time: 6507 us (70.50 mbs)
MCRF4XX FastCRC:	Value:0x4BE4, Time: 463 us (990.83 mbs)
MCRF4XX builtin:	Value:0x4BE4, Time: 957 us (479.36 mbs)
KERMIT FastCRC:	Value:0x9137, Time: 300 us (1529.17 mbs)
Ethernet FastCRC:	Value:0x29C6653B, Time: 727 us (631.02 mbs)

But I recognized another problem:

The Teensy 4.0 is getting VERY hot and seems to shutdown after some time (serial monitor switches into "disconnected"). The benchmark only runs once in the setup() - is the empty loop() of the benchmark a problem for T4?
The Teensy 3.2 stays cool.

Just ran the benchmark on my T4 and its actually cooler to the touch than most of the sketches I test. The only way you are going to temperature shutdown is if the internal temperature of the T4 goes over 90degC. As @manitou said can you print out the temperatures during the test.
 
That shouldn't happen, can you print out chip temperature float tmpc = tempmonGetTemp() in a loop ...


I replaced the empty loop() of the benchmark with the following code to get the temperature printed once a second:

Code:
long nextTime = millis() + 1000;

void loop() {
  if (millis() > nextTime) {
     float tmpc = tempmonGetTemp();
     Serial.println("Temp.: " + String(tmpc));
     nextTime = millis() + 1000;
  }
}

It goes up to about 53°C (about 127°F).

EDIT: Same with "Blink.ino", when I just add printing the temperature in the loop. Room temperature is about 23°C (about 73°F).
Is there something wrong with my T4 or do you get the same temperatures?
 
Last edited:
My room temp is about 70F. Using a call to p#94 loop() code::

>> One T4 on a breakout is now hitting 50.45C and 51.09C seems near the peak.

>>Another bare board started at 38.7C - and now is into 53.79C

With your ambient 3F warmer it seems that seems consistent/normal.

The external won't measure that hot - that is internal where the localized sensor is placed.

Thermal shutdown PANIC is at 90°C.
 
Strange behaviour with Teensy 4.0 1.48-beta1 on 1.8.10 MacOS 10.13. I can't get the Adafruit SSD1306 (1.3.0) library to work unless I set optimise to 'Debug' or 'Smallest Code'. This is using the included demo program ssd1306_128x64_i2c.

Any other setting hangs the usb serial console during initialisation of the Adafruit_SSD1306 class, and no display output occurs.

Any ideas? Thought originally it was Wire/i2c related, but the same noname i2c oled display works just fine with u8g2.

Any suggestions on how to debug this?
 
Yeah. this is probably related to an issued discussed here: https://forum.pjrc.com/threads/57609-Teensyduino-1-48-Beta-1?p=216441&viewfull=1#post216441. A PR has been issued but you can fix it yourself by moving this block of code:
Code:
// Undo PIT timer usage by ROM startup
	CCM_CCGR1 |= CCM_CCGR1_PIT(CCM_CCGR_ON);
	PIT_MCR = 0;
	PIT_TCTRL0 = 0;
	PIT_TCTRL1 = 0;
	PIT_TCTRL2 = 0;
	PIT_TCTRL3 = 0;
to after this
Code:
set_arm_clock(600000000);
	//set_arm_clock(984000000); Ludicrous Speed
in startup.c in the teensy4 core files.
 
Same machine as prior post, Jetson Nano, reveals java exceptions when run from terminal.
Its long, hope it helps.
First compile failed because default arduino board was selected.
Not shown: at second slo@sloNano:~$ arduino I opened gui and selected Teensy 4

Code:
slo@sloNano:~$ arduino

Command 'arduino' not found, but can be installed with:

sudo apt install arduino

slo@sloNano:~$ export PATH="$PATH:/home/slo/bin/arduino-1.8.10"
slo@sloNano:~$ source ~/.profile
slo@sloNano:~$ arduino
Picked up JAVA_TOOL_OPTIONS: 
Set log4j store directory /home/slo/.arduino15
[JmDNS(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).Timer] WARN javax.jmdns.impl.tasks.resolver.DNSResolverTask - ServiceResolver(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).run() exception 
java.io.IOException: Cannot assign requested address (sendto failed)
	at java.net.PlainDatagramSocketImpl.send(Native Method)
	at java.net.DatagramSocket.send(DatagramSocket.java:693)
	at javax.jmdns.impl.JmDNSImpl.send(JmDNSImpl.java:1618)
	at javax.jmdns.impl.tasks.resolver.DNSResolverTask.run(DNSResolverTask.java:73)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
[fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local..recover()] WARN javax.jmdns.impl.JmDNSImpl - RECOVERING
[JmDNS(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).State.Timer] WARN javax.jmdns.impl.tasks.state.DNSStateTask - Canceler(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).run() exception 
java.io.IOException: Cannot assign requested address (sendto failed)
	at java.net.PlainDatagramSocketImpl.send(Native Method)
	at java.net.DatagramSocket.send(DatagramSocket.java:693)
	at javax.jmdns.impl.JmDNSImpl.send(JmDNSImpl.java:1618)
	at javax.jmdns.impl.tasks.state.DNSStateTask.run(DNSStateTask.java:131)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
[fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local..recover()] WARN javax.jmdns.impl.DNSStatefulObject$DefaultImplementation - Wait for canceled timed out: DNS: fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local. [fe80:0:0:0:5de6:8665:7fcd:96fe%wlan0/fe80:0:0:0:5de6:8665:7fcd:96fe%wlan0] state: canceling 1 task: null
[fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local..recover()] WARN javax.jmdns.impl.JmDNSImpl - fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local..recover() Could not recover we are Down!
2019-09-29T07:53:42.383Z INFO c.a.c.p.ContributionInstaller:305 [Timer-0] Start download and signature check of=[https://downloads.arduino.cc/packages/package_index.json]
2019-09-29T07:53:42.444Z INFO c.a.u.n.FileDownloaderCache:92 [Timer-0] Cache folder /home/slo/.arduino15/cache
2019-09-29T07:53:42.609Z INFO c.a.u.n.FileDownloaderCache:112 [Timer-0] Number of file already in the cache 4
2019-09-29T07:53:42.708Z INFO c.a.u.n.FileDownloaderCache:149 [Timer-0] Get file cached is expire false, exist true, info FileCached{eTag='e5333ff208bec8f067589a99b43a1285', lastETag='null', remoteURL='https://downloads.arduino.cc/packages/package_index.json', localPath='/home/slo/.arduino15/cache/downloads.arduino.cc/packages/package_index.json', md5='MD5:e5333ff208bec8f067589a99b43a1285', createdAt='2019-09-29T02:40:21.973', cacheControl=CacheControl{maxAge=3600, isMustRevalidate=false, isNoCache=false, isNoStore=false}} 
2019-09-29T07:53:42.734Z INFO c.a.u.n.FileDownloader:210 [Timer-0] No need to download using cached file: FileCached{eTag='e5333ff208bec8f067589a99b43a1285', lastETag='null', remoteURL='https://downloads.arduino.cc/packages/package_index.json', localPath='/home/slo/.arduino15/cache/downloads.arduino.cc/packages/package_index.json', md5='MD5:e5333ff208bec8f067589a99b43a1285', createdAt='2019-09-29T02:40:21.973', cacheControl=CacheControl{maxAge=3600, isMustRevalidate=false, isNoCache=false, isNoStore=false}}
2019-09-29T07:53:42.737Z INFO c.a.u.n.FileDownloader:174 [Timer-0] The file will be taken from the cache Optional[/home/slo/.arduino15/cache/downloads.arduino.cc/packages/package_index.json]
2019-09-29T07:53:42.742Z INFO c.a.u.n.FileDownloaderCache:149 [Timer-0] Get file cached is expire false, exist true, info FileCached{eTag='330f326540998b47fa4d733ed5f6eef9', lastETag='null', remoteURL='https://downloads.arduino.cc/packages/package_index.json.sig', localPath='/home/slo/.arduino15/cache/downloads.arduino.cc/packages/package_index.json.sig', md5='MD5:330f326540998b47fa4d733ed5f6eef9', createdAt='2019-09-29T02:40:22.49', cacheControl=CacheControl{maxAge=3600, isMustRevalidate=false, isNoCache=false, isNoStore=false}} 
2019-09-29T07:53:42.748Z INFO c.a.u.n.FileDownloader:210 [Timer-0] No need to download using cached file: FileCached{eTag='330f326540998b47fa4d733ed5f6eef9', lastETag='null', remoteURL='https://downloads.arduino.cc/packages/package_index.json.sig', localPath='/home/slo/.arduino15/cache/downloads.arduino.cc/packages/package_index.json.sig', md5='MD5:330f326540998b47fa4d733ed5f6eef9', createdAt='2019-09-29T02:40:22.49', cacheControl=CacheControl{maxAge=3600, isMustRevalidate=false, isNoCache=false, isNoStore=false}}
2019-09-29T07:53:42.750Z INFO c.a.u.n.FileDownloader:174 [Timer-0] The file will be taken from the cache Optional[/home/slo/.arduino15/cache/downloads.arduino.cc/packages/package_index.json.sig]
2019-09-29T07:53:42.774Z INFO c.a.c.DownloadableContributionsDownloader:222 [Timer-0] Signature verified. url=https://downloads.arduino.cc/packages/package_index.json.sig, signature url=https://downloads.arduino.cc/packages/package_index.json.sig, file to verify=/tmp/package_index.json8311399446740338176.tmp, signature file=/tmp/package_index.json.sig4580471798081923638.tmp
2019-09-29T07:53:42.779Z INFO c.a.c.p.ContributionInstaller:314 [Timer-0] Downloaded package index URL=[https://downloads.arduino.cc/packages/package_index.json]
2019-09-29T07:53:42.787Z INFO c.a.u.n.FileDownloaderCache:149 [Timer-0] Get file cached is expire false, exist true, info FileCached{eTag='6cbd521329168ca1a68348286a8c1bb5', lastETag='null', remoteURL='https://downloads.arduino.cc/libraries/library_index.json.gz', localPath='/home/slo/.arduino15/cache/downloads.arduino.cc/libraries/library_index.json.gz', md5='MD5:6cbd521329168ca1a68348286a8c1bb5', createdAt='2019-09-29T02:40:24.296', cacheControl=CacheControl{maxAge=14400, isMustRevalidate=false, isNoCache=false, isNoStore=false}} 
2019-09-29T07:53:42.809Z INFO c.a.u.n.FileDownloader:210 [Timer-0] No need to download using cached file: FileCached{eTag='6cbd521329168ca1a68348286a8c1bb5', lastETag='null', remoteURL='https://downloads.arduino.cc/libraries/library_index.json.gz', localPath='/home/slo/.arduino15/cache/downloads.arduino.cc/libraries/library_index.json.gz', md5='MD5:6cbd521329168ca1a68348286a8c1bb5', createdAt='2019-09-29T02:40:24.296', cacheControl=CacheControl{maxAge=14400, isMustRevalidate=false, isNoCache=false, isNoStore=false}}
2019-09-29T07:53:42.811Z INFO c.a.u.n.FileDownloader:174 [Timer-0] The file will be taken from the cache Optional[/home/slo/.arduino15/cache/downloads.arduino.cc/libraries/library_index.json.gz]
2019-09-29T07:53:42.932Z INFO c.a.u.n.FileDownloaderCache:149 [Timer-0] Get file cached is expire false, exist true, info FileCached{eTag='3e68f102a17273a8c3bab174740c9d9d', lastETag='null', remoteURL='https://downloads.arduino.cc/libraries/library_index.json.sig', localPath='/home/slo/.arduino15/cache/downloads.arduino.cc/libraries/library_index.json.sig', md5='MD5:3e68f102a17273a8c3bab174740c9d9d', createdAt='2019-09-29T02:40:25.449', cacheControl=CacheControl{maxAge=14400, isMustRevalidate=false, isNoCache=false, isNoStore=false}} 
2019-09-29T07:53:42.944Z INFO c.a.u.n.FileDownloader:210 [Timer-0] No need to download using cached file: FileCached{eTag='3e68f102a17273a8c3bab174740c9d9d', lastETag='null', remoteURL='https://downloads.arduino.cc/libraries/library_index.json.sig', localPath='/home/slo/.arduino15/cache/downloads.arduino.cc/libraries/library_index.json.sig', md5='MD5:3e68f102a17273a8c3bab174740c9d9d', createdAt='2019-09-29T02:40:25.449', cacheControl=CacheControl{maxAge=14400, isMustRevalidate=false, isNoCache=false, isNoStore=false}}
2019-09-29T07:53:42.947Z INFO c.a.u.n.FileDownloader:174 [Timer-0] The file will be taken from the cache Optional[/home/slo/.arduino15/cache/downloads.arduino.cc/libraries/library_index.json.sig]
2019-09-29T07:53:43.155Z INFO c.a.c.DownloadableContributionsDownloader:222 [Timer-0] Signature verified. url=https://downloads.arduino.cc/libraries/library_index.json.sig, signature url=https://downloads.arduino.cc/libraries/library_index.json.sig, file to verify=/tmp/library_index.json6198172837891228961.tmp, signature file=/tmp/library_index.json.sig7258483909988041405.tmp
slo@sloNano:~$ arduino --verify '/home/slo/Arduino/touchscreemTest/touchscreemTest.ino' 
Picked up JAVA_TOOL_OPTIONS: 
Set log4j store directory /home/slo/.arduino15
Loading configuration...
Initializing packages...
Preparing boards...
Verifying...
[JmDNS(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).Timer] WARN javax.jmdns.impl.tasks.resolver.DNSResolverTask - ServiceResolver(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).run() exception 
java.io.IOException: Cannot assign requested address (sendto failed)
	at java.net.PlainDatagramSocketImpl.send(Native Method)
	at java.net.DatagramSocket.send(DatagramSocket.java:693)
	at javax.jmdns.impl.JmDNSImpl.send(JmDNSImpl.java:1618)
	at javax.jmdns.impl.tasks.resolver.DNSResolverTask.run(DNSResolverTask.java:73)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
[fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local..recover()] WARN javax.jmdns.impl.JmDNSImpl - RECOVERING
[JmDNS(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).State.Timer] WARN javax.jmdns.impl.tasks.state.DNSStateTask - Canceler(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).run() exception 
java.io.IOException: Cannot assign requested address (sendto failed)
	at java.net.PlainDatagramSocketImpl.send(Native Method)
	at java.net.DatagramSocket.send(DatagramSocket.java:693)
	at javax.jmdns.impl.JmDNSImpl.send(JmDNSImpl.java:1618)
	at javax.jmdns.impl.tasks.state.DNSStateTask.run(DNSStateTask.java:131)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
touchscreemTest:1:10: error: ILI9341_t3.h: No such file or directory
 #include <ILI9341_t3.h>
          ^~~~~~~~~~~~~~
compilation terminated.
exit status 1
java.io.IOException: Stream closed
	at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:336)
	at com.fasterxml.jackson.core.json.ByteSourceJsonBootstrapper.ensureLoaded(ByteSourceJsonBootstrapper.java:522)
	at com.fasterxml.jackson.core.json.ByteSourceJsonBootstrapper.detectEncoding(ByteSourceJsonBootstrapper.java:150)
	at com.fasterxml.jackson.core.json.ByteSourceJsonBootstrapper.constructParser(ByteSourceJsonBootstrapper.java:246)
	at com.fasterxml.jackson.core.JsonFactory._createParser(JsonFactory.java:1315)
	at com.fasterxml.jackson.core.JsonFactory.createParser(JsonFactory.java:820)
	at cc.arduino.packages.discoverers.PluggableDiscovery.run(PluggableDiscovery.java:80)
	at java.lang.Thread.run(Thread.java:748)
slo@sloNano:~$ arduino --verify touchscreemTest.ino
Picked up JAVA_TOOL_OPTIONS: 
Set log4j store directory /home/slo/.arduino15
Loading configuration...
Initializing packages...
Preparing boards...
[JmDNS(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).Timer] WARN javax.jmdns.impl.tasks.resolver.DNSResolverTask - ServiceResolver(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).run() exception 
java.io.IOException: Cannot assign requested address (sendto failed)
	at java.net.PlainDatagramSocketImpl.send(Native Method)
	at java.net.DatagramSocket.send(DatagramSocket.java:693)
	at javax.jmdns.impl.JmDNSImpl.send(JmDNSImpl.java:1618)
	at javax.jmdns.impl.tasks.resolver.DNSResolverTask.run(DNSResolverTask.java:73)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
[fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local..recover()] WARN javax.jmdns.impl.JmDNSImpl - RECOVERING
[JmDNS(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).State.Timer] WARN javax.jmdns.impl.tasks.state.DNSStateTask - Canceler(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).run() exception 
java.io.IOException: Cannot assign requested address (sendto failed)
	at java.net.PlainDatagramSocketImpl.send(Native Method)
	at java.net.DatagramSocket.send(DatagramSocket.java:693)
	at javax.jmdns.impl.JmDNSImpl.send(JmDNSImpl.java:1618)
	at javax.jmdns.impl.tasks.state.DNSStateTask.run(DNSStateTask.java:131)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
Verifying...
java.io.IOException: No valid code files found
	at processing.app.Sketch.listSketchFiles(Sketch.java:117)
	at processing.app.Sketch.<init>(Sketch.java:54)
	at processing.app.Base.<init>(Base.java:415)
	at processing.app.Base.main(Base.java:150)
slo@sloNano:~$ arduino --verify touchscreemTest
Picked up JAVA_TOOL_OPTIONS: 
Set log4j store directory /home/slo/.arduino15
Loading configuration...
Initializing packages...
Preparing boards...
[JmDNS(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).Timer] WARN javax.jmdns.impl.tasks.resolver.DNSResolverTask - ServiceResolver(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).run() exception 
java.io.IOException: Cannot assign requested address (sendto failed)
	at java.net.PlainDatagramSocketImpl.send(Native Method)
	at java.net.DatagramSocket.send(DatagramSocket.java:693)
	at javax.jmdns.impl.JmDNSImpl.send(JmDNSImpl.java:1618)
	at javax.jmdns.impl.tasks.resolver.DNSResolverTask.run(DNSResolverTask.java:73)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
[fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local..recover()] WARN javax.jmdns.impl.JmDNSImpl - RECOVERING
[JmDNS(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).State.Timer] WARN javax.jmdns.impl.tasks.state.DNSStateTask - Canceler(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).run() exception 
java.io.IOException: Cannot assign requested address (sendto failed)
	at java.net.PlainDatagramSocketImpl.send(Native Method)
	at java.net.DatagramSocket.send(DatagramSocket.java:693)
	at javax.jmdns.impl.JmDNSImpl.send(JmDNSImpl.java:1618)
	at javax.jmdns.impl.tasks.state.DNSStateTask.run(DNSStateTask.java:131)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
Verifying...
java.io.IOException: No valid code files found
	at processing.app.Sketch.listSketchFiles(Sketch.java:117)
	at processing.app.Sketch.<init>(Sketch.java:54)
	at processing.app.Base.<init>(Base.java:415)
	at processing.app.Base.main(Base.java:150)
slo@sloNano:~$ arduino
Picked up JAVA_TOOL_OPTIONS: 
Set log4j store directory /home/slo/.arduino15
[JmDNS(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).Timer] WARN javax.jmdns.impl.tasks.resolver.DNSResolverTask - ServiceResolver(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).run() exception 
java.io.IOException: Cannot assign requested address (sendto failed)
	at java.net.PlainDatagramSocketImpl.send(Native Method)
	at java.net.DatagramSocket.send(DatagramSocket.java:693)
	at javax.jmdns.impl.JmDNSImpl.send(JmDNSImpl.java:1618)
	at javax.jmdns.impl.tasks.resolver.DNSResolverTask.run(DNSResolverTask.java:73)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
[fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local..recover()] WARN javax.jmdns.impl.JmDNSImpl - RECOVERING
[JmDNS(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).State.Timer] WARN javax.jmdns.impl.tasks.state.DNSStateTask - Canceler(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).run() exception 
java.io.IOException: Cannot assign requested address (sendto failed)
	at java.net.PlainDatagramSocketImpl.send(Native Method)
	at java.net.DatagramSocket.send(DatagramSocket.java:693)
	at javax.jmdns.impl.JmDNSImpl.send(JmDNSImpl.java:1618)
	at javax.jmdns.impl.tasks.state.DNSStateTask.run(DNSStateTask.java:131)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
[fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local..recover()] WARN javax.jmdns.impl.DNSStatefulObject$DefaultImplementation - Wait for canceled timed out: DNS: fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local. [fe80:0:0:0:5de6:8665:7fcd:96fe%wlan0/fe80:0:0:0:5de6:8665:7fcd:96fe%wlan0] state: canceling 1 task: null
[fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local..recover()] WARN javax.jmdns.impl.JmDNSImpl - fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local..recover() Could not recover we are Down!
slo@sloNano:~$ arduino --verify '/home/slo/Arduino/touchscreemTest/touchscreemTest.ino' 
Picked up JAVA_TOOL_OPTIONS: 
Set log4j store directory /home/slo/.arduino15
Loading configuration...
Initializing packages...
Preparing boards...
[JmDNS(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).Timer] WARN javax.jmdns.impl.tasks.resolver.DNSResolverTask - ServiceResolver(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).run() exception 
java.io.IOException: Cannot assign requested address (sendto failed)
	at java.net.PlainDatagramSocketImpl.send(Native Method)
	at java.net.DatagramSocket.send(DatagramSocket.java:693)
	at javax.jmdns.impl.JmDNSImpl.send(JmDNSImpl.java:1618)
	at javax.jmdns.impl.tasks.resolver.DNSResolverTask.run(DNSResolverTask.java:73)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
[fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local..recover()] WARN javax.jmdns.impl.JmDNSImpl - RECOVERING
[JmDNS(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).State.Timer] WARN javax.jmdns.impl.tasks.state.DNSStateTask - Canceler(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).run() exception 
java.io.IOException: Cannot assign requested address (sendto failed)
	at java.net.PlainDatagramSocketImpl.send(Native Method)
	at java.net.DatagramSocket.send(DatagramSocket.java:693)
	at javax.jmdns.impl.JmDNSImpl.send(JmDNSImpl.java:1618)
	at javax.jmdns.impl.tasks.state.DNSStateTask.run(DNSStateTask.java:131)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
Verifying...
[fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local..recover()] WARN javax.jmdns.impl.DNSStatefulObject$DefaultImplementation - Wait for canceled timed out: DNS: fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local. [fe80:0:0:0:5de6:8665:7fcd:96fe%wlan0/fe80:0:0:0:5de6:8665:7fcd:96fe%wlan0] state: canceling 1 task: null
[fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local..recover()] WARN javax.jmdns.impl.JmDNSImpl - fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local..recover() Could not recover we are Down!
Opening Teensy Loader...
Sketch uses 59488 bytes (2%) of program storage space. Maximum is 2031616 bytes.
Global variables use 66096 bytes (6%) of dynamic memory, leaving 982480 bytes for local variables. Maximum is 1048576 bytes.
slo@sloNano:~$ arduino --get-pref
Picked up JAVA_TOOL_OPTIONS: 
Set log4j store directory /home/slo/.arduino15
Loading configuration...
Initializing packages...
Preparing boards...
[JmDNS(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).Timer] WARN javax.jmdns.impl.tasks.resolver.DNSResolverTask - ServiceResolver(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).run() exception 
java.io.IOException: Cannot assign requested address (sendto failed)
	at java.net.PlainDatagramSocketImpl.send(Native Method)
	at java.net.DatagramSocket.send(DatagramSocket.java:693)
	at javax.jmdns.impl.JmDNSImpl.send(JmDNSImpl.java:1618)
	at javax.jmdns.impl.tasks.resolver.DNSResolverTask.run(DNSResolverTask.java:73)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
[fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local..recover()] WARN javax.jmdns.impl.JmDNSImpl - RECOVERING
[JmDNS(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).State.Timer] WARN javax.jmdns.impl.tasks.state.DNSStateTask - Canceler(fe80-0-0-0-5de6-8665-7fcd-96fe-wlan0.local.).run() exception 
java.io.IOException: Cannot assign requested address (sendto failed)
	at java.net.PlainDatagramSocketImpl.send(Native Method)
	at java.net.DatagramSocket.send(DatagramSocket.java:693)
	at javax.jmdns.impl.JmDNSImpl.send(JmDNSImpl.java:1618)
	at javax.jmdns.impl.tasks.state.DNSStateTask.run(DNSStateTask.java:131)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
#PREFDUMP#
last.sketch.count=0
update.check=true
platform.auto_file_type_associations=true
gui.scale=auto
editor.window.width.default=500
editor.window.height.default=600
editor.window.width.min=400
editor.window.height.min=290
editor.code_folding=true
editor.font=Monospaced,plain,12
editor.antialias=true
editor.external=false
editor.caret.blink=true
editor.invalid=false
editor.linenumbers=true
editor.keys.alternative_cut_copy_paste=true
editor.keys.shift_backspace_is_delete=true
editor.keys.home_and_end_beginning_end_of_doc=false
console=true
console.output.file=stdout.txt
console.error.file=stderr.txt
console.lines=4
console.auto_clear=true
console.length=500
editor.tabs.expand=true
editor.tabs.size=2
editor.indent=true
editor.auto_close_braces=true
editor.divider.size=0
editor.save_on_verify=true
run.options=
run.options.memory=false
run.options.memory.initial=64
run.options.memory.maximum=256
run.display=1
export.application.platform=true
export.application.fullscreen=false
export.application.stop=true
export.applet.separate_jar_files=false
export.delete_target_folder=true
preproc.save_build_files=false
preproc.color_datatype=true
preproc.web_colors=true
preproc.enhanced_casting=true
preproc.substitute_floats=true
preproc.substitute_unicode=true
preproc.output_parse_tree=false
preproc.imports.list=java.applet.*,java.awt.Dimension,java.awt.Frame,java.awt.event.MouseEvent,java.awt.event.KeyEvent,java.awt.event.FocusEvent,java.awt.Image,java.io.*,java.net.*,java.text.*,java.util.*,java.util.zip.*,java.util.regex.*
browser=mozilla
run.present.bgcolor=#666666
run.present.stop.color=#cccccc
run.present.exclusive=false
target_package=teensy
target_platform=avr
board=teensy40
software=ARDUINO
build.warn_data_percentage=75
programmer=arduino:avrispmkii
upload.using=bootloader
upload.verify=true
serial.databits=8
serial.stopbits=1
serial.parity=N
serial.debug_rate=9600
serial.line_ending=1
editor.languages.current=
preferences.readonly=false
runtime.ide.path=/home/slo/bin/arduino-1.8.10
runtime.ide.version=10810
boardsmanager.additional.urls=
build.verbose=true
cache.enable=true
compiler.cache_core=true
compiler.warning_level=none
custom_keys=teensy40_en-us
custom_opt=teensy40_o2std
custom_usb=teensy40_serial
editor.update_extension=true
ide.accessible=false
last.ide.1.8.10.daterun=1569744468
last.ide.1.8.10.hardwarepath=/home/slo/bin/arduino-1.8.10/hardware
last.screen.height=768
last.screen.width=1366
last.sketch.default.location=433,84,500,600,404,0
last.sketch.default.path=/tmp/untitled183572571.tmp/sketch_sep29a/sketch_sep29a.ino
launcher=xdg-open
proxy.manual.hostname=
proxy.manual.password=
proxy.manual.port=
proxy.manual.type=HTTP
proxy.manual.username=
proxy.pac.url=
proxy.type=auto
sketchbook.path=/home/slo/Arduino
theme.file=
update.id=7771706390682478081
update.last=1569742762268
upload.verbose=true
runtime.os=linux
runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=/home/slo/bin/arduino-1.8.10/hardware/tools/avr
runtime.tools.arduino-avr-gcc-7.3.0-atmel3.6.1-arduino5.path=/home/slo/bin/arduino-1.8.10/hardware/tools/avr
runtime.tools.avr-gcc.path=/home/slo/bin/arduino-1.8.10/hardware/tools/avr
runtime.tools.avrdude-6.3.0-arduino17.path=/home/slo/bin/arduino-1.8.10/hardware/tools/avr
runtime.tools.arduino-avrdude-6.3.0-arduino17.path=/home/slo/bin/arduino-1.8.10/hardware/tools/avr
runtime.tools.avrdude.path=/home/slo/bin/arduino-1.8.10/hardware/tools/avr
runtime.tools.arduinoOTA-1.3.0.path=/home/slo/bin/arduino-1.8.10/hardware/tools/avr
runtime.tools.arduino-arduinoOTA-1.3.0.path=/home/slo/bin/arduino-1.8.10/hardware/tools/avr
runtime.tools.arduinoOTA.path=/home/slo/bin/arduino-1.8.10/hardware/tools/avr
runtime.platform.path=/home/slo/bin/arduino-1.8.10/hardware/teensy/avr
runtime.hardware.path=/home/slo/bin/arduino-1.8.10/hardware/teensy
teensy: Invalid json message
slo@sloNano:~$
 
Last edited:
@Paul - others? Re message posted here : pjrc.com/threads/57701-USB-Host-Ethernet-Driver

Anyone seeing extra stuff rebuilding on Rebuild with IDE 1.8.10 and TD 1.48.b1?

Or added new messages or library during build::
Code:
Alternatives for USBHost_t36.h: [USBHost_t36@0.1]
ResolveLibrary(USBHost_t36.h)
  -> candidates: [USBHost_t36@0.1]

Or indications of "Multiple libraries" where there is only a single present and no 2nd indicated::
Code:
Multiple libraries were found for "ASIXEthernet.h"
 Used: T:\tCode\libraries\TeensyASIXEthernet
 
Status
Not open for further replies.
Back
Top