Teensyduino 1.59 Beta #2

Quick update on the IDE2 issue.

A couple of hours ago they pulled in a fix for this in the CLI project.
There already was a PR for the IDE in github: https://github.com/arduino/arduino-ide/pull/1996
To update to latest CLI release. This PR was updated within the last couple of hours to 0.32.2 instead of 0.32.1 to pull this in.
So hopefully in the next day or two this will complete their checks and signed off and merged. So far I have not found any artifacts in the PR to try.
 
From looking at disassembly it looks like setjmp/longjmp do not save/restore non-volatile floating-point registers:
Code:
00003068 <setjmp>:
    3068:	46ec      	mov	ip, sp
    306a:	e8a0 5ff0 	stmia.w	r0!, {r4, r5, r6, r7, r8, r9, sl, fp, ip, lr}
    306e:	f04f 0000 	mov.w	r0, #0
    3072:	4770      	bx	lr

00003074 <longjmp>:
    3074:	e8b0 5ff0 	ldmia.w	r0!, {r4, r5, r6, r7, r8, r9, sl, fp, ip, lr}
    3078:	46e5      	mov	sp, ip
    307a:	0008      	movs	r0, r1
    307c:	bf08      	it	eq
    307e:	2001      	moveq	r0, #1
    3080:	4770      	bx	lr
    3082:	bf00      	nop

This smells like newlib code being built without __ARM_FP nor __ARM_FEATURE_MVE defined: https://sourceware.org/git/?p=newli...6c9daa0197b74e157a9068ef9d115cc8;hb=HEAD#l227
 
@PaulStoffregen

Was playing around with a library and decided to test propsheild again with NXPMotionsense but noticed that its no longer in the examples list of either 2.0.05 nightly or 1.8.19 with 0.59.2 not sure why to be honest
Capture.PNG

EDIT: Forgot - it is in the libraries folder for both when you look.
 
Really glad to see Arduino is fixing this issue!

Me too,

Still not merged into IDE.

Also strange nightly build is still downloading 0403. There were a few things merged over the last few days so would have expected 0413 this morning.

But: now the PR for bringing in the updated CLI now has artifacts: https://github.com/arduino/arduino-ide/actions/runs/4687620166#artifacts

So I might try the windows one.

EDIT: Tried the artifact version.
Code:
loop/sec = 11537720
loop/sec = 11537721
loop/sec = 11537720
loop/sec = 11537720
loop/sec = 11537720
begin loop speed test, F_CPU = 600000000
	 F_CPU_ACTUAL = 600000000
loop/sec = 15383784
loop/sec = 15383800
loop/sec = 15383801
loop/sec = 15383800
loop/sec = 15383801
:D
Note: I edited the example sketch:
Code:
void setup() {
  pinMode(13, OUTPUT);
  Serial.begin(9600);
  Serial.print("begin loop speed test, F_CPU = ");
  Serial.println(F_CPU);
#if defined(__IMXRT1062__)
  Serial.print("\t F_CPU_ACTUAL = ");
  Serial.println(F_CPU_ACTUAL);
#endif
To show the actual that core thinks... In the case of T4.x

Now to go back to nightly to confirm.
Edit: last nightly build you can easily download:
Code:
begin loop speed test, F_CPU = 600000000
	 F_CPU_ACTUAL = 600000000
loop/sec = 15383784
loop/sec = 15383800
loop/sec = 15383800
loop/sec = 15383801
loop/sec = 15383800
loop/sec = 15383801
begin loop speed test, F_CPU = 450000000
	 F_CPU_ACTUAL = 600000000
loop/sec = 15383784
loop/sec = 15383800
loop/sec = 15383800
loop/sec = 15383801
loop/sec = 15383800
Where you can see the at core is actually at 600

NOTE: nightly builds are stuck... See the thread I started on Arduino
https://forum.arduino.cc/t/nightly-builds-stuck-at-0403/1114710/3
It contains way to get current versions until they figure out the Ubuntu issues...
 
Last edited:
@KurtE
Pretty much did the same thing as you. Ran Paul's test case, not changes, plus duplicated what you and I saw with running 2 sketches with different USB types.

Like you said looks like that issue is fixed in the CLI artifact build. Now just have to wait for it to make it into the nightly.
 
Do these nightly and artifact builds have all serial monitor auto-scroll bugs fixed?
All? Hard to say ;) But at least the ones I was hitting.

EDIT: But they still have all of the copy Paste bugs. Which hit me this morning. I selected about 10 lines and only got maybe 6 of them as the area scrolled and missed the lines that were no longer visible

Also just checked and the update of the IDE to the CLI
https://github.com/arduino/arduino-ide/pull/1996
Has been merged, so should be in tomorrows...

Note: The Ubuntu issue for building. Sounds like might take a bit to fix.
But information from PerT in the thread I started this morning:
Code:
Although the nightly build won't be produced for some time, you can already download a tester build directly from GitHub:

Sign in to your GitHub account.
(GitHub only allows downloads of the tester builds when you are signed in.)
Open the page with the list of build workflow runs:
https://github.com/arduino/arduino-ide/actions/workflows/build.yml?query=branch%3Amain 2
Click on the top run on the list.
Scroll down to the "Artifacts" section of the page.
Click the name of the artifact that is appropriate for your operating system (e.g., "Windows_X86-64_zip" if you are using Windows).
Wait for the download to finish.
Extract and start the tester build as usual.
We are still looking for a long term solution that will retain compatibility for people using older versions of Linux.
 
Quick update: the cache bug was merged in yesterday :D

And it appears like Arduino was able to produce a nightly build. I now have 20230414 and it appears to work.
In case anyone is interested, they are now caching the core builds by full FQBN names.
Code:
C:\Users\kurte\AppData\Local\Temp\arduino\cores>dir
 Volume in drive C is OS
 Volume Serial Number is 7E8D-E873

 Directory of C:\Users\kurte\AppData\Local\Temp\arduino\cores

04/13/2023  05:49 AM    <DIR>          .
04/04/2023  07:27 AM    <DIR>          ..
04/11/2023  05:11 PM    <DIR>          arduino_samd_mkrwifi1010_2b13c2f75b8595e111d95250cea36d76
04/11/2023  05:11 PM    <DIR>          arduino_samd_mkrzero_2b13c2f75b8595e111d95250cea36d76
04/10/2023  05:42 AM    <DIR>          teensy_avr_teensy41_1cf0ceca7cdac7b882966ce9fedcb556
04/13/2023  05:45 AM    <DIR>          teensy_avr_teensy41_usb_serialmtp,speed_600,opt_o2std,keys_en-us_1cf0ceca7cdac7b882966ce9fedcb556
04/10/2023  08:12 AM    <DIR>          teensy_avr_teensyMM_1cf0ceca7cdac7b882966ce9fedcb556
04/13/2023  05:49 AM    <DIR>          teensy_avr_teensyMM_usb_serial,speed_450,opt_o2std,keys_en-us_1cf0ceca7cdac7b882966ce9fedcb556
04/13/2023  05:48 AM    <DIR>          teensy_avr_teensyMM_usb_serial,speed_600,opt_o2std,keys_en-us_1cf0ceca7cdac7b882966ce9fedcb556
               0 File(s)              0 bytes
               9 Dir(s)  142,290,153,472 bytes free

I have not tried Ubuntu yet. But one of the things they merged in yesterday as well was to build using the runner for Ubuntu 20.04 instead of 18.04 as Github
depreciated 18.04 and no longer support it. So could impact those running old stuff. My test machine has 22.04, so probably not a problem for me. WIll try it later
 
Paul - I should mention that with the newest nightly builds I am seeing this warning:

Code:
loading library from C:\Users\kurte\AppData\Local\Arduino15\packages\teensy\hardware\avr\0.59.2\libraries\_Teensy: invalid library: no header files found
I know at one point my hacked up version I put in an src directory with something like _teensy.h or some such name which was blank or maybe had comment ...
 
Ugh, looks like they're changing the library requirement. I saw an issue about it recently on Arduino CLI. I'll address this in 1.59-beta3. And when Arduino releases IDE 2.0.5 with this, I'll make a 1.58.1 update.
 
Ugh, looks like they're changing the library requirement. I saw an issue about it recently on Arduino CLI. I'll address this in 1.59-beta3. And when Arduino releases IDE 2.0.5 with this, I'll make a 1.58.1 update.

Looks like they are about to release 2.1.0
Code:
D:\github\arduino-ide>git log
commit 9fff553f1a628b6e50be8e07545ddafe33095409 (HEAD -> main, origin/main, origin/HEAD)
Author: Akos Kitta <a.kitta@arduino.cc>
Date:   Mon Apr 17 08:32:51 2023 +0200

    chore: Prepared for the `2.1.0` release

    Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
 
Updated to IDE 2.1.0 and two open sketches to T_4.1 built and uploaded fine with Beta 1.59b2:
"loading library from C:\Users\Tim\AppData\Local\Arduino15\packages\teensy\hardware\avr\0.59.2\libraries\_Teensy: invalid library: no header files found"
 
Installed on WIndows, did not do very many builds yet, as was running yesterdays daily build so nothing really different

Paul - if you are going to package up a B3, might be nice to pick up a few of the updated display drivers.

ST7735_t3 - https://github.com/PaulStoffregen/ST7735_t3/pull/33

ILI9488_t3 - I believe @mjs513 has all of the current stuff merged in.

(I Don't believe the other two we updated are part of builds HX8357_t3n nor GC901A_t3n

Note: I pulled in a fix to FlexIO_t4 library recently
 
Installed on WIndows, did not do very many builds yet, as was running yesterdays daily build so nothing really different

Paul - if you are going to package up a B3, might be nice to pick up a few of the updated display drivers.

ST7735_t3 - https://github.com/PaulStoffregen/ST7735_t3/pull/33

ILI9488_t3 - I believe @mjs513 has all of the current stuff merged in.

(I Don't believe the other two we updated are part of builds HX8357_t3n nor GC901A_t3n

Note: I pulled in a fix to FlexIO_t4 library recently

Yes sir. The ILI9488_t3 lib has been updated with the current stuff
 
Installed on WIndows, did not do very many builds yet, as was running yesterdays daily build so nothing really different

Paul - if you are going to package up a B3, might be nice to pick up a few of the updated display drivers.

ST7735_t3 - https://github.com/PaulStoffregen/ST7735_t3/pull/33

ILI9488_t3 - I believe @mjs513 has all of the current stuff merged in.

(I Don't believe the other two we updated are part of builds HX8357_t3n nor GC901A_t3n

Note: I pulled in a fix to FlexIO_t4 library recently

At some point, it may be nice to include HX8357_t3n and GC901A_t3n in the teensy dunio package.
 
I upgraded to Arduino IDE 2.1.0 and Teensycore 1.59 beta2. When trying to compile a sketch that uses TeensyTimerTool it fails with the below errors. You might point the finger at TeensyTimerTool but it appears to really be some sort of misinterpretation of the code found in 11.3.1/chrono as it thinks the template based code is really two parameters instead of one. I'm not good enough at looking at the nasty template syntax in there to figure out why that is.


Code:
In file included from /home/collin/Arduino/libraries/TeensyTimerTool/src/helpers.h:7,
                 from /home/collin/Arduino/libraries/TeensyTimerTool/src/API/baseTimer.h:6,
                 from /home/collin/Arduino/libraries/TeensyTimerTool/src/API/oneShotTimer.h:4,
                 from /home/collin/Arduino/libraries/TeensyTimerTool/src/TeensyTimerTool.h:3,
                 from /home/collin/projects/GEVCU7/src/TickHandler.h:34,
                 from /home/collin/projects/GEVCU7/src/MemCache.h:34,
                 from /home/collin/projects/GEVCU7/src/PrefHandler.h:35,
                 from /home/collin/projects/GEVCU7/src/devices/Device.h:35,
                 from /home/collin/projects/GEVCU7/GEVCU.h:32,
                 from /home/collin/projects/GEVCU7/GEVCU7.ino:125:
/home/collin/.arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/arm-none-eabi/include/c++/11.3.1/chrono:373:47: error: macro "round" passed 2 arguments, but takes just 1
  373 |       round(const duration<_Rep, _Period>& __d)
      |                                               ^
In file included from /home/collin/.arduino15/packages/teensy/hardware/avr/0.59.2/cores/teensy4/WProgram.h:46,
                 from /home/collin/.arduino15/packages/teensy/hardware/avr/0.59.2/cores/teensy4/Arduino.h:6,
                 from /tmp/arduino/sketches/BBA0FCDB9F9757D7EA8CBDDAC05FB730/sketch/GEVCU7.ino.cpp:1:
/home/collin/.arduino15/packages/teensy/hardware/avr/0.59.2/cores/teensy4/wiring.h:174: note: macro "round" defined here
  174 | #define round(x) ((long) __builtin_round(x))
      | 
In file included from /home/collin/Arduino/libraries/TeensyTimerTool/src/helpers.h:7,
                 from /home/collin/Arduino/libraries/TeensyTimerTool/src/API/baseTimer.h:6,
                 from /home/collin/Arduino/libraries/TeensyTimerTool/src/API/oneShotTimer.h:4,
                 from /home/collin/Arduino/libraries/TeensyTimerTool/src/TeensyTimerTool.h:3,
                 from /home/collin/projects/GEVCU7/src/TickHandler.h:34,
                 from /home/collin/projects/GEVCU7/src/MemCache.h:34,
                 from /home/collin/projects/GEVCU7/src/PrefHandler.h:35,
                 from /home/collin/projects/GEVCU7/src/devices/Device.h:35,
                 from /home/collin/projects/GEVCU7/GEVCU.h:32,
                 from /home/collin/projects/GEVCU7/GEVCU7.ino:125:
/home/collin/.arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/arm-none-eabi/include/c++/11.3.1/chrono:393:38: error: macro "abs" passed 2 arguments, but takes just 1
  393 |       abs(duration<_Rep, _Period> __d)
      |                                      ^
In file included from /home/collin/.arduino15/packages/teensy/hardware/avr/0.59.2/cores/teensy4/WProgram.h:46,
                 from /home/collin/.arduino15/packages/teensy/hardware/avr/0.59.2/cores/teensy4/Arduino.h:6,
                 from /tmp/arduino/sketches/BBA0FCDB9F9757D7EA8CBDDAC05FB730/sketch/GEVCU7.ino.cpp:1:
/home/collin/.arduino15/packages/teensy/hardware/avr/0.59.2/cores/teensy4/wiring.h:164: note: macro "abs" defined here
  164 | #define abs(x) ({ \
 
Paul - I should mention that with the newest nightly builds I am seeing this warning:

Code:
loading library from C:\Users\kurte\AppData\Local\Arduino15\packages\teensy\hardware\avr\0.59.2\libraries\_Teensy: invalid library: no header files found

As mentioned on this thread, I have a preliminary 1.58.1 release to fix the "invalid library: no header files found" problem with latest IDE.

Code:
https://www.pjrc.com/teensy/td_158-1/package_teensy_index.json

Any chance I could talk you into giving 1.58.1 a quick try? Planing to go live sometime tomorrow.

Will also roll it into 1.59-beta3 and pull in those display library updates (and maybe other stuff), near the end of this week.
 
As mentioned on this thread, I have a preliminary 1.58.1 release to fix the "invalid library: no header files found" problem with latest IDE.

Code:
https://www.pjrc.com/teensy/td_158-1/package_teensy_index.json

Any chance I could talk you into giving 1.58.1 a quick try? Planing to go live sometime tomorrow.

Will also roll it into 1.59-beta3 and pull in those display library updates (and maybe other stuff), near the end of this week.

On IDE 2.1.0 replaced 1.59.2 with 1.58.1. Loading the new URL pulled it down and closing 2nd sketch and re-open had the 1.58.1 ready to install.

Built sketch at speed 600 - then rebuilt and got re-use of prebuilt parts. Below is the partial rebuild output with no signs of "..._Teensy: invalid library: no header files found"

Then did rebuild at speed 528 MHz and it did a full rebuild.

Code:
FQBN: teensy:avr:teensy41
Using board 'teensy41' from platform in folder: C:\Users\Tim\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1
Using core 'teensy4' from platform in folder: C:\Users\Tim\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1

Detecting libraries used...
"C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10607 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318\\sketch\\teensy41_psram_memtest.ino.cpp" -o nul
Generating function prototypes...
"C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10607 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318\\sketch\\teensy41_psram_memtest.ino.cpp" -o "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\builtin\\tools\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-tools\\1.58.0/precompile_helper" "C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1/cores/teensy4" "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318" "C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/arm/bin/arm-none-eabi-g++" -x c++-header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10607 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1/cores/teensy4" "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318/pch/Arduino.h" -o "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318/pch/Arduino.h.gch"
Using previously compiled file: C:\Users\Tim\AppData\Local\Temp\arduino\sketches\2FE75A633D7060765C147E7121984318\pch\Arduino.h.gch
"C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10607 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318/pch" "-IC:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318\\sketch\\teensy41_psram_memtest.ino.cpp" -o "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318\\sketch\\teensy41_psram_memtest.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\Tim\AppData\Local\Temp\arduino\cores\teensy_avr_teensy41_usb_serial,speed_600,opt_o2std,keys_en-us_221d9cac2ec334fc92af7eb50040be31\core.a
Linking everything together...
"C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/arm/bin/arm-none-eabi-gcc" -O2 -Wl,--gc-sections,--relax "-TC:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4/imxrt1062_t41.ld" -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -o "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318/teensy41_psram_memtest.ino.elf" "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318\\sketch\\teensy41_psram_memtest.ino.cpp.o" "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318/..\\..\\cores\\teensy_avr_teensy41_usb_serial,speed_600,opt_o2std,keys_en-us_221d9cac2ec334fc92af7eb50040be31\\core.a" "-LC:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318" -larm_cortexM7lfsp_math -lm -lstdc++
"C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/arm/bin/arm-none-eabi-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318/teensy41_psram_memtest.ino.elf" "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318/teensy41_psram_memtest.ino.eep"
"C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/arm/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318/teensy41_psram_memtest.ino.elf" "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318/teensy41_psram_memtest.ino.hex"
"C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-tools\\1.58.0/teensy_secure" encrypthex TEENSY41 "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318/teensy41_psram_memtest.ino.hex"
encrypting 43008 bytes to C:\Users\Tim\AppData\Local\Temp\arduino\sketches\2FE75A633D7060765C147E7121984318/teensy41_psram_memtest.ino.ehex
"C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-tools\\1.58.0/teensy_post_compile" -file=teensy41_psram_memtest.ino "-path=C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318" "-tools=C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-tools\\1.58.0/" -board=TEENSY41
"C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-tools\\1.58.0/stdout_redirect" "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318/teensy41_psram_memtest.ino.sym" "C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/arm/bin/arm-none-eabi-objdump" -t -C "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318/teensy41_psram_memtest.ino.elf"
"C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-tools\\1.58.0/teensy_size" "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318/teensy41_psram_memtest.ino.elf"
Memory Usage on Teensy 4.1:
  FLASH: code:36876, data:6092, headers:8228   free for files:8075268
   RAM1: variables:6944, code:34240, padding:31296   free for local variables:451808
   RAM2: variables:12416  free for malloc/new:511872
"C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-tools\\1.58.0/stdout_redirect" "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318/teensy41_psram_memtest.ino.lst" "C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/arm/bin/arm-none-eabi-objdump" -d -S -C "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\2FE75A633D7060765C147E7121984318/teensy41_psram_memtest.ino.elf"

"C:\Users\Tim\AppData\Local\Arduino15\packages\teensy\tools\teensy-tools\1.58.0/teensy_post_compile" "-file=teensy41_psram_memtest.ino" "-path=C:\Users\Tim\AppData\Local\Temp\arduino\sketches\2FE75A633D7060765C147E7121984318" "-tools=C:\Users\Tim\AppData\Local\Arduino15\packages\teensy\tools\teensy-tools\1.58.0" "-board=TEENSY41" -reboot "-port=usb:0/140000/0/6/2" "-portlabel={serial.port.label}" "-portprotocol={serial.port.protocol}"
 
I upgraded to Arduino IDE 2.1.0 and Teensycore 1.59 beta2. When trying to compile a sketch that uses TeensyTimerTool it fails with the below errors. You might point the finger at TeensyTimerTool but it appears to really be some sort of misinterpretation of the code found in 11.3.1/chrono as it thinks the template based code is really two parameters instead of one. I'm not good enough at looking at the nasty template syntax in there to figure out why that is.
...
[/CODE]

As thebigg mentioned, the Arduino/Teensyduino #defines of standard functions (abs, round...) can mess up the standard library if STL headers are included after Arduino.h. It looks like the new toolchain (or the current Teensyduino beta?) implicitly changed something in the #include sequence so that a couple of these issues poped up now. I fixed this by temporarily (push_macro/pop_macro) undefining the offending macros.
Can you give v1.3.1 a try? (May take a few hours until the Arduino Library manager picks up the new version)
 
@luni - @CollinK
Ran into the same problem with a couple of @brtaylor libraries. Since the libs weren't mine I added ifdef/undef to the top of the sketch before those libs. Did put a PR in to Paul and reported to @brtaylor.
 
Back
Top