Before contacting the Arduino developers, can you give us a bit more info. Maybe it is a problem with the Teensy utilities.
Two questions...
1: Turn on verbose output (both compiling and upload) in File >...
Can you give us a link to the NXP conversation? Just curious to see what their people say.
Not sure if it will help, but here is the earliest low-level code from before NativeEthernet and QNEthernet.
...
No, I didn't write any notes. When we start 1.59 beta, I will put the LTO options back in the Arduino menu, so it's easier to test what's working and what's in need of fixing to work with LTO.
1.58 has been released.
Please update your File > Prefs to put the URL back to https://www.pjrc.com/teensy/package_teensy_index.json (without "td_158" in the middle)
Turns out SD was broken on Teensy 2.0. Committed this fix.
https://github.com/PaulStoffregen/SD/commit/a87776904e6b0aa47cc296b96fdbc96c90ecff1c
Just rebuilt everything and starting the tests all over again....
I've updated the test package index.
https://www.pjrc.com/teensy/td_158/package_teensy_index.json
If you previously used this URL in Arduino 2.0.x, press Ctrl-Shift-P and click "Arduino: Update Package Index". ...
Are you asking about connecting the hardware mentioned in msg #3?
I don't know much about that hardware. A quick Google search turned up this page? Is this the right thing?
...
Looks like I neglected to put the AVR compiler for Teensy 2.0 into the new toolchain package for Arduino 2.0.x. Teensy 2.0 works with Arduino 1.8.19, but can't compile with Arduino 2.0.4. Adding it now....
I've put the tentative 1.58 release files on the server. If you want to give them a try with Arduino 2.0.4 or nightly, use this URL in File > Prefs
https://www.pjrc.com/teensy/td_158/package_teensy_index.json
First step to diagnose U4 overheating is measuring the 3.3V power.
If you see only millivolts, the short is probably metal. Often this sort of failure is fixable, if you can find and remove the stray metal.
But...
I ran more tests with serialEvent and _serialEvent_default. Here's a simple test program.
extern const uint8_t _serialEvent_default;
elapsedMillis timeout;
void setup() {
pinMode(13, OUTPUT);
...
Looks like ChatGPT gave you bogus code that doesn't even compile.
ChatGPT is really the ultimate in "book smart". It knows enough raw info to cobble together answers that look plausible. But when you actually try...
I've updated the list of changes since 1.58-beta3. It's a *lot* of small stuff. If I missed anything important or didn't credit the right people, please let me know.
I tested serialEvent. I also checked the value from Arduino sketch code and it was 1, not 0.
But I didn't try the hardware ones like serialEvent1. Will do that this evening.
I spent some time fiddling with LTO last night. It's far too broken to enable in the Arduino menu for a stable release.
Also looked at the serialevent and yield optimization. It is indeed confusing. Long term, we...
I have no idea why Arduino 2.0.4 isn't updating the package index on those old macs, but I'm pretty sure there's nothing I can do about it. Recommend giving it overnight to maybe right itself automatically... before...
Ok, lots of (hopefully) low risk changes just went in, so I'm packaging up 1.58-beta4 for a final quick chance to test. Plan it to test for maybe 1-2 days, fix any serious issues, then release 1.58.
Agree. I've committed a fix, which will go into the upcoming 1.58 release.
https://github.com/PaulStoffregen/USBHost_t36/commit/3e547948510e83f20f258f3ab0fb4866a0df7912
If the devices have common ground (perhaps grounded to the surrounding water) then any should work.
If they don't have the same ground, ethernet might be a good choice, since the signals are isolated via the ethernet...
Merged a couple of them.
The others I don't consider low enough risk right before a release. They fix warnings that only occur is using an even newer toolchain or different flags like -Wextra.
I've added noinline on ResetHandler2.
https://github.com/PaulStoffregen/cores/commit/c26cb0f290df67f9bb2497fe25edb2f06aaa1df2
Seems multiple other things are broken regarding LTO. I'm putting this in for 1.58...
This error means you're missing the SerialFlash library. It's one of the many optional libraries in the installer.
Run the Teensyduino installer again and install the optional libraries.
I'm considering wrapping up what we have now as version 1.58. The main idea is publishing the new toolchain, updates for MacOS Ventura, and some bug fixes.... but intentionally not putting many new features into 1.58...
Does your program have SPI.begin() somewhere? Or maybe it's inside a library you're using?
If you call any SPI functions without first calling SPI.begin(), your program can crash when it tries to access the SPI...
Yes. Look for the 2 links below the parts placement image. One of those has lots of info, including the parts list. Technically that list is for the older version, but pretty much all the parts are the same. For the...
I've added a "Using PT8211 Without Audio Library" section which links to this forum thread on the PT8211 page.
https://www.pjrc.com/store/pt8211_kit.html
Hopefully it will help everyone who wishes for use PT8211...
On MacOS, the default location when using Arduino 2.0.x is /Users/{username}/Library/Arduino15/packages/teensy/hardware/avr/{version}/libraries/USBHost_t36
The "Library" folder in your home directory is usually...
It wasn't ever turned into a commercial product, but this board was updated for Teensy 4.x. New version also on OSH Park.
https://oshpark.com/shared_projects/gVFy0fWQ
USB is the fastest way in terms of bandwidth, as it's 480 Mbit/sec and uses bus master DMA. You would need a USB hub connected to the main Teensy's USB host port.
Oh, I probably didn't explain this well. The pin 8 issue is purely a matter of hardware. Or at least I think it is, but I'm going only from the words you wrote. I can't see what you've actually done or how the wires...
Unlike Windows which only allows 1 program to open a serial port, Linux allows 2 or more programs to open the device.
But Linux doesn't handle that situation gracefully. You might imagine is would send a copy of...
Are both trying to transmit data to Teensy pin 8?
You probably need to sever the connection between the audio shield and pin 8, so it doesn't conflict with the microphone's data. The audio shield has a place to cut...
I'm guessing you're using Arduino 2.0.4?
With the older versions of Arduino, running the Teensyduino installer was necessary. It detects pre-10 versions of Windows which need the serial driver INF and Linux systems...
Run these commands in a terminal
cd /tmp
wget https://www.pjrc.com/teensy/00-teensy.rules
sudo cp 00-teensy.rules /etc/udev/rules.d/
Physically unplug and reconnect the USB cable for the newly install udev rules...
Both PT8211 and MQS sound pretty good to my ears. If you have a 1K resistor and 0.01uF capacitor handy, give MQS a quick try. I believe you may be surprised how good it sounds.
MQS uses a noise shaping algorithm,...
As a very first step, open your code in Arduino IDE and click Tools > Board to select Teensy 4.1. Then click Verify to check if your code is able to compile.
If your program uses Arduino functions like...
Looks like the mail server had the old forum IP number on its list of places allowed to send. Edited just now. Hopefully it will fix the missing notifications.
Or use waveform synth rather than samples stored in flash. Or just use fewer / smaller samples.
But yeah, 128K flash on the original Teensy 3.0 is kinda limiting when you want to include any sound samples or bitmap...
Yes, you can customize fault handling.
Teensy 4 already has a default fault handler which captures basic info. You can read the info at startup with CrashReport.
Probably the simplest way to get started would...
It's a nice idea, and you're certainly not the only person to have hoped for this. But the reality of the underlying technology an adaptor board that provides 100% compatibility just isn't feasible. The processors on...
U4 is the chip expected to get hot if the 3.3V power is shorted anywhere on the board.
Try measuring the 3.3V power. If you see 3.3V, then looking at chips other than U4 may be worthwhile. But if you get...
The servers are physically located in Tampa, Florida, USA. Just to put the ping times in perspective.
Can anyone outside the US comment with the ping times? Many times I've wondered if we should use a CDN. Or...
Right now, the urgent situation is IP numbers are getting reassigned, so we have to switch to different IP numbers. Both servers need to change IP numbers.
The path of least resistance probably would have been to...
Oh, looks like we're going to have about 20 minutes down time.... soon, while they do some sort of reconfiguration on the server. Should be just the forum down. Main site should stay up.
Indeed it's never that simple. The forum also needs to change IP number. Looks like it will become 66.232.106.something.
The hosting company is working on remote console access, which apparently never got set up...
The server switch-over is at about 95%. Hopefully the site is all working at the new server (162.254.150.250)?
Question... are you getting the forum's notification emails?
Now for some guesswork, since I don't know and can't reproduce the problem.
First, check which version of Teensyduino you have. In Arduino 1.8.x, click Help > About. In Arduino 2.0.4, click Boards Manager and...
I ran it here on a Teensy 4.1 with PT8211. I've uploaded about a dozen times. Haven't needed to press the pushbutton on Teensy 4.1 yet.
Robin just walked in to see what that weird sound was about, as the red audio...
Looks like this from your makefile (color for each part)
$(TARGET).elf: $(OBJS) $(MCU_LD)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
resulted in this command line executed (color for each resulting part of the...
This weekend we're moving the main PJRC website to a new server. Hopefully everything will go smoothly and the only disruption will be the shopping cart offline for several hours.
The forum is hosted by a separate...
Cutting the red wire is a good approach if using external power.
Removing the TPD3S014 chip doesn't change anything.
Also, normally TPD3S014 doesn't overheat, and it certainly should not overheat if you haven't...
Prices you see at PJRC and most other US websites don't include European VAT or tariff. Often the carrier will demand an additional payment when they deliver the package, to collect the VAT and tariff charges. ...
Sure enough, I can see the overshoot and undershoot on the cyan waveform.
Looks like your scope is triggering on channel 2 (cyan). Can you change it to trigger on channel 3 (magenta), so we can get a good look at...
Try changing #include <FLOAT.h> to #include <float.h>.
The filename is all lowercase. Using uppercase probably works on Windows and most MacOS, but will fail with a case sensitive filesystem used most Linux systems...
This is incorrect.
Teensy 4.x after the 15 sec restore, and every brand new Teensy, does indeed have USB communication as RawHID. The tiny program packed into just 4K at the end of flash memory, which gets copied to...
Wow, this is overly hostile and downright rude.
He did essentially show us the code in msg #9, it turns out to be just one of the published examples with IP number edited for his LAN... which is what I had assumed...
Try something like:
File subdir = sdSDIO.open("/EnvironmentalData/mydata.txt", FILE_WRITE_BEGIN);
If that doesn't solve your problem, try showing us a small but complete program so we can see and reproduce the...
Are you sure that new ethernet to usb c adaptor really works?
Theoretically, yes, this is possible. Or at least I believe it is possible based on the documentation. I have not personally tried it.
As a...
Can you show us the measurement? If your scope doesn't have screen capture, just a quick cell phone photo of the screen should do.
I tried the code from msg #4. Amazingly it does measure 600 Hz even when using pin...
This would definitely break the power up sequence at step #7. Details here: (scroll down to "Power Up Sequence")
https://www.pjrc.com/store/ic_mkl02_t4.html
The bootloader chip waits until the 3.3V power reaches...
You would need to wire the 2nd board's SDA & SCL signals to a different I2C port.
Later in 2023 we'll get the 32 pin chips and start making Rev D again.