Not seen on this list things tried is running the card diagnostic programs, specifically File > Examples > SD > CardInfo or File > Examples > SdFat > SdInfo (and showing us a screenshot or exact copy of whatever they...
Since the old thread was started, SD card access has completely changed. We switched from the ancient SD library to SdFat, and SD.h is now just a thin wrapper which uses SdFat to access the card. Filenames are no...
Just to confirm, you added the fast diode in parallel with the motor, right?
I see a lot of other stuff in msg #15 but no mention of the diode. The diode is by far the most important part.
(imagine Anakin and...
If you find any insight about what path issues got arduino-cli so confused, please share.
With the old Arduino 1.8.x software, we've seen pretty much every problem many times and we know how to solve them. But this...
Try running "arduino-cli version"? What does it show?
When I try here with the latest, I see this:
arduino-cli Version: nightly-20220624 Commit: 4a4b784 Date: 2022-06-24T01:38:17Z
Here's a screenshot of how...
Yes, this was a minor issue that came up when I wrote pwm.c. Seems like a lifetime ago... before the pandemic and chip shortages!
Some timers were just 1 or 2 short of supporting full 16 bit range. The quick and...
Two quick things to try...
1: replace MIDIDevice with MIDIDevice_BigBuffer.
2: edit ehci.cpp to uncomment this line:
//USBHS_PORTSC1 |= USBHS_PORTSC_PFSC; // force 12 Mbit/sec
To be honest, I'm...
Yes, confirmed, late July. If you need Teensy 4.0 before then, buy what you can from distributors who still have them in stock (if they haven't run out yet... as they almost certainly will soon).
And of course we're...
Yes, it absolutely does matter.
A lot of work goes into each Teensyduino release to test a set of libraries which work together. Starting with Teensyduino 1.54, we abandoned the ancient SD library (which only...
Correct, the FlexPWM and QTimer hardware is only 16 bits.
Best to look at the GPT timers. They are 32 bits, but there's only 2 of them and only limited access to the pins they can control. Maybe there's some GPT...
Try changing the order of the includes.
If that doesn't help, please give us a way to reproduce the problem. Even if the program seems trivial, please post a complete program so we can just copy it into Arduino and...
Sure, that's easy. Ran it here on a Teensy 3.2 and LC. Indeed it seems Teensy LC isn't working.
On Teensy 3.2, here are the waveforms my scope sees on pins 2, 14, 7, 8. The waveforms keep repeating with different...
I think it seems really interesting, but I'm too overloaded with dealing with chip shortages and another PCB revision on Teensy 4.0 & 4.1 to do anything with voice recognition right now.
I'm hopeful the chip crisis...
Now, about the original question of the 4.7K pullup resistor connected to 5V power. While it's not advisable and does stress the Teensy pin somewhat, the 4.7K resistor issue alone does not destroy a Teensy 4.1. The...
Your diagram appears to have the DS18B20 connection very wrong. This is the correct DS18B20 pinout:
Looks like you've connected +5V to the GND pin, GND to the DQ pin, and Teensy pin 2 to the VDD pin. All 3 pins...
It's a hardware limitation. Freescale (now NXP) decided to connect the UARTs for Serial1 & Serial2 to the faster CPU clock (F_CPU). The other 4 ports run from the slower peripheral clock (F_BUS). The other Kinetis...
I believe you. You don't need to prove anything. Please instead pour that effort into giving us a reproducible test case. What's needed is a way to reproduce the problem, hopefully without time consuming guesswork,...
MSGEQ7 is not commonly used with Teensy 4 (or Teensy 3) because these boards are plenty powerful enough to do far more sophisticated spectral analysis entirely with software. So there aren't a lot of MSGEQ7 examples...
If you change your mind and want to figure out why it didn't work, we could probably help much more if you show us the wiring with photos and clear diagrams.
Tried this just now on Linux. Both 2.0.0-rc7 and nightly-20220618 show the boards first time I click the Tools menu. Maybe it's a Windows only bug? Or maybe it's some sort of race condition where the computer CPU or...
I've felt this way many times over the years regarding the problems with Windows installations mysteriously missing 1 or more files. The most recent would be Defragster's install of Teensy package 1.56.53 on IDE...
First check the USB connector and cable for damage or other issues.
If you do the 15 sec restore, the flash memory gets completely wiped and a known-good program is written. If the hardware is all good, that's...
Looks like I can get 2 windows to talk to the same port. Seems each window has its own port selection, which is different from Arduino 1.8.x, and of course IDE 2.0 has no way to know that different pluggable monitor...
Glad it’s resolved. Can’t say I know why, but I do know Windows uses a combination of info it gets from USB devices and prior info stored in the Windows Registry to enumerate USB devices and load drivers. It makes for...
Can you try the crashing code on a Teensy 4.1 having no other hardware connected? Or on a breadboard with just 1 MAX31855 chip and no sensor?
We can do a lot more to help when we're able to reproduce the problem. ...
Short answer is it's pretty much an arbitrary choice on my part. ;)
Arduino's version numbers are meant to follow a convention called semantic versioning. According to the official spec, at least as I understand...
Download Teensyduino software matching the Linux software distro. It doesn't matter if the ARM processor on RPi4 could run 64 bit software. It matters what software you are actually running. If you installed a 32 bit...
I've never tried to use the FlexNVM partition feature on Teensy 3.2. But according to the documentation on page 572 in the manual, it should be possible to dedicate 16K to EEPROM and use the other half as flash. ...
Ok, haven't ordered any MAX31855 chips, but I will if you can confirm that's what it takes to reproduce the problem.
FWIW, the program has kept running all day and still going, without any hardware connected to the...
Maybe you kernel lacks the cdc_acm driver?
Try watching the syslog messages as you plug and unplug the USB cable. On Ubuntu you would run "tail -f /var/log/syslog" in a terminal. The kernel should give info about...
My guess would be the diode is probably ok for a motor of that size.... knowing nothing of the motor's specs, just what I can see in the photo. The diode has no actual reverse recovery time specs either, so this is...
Probably better to edit the library to use MDIO to configure the chip.
MDIO lets you control all settings. Not sure which of the libraries currently has the MDIO code, but it's floating around somewhere. All the...
Yes, just edit E2END in the core library. Look for it in avr/eeprom.h (as E2END is an AVR convention). Max possible emulated EEPROM size for Teensy 4.0 is 3825 bytes. If you try to configure more than the hardware...
Running it here on a Teensy 4.1 with nothing connected, and the Serial.println( spiread32A() ); line uncommented.
It's not crashing.
Are you sure this will reproduce the crash on an unmodified Teensy 4.1 if I...
Is a MAX31855 chip required, or will the code crash if just run without anything (or just a resistor on MISO) connected to the SPI port?
Could you create a minimal but complete program with this code and confirm is...
CardInfo suggests the problem is a bad physical connection to the card.
SdInfo tried to use the 8 pads on the bottom of Teensy 4.0, so not a meaningful result since your SD card connects to SPI. Really no point to...
MicroMod does not yet have a lockable product. Sparkfun may add it in the future. But so far all MicroMod are the same as standard Teensy, shipped with fuse settings that do not allow changing the boot config to lock...
I'm pretty sure this problem is you're running out pre-erased sectors and LittleFS is having to do slow erase operations.
Sadly, LittleFS doesn't have any way to allow us to pre-erase the sectors. It's been...
Direct connection of the 4 SPI signals works fine.
If you use an adaptor board with a buffer chip, you might need to reduce the SPI clock speed. To see how, click File > Examples > SD > SdFat_Usage. Some buffer...
Try running File > Examples > SD > CardInfo.
You try File > Examples > SdFat > SdInfo. But this one is more complicated and might require editing.
These can tell you whether you see the difference been a SD card...
Hope you'll share on github and give the link. I'm sure people using TAS5720A in months and years from now will find this thread by search.
I'm also curious how you physically connected this chip. Did you solder to...
Maybe back EMF from the motor is somehow damaging Teensy?
Do you have a "clamping" reverse diode in parallel with the motor?
The purpose of this diode is to give a safe path for the motor's current to continue...
No, not fast.
Each CS pin remains at the same logic level throughout a SPI transfer of 8 or 16 or more bits. So even if you hypothetically had many of these hardware controlled CS pins (the most any Teensy can...
Can you say more about the 5V power supply?
Does it have extra capacitors located close to its input and output? We've seen problems before where those miniature switchers give stable 5V once they're running, but...
Yes, NCV8186AMN330TAG is an easy replacement if you just connect the output to pins 1,2,4 and the input to pin 7,8. Of course GND and EN need to be connected.
I'm curious too. Put this on my (very long) list of low priority issues to investigate. But odds are I probably can't do much on this anytime soon. So many other high priority items pending...
You could write some code to just disable the UART's transmit ready interrupt. Requires diving into the hardware registers, but as low-level hacks go, this one ought to be pretty simple.
Thanks. Added it to my list of severe (for Teensy platform) issues I'm watching.
Looking at that list, almost all the issues have been fixed since January. Hopefully soon we can get more people actually using IDE...
Yup, I forgot to add them to boards.txt.
Edited my copy just now, so they'll be in 1.57-beta4.
That is very strange. Maybe it was eaten by Windows Defender?
Ok, I've uploaded 1.57-beta3.
https://forum.pjrc.com/threads/70455-Teensyduino-1-57-Beta-3
It should automatically appear in IDE 2.0.0-rc7 Boards Manager as Teensy version 1.56.53. Well, at least for some amount...
I'm wrapping up 1.57-beta3 now. The Servo library will have to wait for a future version. At least this will give us all the new stuff on Arduino 2.0.0-rc7, like Serial+MTP, and hopefully we can test new filesystem...
Yup, you're right, those 3 are problematic.
I can only get "architectures=avr,*" to work on Ethernet and LiquidCrystal. With Servo, it's still giving preference to home/paul/Arduino/libraries/Servo and ignoring...
For 1.57-beta3, put in code to allow CLI to do headless compile. But headless upload is more complicated, so I'm going to save that for a future day (maybe even in version 1.58). Hopefully at least headless compile...
If this continues to be a problem, I'll probably write a tool we'll run with the postbuild hook which inspects the final ELF file and prominently shows warnings if wrong libraries were used. It's going to take every...
Do we need this same hack in Ethernet, SPI, EEPROM, Servo, SoftwareSerial, Wire?
It really feels like a hack. That's the SD library which traditionally in Arduino 1.8.x was considered built into the IDE and...
Ok, I've put this change into Teensy's copy of SD.
https://github.com/PaulStoffregen/SD/commit/ead866570a82baab25a8c0a582b58c23718f4054
Let's give this a try in 1.57-beta3 and see if anything important breaks!
...
If it happens again, even just a screenshot of the task manager would help. Details matter.
But code to upload to Teensy and steps to reproduce it on a specific version of Windows would be the best thing. If I can...
I deleted the code from msg #17.
Any chance you could try reproducing the error which caused the upload process to lock up? If there's a way to reproduce it, I'd like to investigate what causes that upload process...
Dead hardware is no fun. :(
Usually a dead processor will result in about 0.5 to 0.9 volts on the 3.3V power line, as the regulator tries as hard as it can to power up but goes into current limit mode. Usually...
I found the cause of the problem yesterday (which caused me an embarrassing number of lost hours yesterday and this morning....) I accidentally deleted a semicolon in Print.h while editing comments. Apparently the...
I started adding descriptions to appear in the function popups.
https://github.com/PaulStoffregen/cores/commit/37b69b854997391ab22188ac2c955fd7fe4b5654
But it seems the language server isn't highly stable. I've...
If the pins are somehow getting driven with more than 3.3V or negative voltage, a series resistor will help. It still stresses the Teensy pin, but by limiting the current it can really help the build in ESD protection...
Ran into a bug where autocomplete fetches things from the wrong place on the screen after changing the code without saving and then switching to a different board.
If you have time to write up steps to reproduce it,...
Also looks like turning off autoscroll in the serial monitor doesn't work so well if Teensy 4 is transmitting data at high speed. Going to wait to report this one... want to try writing special no-hardware-required...
Looks like the language server isn't paying attention to the selected USB type. I opened an issue on github.
https://github.com/arduino/arduino-ide/issues/1029
Zener diodes, especially the ones rated for lower voltages, are imprecise and fairly crude devices. To get an idea just how bad they are, put a 1K resistor between the diode and Teensy pin and measure the voltage...
As others have said, this is still a work in progress, though it does work pretty well if you use 1.57-beta2 and MTP_Teensy library.
https://forum.pjrc.com/threads/70409-Teensyduino-1-57-Beta-2
...
I've asked Robin to delete your account. Please understand this is a manual process, so it may be a few days before she gets to it.
Deletion or your account removes all personal info. Public messages you have...
As explained on the MKL02 page, you must pair this chip with 1 of 4 possible parts, which are the chips used on Teensy LC, 3.2, 3.5, 3.6.
No other chips are supported, except for the exact chip part from NXP in a...