Teensyduino 1.52 Beta #2

Status
Not open for further replies.
Thanks for answering guys.

I've a Mac 10.13.6 I did the Catalina install. As for as I could tell it just put a new IDE on my drive called Teensyduino. I'm kinda' asssuming this is all I need and can toss out my old IDE? I ask because this is so different than what I"m used to where the installer just updates your original IDE.

-jim lee
 
Thanks for answering guys.

I've a Mac 10.13.6 I did the Catalina install. As for as I could tell it just put a new IDE on my drive called Teensyduino. I'm kinda' asssuming this is all I need and can toss out my old IDE?

-jim lee

AFAIK that is correct. Not a mac user - but the notes IIRC said to work with the new secure install stuff tied the TD into IDE all in one to get what is needed.
 
Back out of the saddle..

Code:
#include <Adafruit_GFX.h>
#include <ILI9341_t3.h>


void setup() {

}

void loop() {

}

#include <ILI9341_t3.h> <- No such file.

I just looked into the package contents (Mac thing) and found this file under hardware/teensy/libraries. Somehow this IDE can't find it.

Hints?

-jim lee
 
No idea how the IDE tracks file locations on MAC - even on Windows ( to avoid the IDE using 'known' system settings of its choosing ) I started doing unzip installs for multiple 'local reference' IDE copies where it runs 'all relative' based on the folder it was started from - but uses a common 'sketchbook' folder where all my stuff and 'personal libraries' are stored.

If TD+IDE was installed uniquely after an IDE install - and the IDE install was removed the linkage to the any 'IDE' may have been cut?

Not sure if that is in the right direction of the issue? Perhaps uninstall ALL IDE and TD+IDE copies - then just do a TD+IDE install?
 
AH! Got it. Teensyduino has the teensy stuff in it. Then new IDE from Arduino does not. I'd forgot to check to make sure I was compiling for a teensy. So I guess it wasn't looking for teensy library files.

There is still the issue where ILI9341_t3.h conflicts with Adafruit_GFX.h though.

-jim lee
 
Looks like an adafruit_gfx is included with Teensyduino? Need to see the build console output to know if it is using a local version?
 
Well, here it is. Looks like teensyduino has a private copy of Adafruit_GFX.h

Code:
Multiple libraries were found for "Adafruit_GFX.h"/var/folders/wt/mcbdk5yn5wz6z1zcpf20xvzw0000gn/T/arduino_build_619311/libraries/ILI9341_t3/ILI9341_t3.cpp.o: In function `Adafruit_GFX_Button::drawButton(bool)':

 Used: /Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/Adafruit_GFX
 Not used: /Users/jimlee/Documents/Arduino/libraries/Adafruit_GFX_Library
/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/ILI9341_t3/ILI9341_t3.cpp:1851: multiple definition of `Adafruit_GFX_Button::drawButton(bool)'
/var/folders/wt/mcbdk5yn5wz6z1zcpf20xvzw0000gn/T/arduino_build_619311/libraries/Adafruit_GFX/Adafruit_GFX.cpp.o:/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:1587: first defined here
/Applications/Teensyduino.app/Contents/Java/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld: Disabling relaxation: it will not work with multiple definitions
/var/folders/wt/mcbdk5yn5wz6z1zcpf20xvzw0000gn/T/arduino_build_619311/libraries/ILI9341_t3/ILI9341_t3.cpp.o: In function `Print::flush()':
/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/ILI9341_t3/ILI9341_t3.cpp:1377: multiple definition of `Adafruit_GFX_Button::contains(short, short)'
/var/folders/wt/mcbdk5yn5wz6z1zcpf20xvzw0000gn/T/arduino_build_619311/libraries/Adafruit_GFX/Adafruit_GFX.cpp.o:/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3/Print.h:61: first defined here
collect2: error: ld returned 1 exit status
Error compiling for board Teensy 3.2 / 3.1.

What I read in the ILI9341_t3.h file

Code:
// To avoid conflict when also using Adafruit_GFX or any Adafruit library
// which depends on Adafruit_GFX, #include the Adafruit library *BEFORE*
// you #include ILI9341_t3.h.

Doesn't seem to be working for some odd reason.

P.S. I know I'm guilty of cross posting this. But I can't delete my other post. Sorry about that.

-jim lee
 
Ok, I pulled ILI9341_t3 stuff out for now. Went back to the original one from Adafruit. Got everything to compile again. But now there's no teensy loader? Is this not included with this new teensyduino IDE?

Code:
Opening Teensy Loader...
Unable find Teensy Loader.  (p)  Is the Teensy Loader application running?

-jim lee
 
Yes, there should be a TeensyLoader installed - if not then something isn't installed right.

On this Windows machine the first run to load TeensyLoader takes like 15 seconds for some reason. Though not if started soon after booting - but when run some time later there is a long delay for startup.

Again - never did the Mac thing - but IDE and TeensyLoader should all be there with all Teensy files and updated boards.txt allowing Teensy selection. and upload.
 
Well, your guesses are at least putting me on the right paths. Thank you! The loader didn't come with the installer. So, I thought it was no longer needed with this new fancy stuff. I went back and found the teensy loader app, d-loaded & installed it, clicked it and presto! I'm up and running.

Thanks again!

-jim lee
 
Glad you are up and running! Assumed the FAT catalina installer was all in one solution that would result in IDE 1.8.12 and TD ready to run?
 
Even though the upload error on the Teensy Loader did not show up again, perfectly following Murphy's Law, I could not get the sound to work. So I followed the idea of a malfunction in hardware and baked the Teensy over night at 50℃, dip fluxed and reflowed newly, then cleaned. Luckily enough, none of the tiny dust on the underside fell off. Et voilà, everything works as it should be, except for the button, which clogged and charred, but use external anyway. Nice and clean audio, stable signals. So nice!

Thanks @Frank B for i2s library.

You could add AKM AK4556VT to the list of compatible chips. It works very well, easy to set up, makes nice quality audio, stereo input and output, and is cheap, 1.38$
 
Last edited:
After a day of hacking on my teensy stuff I quit the teensyduino and it took the entire mac down. Power off, everything.

I don't know if it'll help, but here's the stuff apple wanted as a report.

Code:
Anonymous UUID:       5171288A-F5CB-2F3F-51AF-8F0E584824DE

Sun Apr 12 22:25:38 2020

*** Panic Report ***
panic(cpu 0 caller 0xffffff800198776f): Kernel trap at 0xffffff8001d4fb33, type 14=page fault, registers:
CR0: 0x000000008001003b, CR2: 0x0000000000000018, CR3: 0x0000000149caa0e1, CR4: 0x00000000003627e0
RAX: 0x0000000000000000, RBX: 0xffffff80521ce950, RCX: 0x0000000000000000, RDX: 0xffffff80424b2e00
RSP: 0xffffff9219d4bc40, RBP: 0xffffff9219d4bc60, RSI: 0xffffff8038ad4290, RDI: 0xffffff80424b2e00
R8:  0x0000000000000000, R9:  0x000000000000270d, R10: 0x0000000000000000, R11: 0x00071519bf8f52ef
R12: 0xffffff8039ee0cc0, R13: 0x0000000000000009, R14: 0xffffff80424b2e00, R15: 0xffffff80424b2ee0
RFL: 0x0000000000010203, RIP: 0xffffff8001d4fb33, CS:  0x0000000000000008, SS:  0x0000000000000010
Fault CR2: 0x0000000000000018, Error code: 0x0000000000000000, Fault CPU: 0x0, PL: 0, VF: 0

Backtrace (CPU 0), Frame : Return Address
0xffffff9219d4b710 : 0xffffff800186c1c6 
0xffffff9219d4b760 : 0xffffff8001995274 
0xffffff9219d4b7a0 : 0xffffff8001987544 
0xffffff9219d4b810 : 0xffffff800181e1e0 
0xffffff9219d4b830 : 0xffffff800186bc3c 
0xffffff9219d4b960 : 0xffffff800186b9fc 
0xffffff9219d4b9c0 : 0xffffff800198776f 
0xffffff9219d4bb30 : 0xffffff800181e1e0 
0xffffff9219d4bb50 : 0xffffff8001d4fb33 
0xffffff9219d4bc60 : 0xffffff8001cfd50d 
0xffffff9219d4bcb0 : 0xffffff8001cfcf8c 
0xffffff9219d4bd20 : 0xffffff8001cfa20f 
0xffffff9219d4bd60 : 0xffffff8001d167c9 
0xffffff9219d4be20 : 0xffffff800189f09f 
0xffffff9219d4beb0 : 0xffffff80018a3105 
0xffffff9219d4bee0 : 0xffffff80018645f6 
0xffffff9219d4bf30 : 0xffffff800181e1ac 

BSD process name corresponding to current thread: teensy_serialmon

Mac OS version:
17G65

Kernel version:
Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64
Kernel UUID: 1AE5ACFD-3B6F-3D74-AD52-31F1430DBC6F
Kernel slide:     0x0000000001600000
Kernel text base: 0xffffff8001800000
__HIB  text base: 0xffffff8001700000
System model name: iMac18,2 (Mac-77F17D7DA9285301)

System uptime in nanoseconds: 1993524228744486
last loaded kext at 1993427686880212: com.apple.driver.usb.cdc.ecm	5.0.0 (addr 0xffffff7f85e92000, size 49152)
last unloaded kext at 1993487943390344: com.apple.driver.usb.cdc.ecm	5.0.0 (addr 0xffffff7f85e92000, size 49152)
loaded kexts:
com.apple.driver.AppleTopCaseHIDEventDriver	133
com.apple.driver.AudioAUUC	1.70
com.apple.driver.AGPM	110.23.37
com.apple.driver.ApplePlatformEnabler	2.7.0d0
com.apple.driver.X86PlatformShim	1.0.0
com.apple.filesystems.autofs	3.0
com.apple.driver.AppleUpstreamUserClient	3.6.5
com.apple.kext.AMDFramebuffer	1.6.8
com.apple.kext.AMDRadeonX4000	1.6.8
com.apple.driver.AppleHDA	281.52
com.apple.driver.AppleGraphicsDevicePolicy	3.20.13
com.apple.AGDCPluginDisplayMetrics	3.20.13
com.apple.driver.pmtelemetry	1
com.apple.iokit.IOUserEthernet	1.0.1
com.apple.iokit.IOBluetoothSerialManager	6.0.7f10
com.apple.Dont_Steal_Mac_OS_X	7.0.0
com.apple.driver.AppleHV	1
com.apple.driver.AppleIntelSlowAdaptiveClocking	4.0.0
com.apple.driver.AppleIntelKBLGraphics	10.3.6
com.apple.iokit.BroadcomBluetooth20703USBTransport	6.0.7f10
com.apple.driver.AppleIntelPCHPMC	2.0.1
com.apple.kext.AMD9500Controller	1.6.8
com.apple.driver.AppleThunderboltIP	3.1.1
com.apple.driver.AppleOSXWatchdog	1
com.apple.driver.eficheck	1
com.apple.driver.AppleGFXHDA	100.1.17
com.apple.driver.AppleSMCLMU	211
com.apple.driver.AppleMCCSControl	1.5.5
com.apple.driver.AppleIntelKBLGraphicsFramebuffer	10.3.6
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless	1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib	1.0.0
com.apple.AppleSystemPolicy	1.0
com.apple.BootCache	40
com.apple.filesystems.hfs.kext	407.50.6
com.apple.driver.AppleSDXC	1.7.6
com.apple.iokit.AppleBCM5701Ethernet	10.3.1
com.apple.driver.AirPort.BrcmNIC	1241.31.1a9
com.apple.driver.AppleAHCIPort	329.50.2
com.apple.driver.AppleACPIButtons	6.1
com.apple.driver.AppleRTC	2.0
com.apple.driver.AppleSMBIOS	2.1
com.apple.driver.AppleACPIEC	6.1
com.apple.driver.AppleAPIC	1.7
com.apple.nke.applicationfirewall	183
com.apple.security.quarantine	3
com.apple.security.TMSafetyNet	8
com.apple.driver.usb.cdc.acm	5.0.0
com.apple.driver.usb.cdc	5.0.0
com.apple.driver.usb.IOUSBHostHIDDevice	1.2
com.apple.driver.AppleUSBHostMergeProperties	1.2
com.apple.driver.AppleHIDKeyboard	205
com.apple.driver.AppleMultitouchDriver	1404.4
com.apple.driver.AppleInputDeviceSupport	1404.3
com.apple.driver.AppleHSBluetoothDriver	133
com.apple.driver.IOBluetoothHIDDriver	6.0.7f10
com.apple.kext.triggers	1.0
com.apple.kext.AMDRadeonX4200HWLibs	1.0
com.apple.driver.DspFuncLib	281.52
com.apple.kext.OSvKernDSPLib	526
com.apple.kext.AMDRadeonX4000HWServices	1.6.8
com.apple.driver.AppleGraphicsControl	3.20.13
com.apple.iokit.IOSerialFamily	11
com.apple.iokit.IOAVBFamily	680.2
com.apple.plugin.IOgPTPPlugin	680.15
com.apple.driver.AppleSSE	1.0
com.apple.AppleGPUWrangler	3.20.13
com.apple.iokit.IOSlowAdaptiveClockingFamily	1.0.0
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport	6.0.7f10
com.apple.iokit.IOBluetoothHostControllerUSBTransport	6.0.7f10
com.apple.iokit.IOBluetoothHostControllerTransport	6.0.7f10
com.apple.iokit.IOBluetoothFamily	6.0.7f10
com.apple.kext.AMDSupport	1.6.8
com.apple.driver.AppleHDAController	281.52
com.apple.iokit.IOHDAFamily	281.52
com.apple.driver.AppleSMBusPCI	1.0.14d1
com.apple.iokit.IOAudioFamily	206.5
com.apple.vecLib.kext	1.2.0
com.apple.iokit.IONDRVSupport	519.20
com.apple.driver.X86PlatformPlugin	1.0.0
com.apple.driver.IOPlatformPluginFamily	6.0.0d8
com.apple.driver.AppleSMBusController	1.0.18d1
com.apple.AppleGraphicsDeviceControl	3.20.13
com.apple.iokit.IOAcceleratorFamily2	378.26
com.apple.iokit.IOGraphicsFamily	519.20
com.apple.iokit.IOSurface	211.15
com.apple.driver.usb.networking	5.0.0
com.apple.driver.usb.AppleUSBHostCompositeDevice	1.2
com.apple.driver.CoreStorage	546.50.1
com.apple.filesystems.hfs.encodings.kext	1
com.apple.iokit.IOAHCIBlockStorage	301.40.2
com.apple.driver.AppleThunderboltDPInAdapter	5.5.5
com.apple.driver.AppleThunderboltDPAdapterFamily	5.5.5
com.apple.driver.AppleThunderboltPCIDownAdapter	2.1.3
com.apple.driver.AppleHPM	3.1.3
com.apple.driver.AppleIntelLpssI2CController	3.0.60
com.apple.driver.AppleIntelLpssDmac	3.0.60
com.apple.driver.AppleIntelLpssI2C	3.0.60
com.apple.driver.AppleThunderboltNHI	4.7.2
com.apple.iokit.IOThunderboltFamily	6.7.8
com.apple.iokit.IOEthernetAVBController	1.1.0
com.apple.iokit.IO80211Family	1200.12.2
com.apple.driver.mDNSOffloadUserClient	1.0.1b8
com.apple.driver.corecapture	1.0.4
com.apple.iokit.IOAHCIFamily	288
com.apple.driver.usb.AppleUSBHostPacketFilter	1.0
com.apple.iokit.IOUSBFamily	900.4.1
com.apple.driver.usb.AppleUSBXHCIPCI	1.2
com.apple.driver.usb.AppleUSBXHCI	1.2
com.apple.driver.AppleEFINVRAM	2.1
com.apple.driver.AppleEFIRuntime	2.1
com.apple.iokit.IOSMBusFamily	1.1
com.apple.iokit.IOHIDFamily	2.0.0
com.apple.security.sandbox	300.0
com.apple.kext.AppleMatch	1.0.0d1
com.apple.driver.AppleFDEKeyStore	28.30
com.apple.driver.AppleEffaceableStorage	1.0
com.apple.driver.AppleKeyStore	2
com.apple.driver.AppleUSBTDM	439.70.3
com.apple.driver.AppleMobileFileIntegrity	1.0.5
com.apple.iokit.IOUSBMassStorageDriver	140.70.2
com.apple.iokit.IOSCSIBlockCommandsDevice	404.30.2
com.apple.iokit.IOSCSIArchitectureModelFamily	404.30.2
com.apple.driver.AppleCredentialManager	1.0
com.apple.driver.KernelRelayHost	1
com.apple.iokit.IOUSBHostFamily	1.2
com.apple.driver.usb.AppleUSBCommon	1.0
com.apple.driver.AppleBusPowerController	1.0
com.apple.driver.AppleSEPManager	1.0.1
com.apple.driver.IOSlaveProcessor	1
com.apple.driver.DiskImages	480.60.1
com.apple.iokit.IOStorageFamily	2.1
com.apple.iokit.IOReportFamily	31
com.apple.iokit.IOTimeSyncFamily	680.15
com.apple.iokit.IONetworkingFamily	3.4
com.apple.driver.AppleACPIPlatform	6.1
com.apple.driver.AppleSMC	3.1.9
com.apple.iokit.IOPCIFamily	2.9
com.apple.iokit.IOACPIFamily	1.4
com.apple.kec.Libm	1
com.apple.kec.pthread	1
com.apple.kec.corecrypto	1.0

EOF
Model: iMac18,2, BootROM IM183.0161.B00, 4 processors, Intel Core i5, 3 GHz, 16 GB, SMC 2.40f0
Graphics: Radeon Pro 555, Radeon Pro 555, PCIe
Memory Module: BANK 0/DIMM0, 8 GB, DDR4, 2400 MHz, 0x802C, 0x3841544631473634485A2D324733453220202020
Memory Module: BANK 1/DIMM0, 8 GB, DDR4, 2400 MHz, 0x802C, 0x3841544631473634485A2D324733453220202020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x16E), Broadcom BCM43xx 1.0 (7.77.37.31.1a9)
Bluetooth: Version 6.0.7f10, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
Serial ATA Device: APPLE HDD HTS541010A9E632, 1 TB
USB Device: USB 3.0 Bus
USB Device: Bluetooth USB Host Controller
USB Device: FaceTime HD Camera (Built-in)
Thunderbolt Bus: iMac, Apple Inc., 33.1

-jim lee
 
After a day of hacking on my teensy stuff I quit the teensyduino and it took the entire mac down. Power off, everything.

I don't know if it'll help, but here's the stuff apple wanted as a report.
...
-jim lee
-jim,
Can't comment on the crash other than to say I have found it to be as good or better than previous versions, although I too experienced a crash like yours back when I first switched many months ago, but none since.

The MacOS Catalina versions are named a little weird if your used to the pre-catalina. https://forum.pjrc.com/threads/59054-Teensyduino-1-49-Released?p=227003&viewfull=1#post227003. Should add that there is no Teensy Installer req'd and everything you might have picked to include with it is already installed. The little Teensyduino helper app that comes up when you have a Teensy board selected and compile is now called Teensy.

I could be wrong but I think the name changes were required in order to not conflict with the unaltered Arduino application that must be code signed by them eventually if they haven't done so already. Perhaps the crash we both experienced was something security related with apple since like you my mac had been up many weeks before the installation.
 
Regarding the failure to upload to T4, I just wanted to share the following.

It is not a bug report and I'm not expecting anyone to do anything about it. It should be treated as anecdotal only.

I have been building a device around the T4 for a while. The T4 has its VIN trace cut, and this seemed to really contribute to the problems. The development system is a Dell XPS 15 with win 10. Strangely, I have found that all the problems go away if I put a plain old unpowered USB hub between the T4 and the computer. The problems with upload, and the USB hub solution, have held over several different T4s and hardware builds. There are too many unknowns, so it the culprit could be windows, it could be the laptop, the external power circuitry. I do not know yet.

As I said... *anecdotal only*... not a bug report. Just thought I would share my experience.
 
just my two cents:
Oh, that could be the ground loop problem, Frank B mentioned some posts upward, depending on the type of power supply, peripherals, etc. The hub "recreates" the USB signals and might contribute in ironing out any issues with levels and timings.
I've found thant both my Vaio and the HP produce some sort of "static hum" on the metal parts of the shells when connected to AC via their original power brick. They have the grounded italian and german 3-prong connector to the grid. The wall socket has clean and good ground, so I suspect it is some issue within the power bricks, maybe some filtering. The 2001 Toshiba has a eurio 2-pole and does not produce any kind of this hum. Also, the travel power supply for the HP has only two poles and does not introduce hum.
 
Yes, that seems correct. This confused me also.
On macOS 10.15.x Teensyduino.app seems to now be a full replacement for the Arduino.app (likely because of security issues - modifying other applications is not allowed).
The PJRC.com web pages about installation and first steps are very confusing for macOS 10.15 users as a result of this change.

Teensyduino 1.5.1 is working fine on macOS X 10.15.4 for me FWIW (to a Teensy LC).
 
Status
Not open for further replies.
Back
Top