Looks like it's working but you're printing the wrong thing in loop().
Run this...
#include <DMAChannel.h>
#define SAMPLES 128
__attribute__((aligned(32))) static uint32_t...
Type: Posts; User: PaulStoffregen
Looks like it's working but you're printing the wrong thing in loop().
Run this...
#include <DMAChannel.h>
#define SAMPLES 128
__attribute__((aligned(32))) static uint32_t...
It should work.
Is the DMA transfer ending with error status? Or does it complete but without any observable effect?
Arduino's website has 3 downloads for Windows. Only 2 of them work with Teensyduino.
23417
Any chance you actually have this "Windows app" version?
According to the data sheet on page 14, this is a 20ns access time part. A slower (presumably cheaper) version exists with 30ns access time, which is probably a sign whatever you're trying to...
It will only install into a complete copy of the Arduino IDE.
It is indeed headless, but only if you run it with the "--dir=" option as documented on the web page under "Command Line Install". If you omit that command line arg, it will run with the GUI.
...
Maybe this should be a new thread, but I'll just briefly mention my hope for WebHID to become officially supported by Chrome and hopefully other browsers.
https://web.dev/hid/
Then it will...
Wow, that's quite a statement to make!
The Teensyduino installer provides that "headless" non-GUI install option specifically so you can automate adding Teensy's files to a copy of the Arduino...
Check out the "Command Line Install" info on the Teensyduino download page (scroll down... it's after the GUI installer screenshots)
https://www.pjrc.com/teensy/td_download.html
We currently do...
Officially, no. The 2nd USB port is only supported in USB host mode.
Unofficially, I believe WMXZ published a library with the normal device mode code converted to use the 2nd USB port. As I...
Can you give me a small self-contained program (using only libs Teensyduino installs) which I can copy into Arduino (not PlatformIO) to reproduce the problem?
To specifically answer your question:...
Windows doesn't allow programs to write to the folders where the APP software are stored, even if run with admin privilege.
As Defragster explained, Teensyduino needs to install patches to the...
Yes, but you need to use these longer pins and these sockets (2 of each):
https://www.pjrc.com/store/header_14x1_d.html
https://www.pjrc.com/store/socket_14x1.html
These allow the longer...
Usually this error happens on Linux when attempting to install into a distro-provided copy of Arduino.
Only the original Arduino IDE from Arduino.cc website is supported. The many modified copies...
Looks like this should be fairly straightforward.
I've learned the hard way (many more times than I'd like to admit) about putting too much work into supporting a new platform or new tech before...
Is CircuitPython supporting use of both M0 processors? How is (or will) concurrency and synchronization managed?
Did you create a "portable" Arduino IDE and try installing Teensyduino into that copy? That ought to be the simplest way to get Teensy working.
To fix this problem affecting all Arduino copies...
Linux on Teensy would be somewhere between "not worth the incredible effort" to "pretty much impossible".
There is no MMU, so you're immediately resigned to not-so-useful ucLinux. The best case...
Yet another update - programmed 3 chips today and soldered them to virgin boards. The bootloader comes up and works with Teensy Loader, but still some issues remain with booting up in certain cases....
How many LEDs is this? Is this a huge project with 400 long LED strips? Or just 400 LEDs total?
Teensy 4.0 better be better, since our retail price is 5 times as much!
Follow these instructions:
https://www.arduino.cc/en/Guide/PortableIDE
The very first step says "a compressed version of the Arduino IDE according to your OS", which for Windows means you...
I believe the real lesson was learned by that guy who tried to launch the $9 "C.H.I.P." board.
Click Tools > Boards. Whatever it shows, select a non-Teensy board like Arduino Uno. Wait just a moment while Arduino updates itself. Then click the menu again and select Teensy 3.6.
Arduino...
On the serial device raw mode, the Linux native functions are tcgetattr() to fetch the serial port parameters, cfmakeraw() to change the setting in the "struct termios" data, and tcsetattr() to write...
To check a digital signature, you need the public key associated with the private key which was used to generate the signature. The public key isn't secret. You can put a copy of it into the...
Just a blind guess, since we can't see this C++ code, but a problem which has come up many times before on all Linux system is "unix line discipline". Basically, you need to configure the serial...
Did you install the udev rules? Is ModemManager interfering? Those are the 2 most common problems on Linux systems.
I personally use Ubuntu 18.04 and it works great. I don't have any systems...
Didn't see any mention of config fuses or internal flash. Maybe there's some way to do security without internal storage of a secret key or hash of a public key?
I didn't see any mention of flash encryption, firmware authentication, or other code security features. Kinda makes me wonder if they'll be able to sell these microcontrollers to traditional...
I wonder if they have a way to generate MCLK for I2S chips?
The USB controller looks very similar to AVR and SAMD - no bus master DMA, packets transferred to a dual port memory.
I don't understand what this means? Didn't see anything like that in the datasheet.
The SWD does have a feature to allow more than 1 (perhaps up to 7) of these chips to be accessed on the same...
I spent a couple hours reading parts of the datasheet. It's refreshing how well written it is, much nicer that what we get from NXP, Atmel/Microchip and ST. I probably read & skimmed less than 100...
Pico does indeed look really interesting. I've only just learned about it minutes ago. So far I don't know much about it. At only $4, it certainly is much cheaper! It's said to be Cortex-M0 at...
Yes, on Teensy 4.0 & 4.1, you can remap to any digital pins, even less than or more than 8 pins if you like.
In Arduino, click File > Examples > OctoWS2811 > Teensy4_PinList to see how.
On...
FWIW, the Teensy 4 experimental ADC code uses 4X oversampling and a FIR filter, but still lacks (useful) DC removal and the resampling to 44.1 kHz is crude rather than proper interpolation. The FIR...
AltSoftSerial does not work on Teensy 4.1. The main reason is a belief that 8 serial ports are enough for anyone (kinda like 640K on old PCs....) Likewise, SoftwareSerial when used with non-serial...
Here are the 2 OSH Park links for CS42448 hardware.
Teensy 3: https://oshpark.com/shared_projects/2Yj6rFaW
Teensy 4: https://oshpark.com/shared_projects/gVFy0fWQ
ADAU1966A works with TDM output. So far only tested with Teensy 4.0 & 4.1, but almost certainly works with Teensy 3.x.
https://oshpark.com/shared_projects/O7iqdcLr
SPH0645 works, but requires a software filter to remove DC. I put an example in the library some time ago. File > Examples > Audio > HardwareTesting > Microphones > SPH0645
Edit: MP34DT01-M...
ADC input on Teensy 4.0 is still experimental and currently only supports mono. It sort-of works, but probably not well enough to be useful for most projects.
If you or anyone else wants to dive...
PCM1802 should probably link to this page.
https://www.pjrc.com/pcm1802-breakout-board-needs-hack/
In addition to the PCB error on the most common breakout board, the FSYNC signal has been a...
Yet another update... doing more testing. This morning I found (and fixed) a timing issue with initializing the flash chip's non-volatile status2 register. This is another place where the Teensy...
Any use of pinMode will do this. It completely reconfigures the pin, overwriting the previously set interrupt config.
Maybe pinMode should check for this case? I'm also considering adding a...
I copied your code into Arduino, but it doesn't compile. Stuff is missing. See below....
Since you already have the hardware wired up, try opening File > Examples > Encoder > Basic and...
I gave it a shout-out on Twitter. Hope that helps.
Another quick update - all the new code is in. On a virgin board, the fuses IMXRT fuses are set the first time the MKL02 talks to it. The initialization delivers a unique ethernet mac address as...
Maybe move stuff like this back to setup?
AudioMemory(20);
sgtl5000_1.enable();
sgtl5000_1.volume(defaultVolume);
If that doesn't fix the problem, just keep moving more...
Maybe switch to Teensy 4.1 and save that 4.0 for another project not needing as much I/O?