If it's completely unresponsive, let's first look at whether it's getting power....
Try using a DC voltmeter to measure VIN-GND (should be about 5V) and 3.3V-GND (should be 3.3V).
I tested the Teensy MM beta board in my DIY stepper motor carrier. This carrier is part of a solder paste dispenser project I'm working on since a couple of weeks. The T4 MM board finally motivated me to work on the...
There is no activity at all on the Teensy 4.0. No flashing or blinking red LED at all. Both just seem to be "dead" now.
Everything looks good to me. No solder splashes, which would be easy to see. No solder bridges,...
Yup. While most programmers would balk at code-dependent timing, if you use consistent overclock and compiler settings, linear strings of "nops" or loops with them are surprisingly useful. Always use FASTRUN to keep...
My main complaint right now is that the first prototype worked so well that it was put into use 2 days after I built it. So now I'm waiting on a digikey order so I can make another one and continue firmware development....
They're just plain old red LEDs in a 25x11 matrix. I use 2x 595s + mosfets as row drivers, and 2x CAT4016 current sinks to drive the columns.
1.0 / (5us * 255 brightness levels * 11 rows) = 71.3 Hz
71 Hz looks...
No - you are going to be in trouble if you use that one. Down the version I am using from here: https://github.com/ArduCAM/Arduino/tree/master/ArduCAM/examples/host_app/ArduCAM_Host_V2.0_Windows
The jack on the audio shield is output only, meant for headphones. To get a signal into the audio shield, you need to connect it here:
Probably best to start with this 31 page tutorial.
...
Yes, several times. But as I was saying, I am not allowed to utilize the Teensy audio design tool for this project as it is for a college class. It says on the Audio shield page (on PJRC) that audio data is transmitted...
Just a quick scan of the code, until this showed something like this could be going off the end of an array where for ( j=0 to limit (n_freq) ) - on the last valid entry it is referring and writing to j+1:
...
Hi Paul, thanks for the hint, I was accessing element of an array inadvertly.
Thank you for pointing out that this was common behavior, consider it solved!
Supposing this thread was found - but to be sure : forum.pjrc.com/threads/59319-Blynk-Support-for-Teensy-4-0
A post there might be seen by the maintainer if nothing else shows up. Not sure that thread has useful...
Usually these sorts of mysterious problems are due to a buffer overflow. Adding even an unused variable tends to cause the overwriting to corrupt something else (which is less critical and doesn't make your program...
Hello all, I've come around to a weird problem.
I have a program that computes a live FFT on an audio buffer and uses that to display that spectrum in an array of LEDs. There are 2 16x16 WS2812B LED matrixes connected...
Thanks Mark, this allowed me to do some more tests, and... here are my findings:
1 - The ladder filter will induce some significant unwanted fixed frequency noise when (at least) one mixer is used in the sketch. The...
@mjs513 - does this link the ArduCam viewer : arducam.com/arducam-host-application-demonstration/ ... there is a zip onder 'here' : precompiled execute program can be download from here
The test of a single uncanny...
@geekguy: Did the 15 second Restore proceed as > Button held 15 seconds to RED LED flash, Button release, some ~30 seconds of RED LED on, then T_4.0 return to 1 second Blink?
> It won't have active USB at that point -...
Hi all,
the Teensy 3.2 has 2 ADC's which connect to different pins. I want to set up some analog pins with a different resolution than the rest but to do that i need to know which pins relate to which ADC. I can't...
Thanks Gary.
SO yeah the POE incoming is 48 Volts however there's a DC Buck converter in my design that down converts it to 5V and is capable of drawing up to 3A. However I'm not drawing anything close to that.
...
Sorry, I don't have any real experience with a Mac. Since it is just a matter of substituting files in the Teensy folders, can you find the appropriate place on the Mac?
I just did this with one Teensy 4.0, but it still does not respond to attempts to program it. I have good USB data cables.
I have not soldered to anything on the underside of either of my Teensy 4.0 boards.
8-Dale
No need to plug anything in, just configure the i2s1 output object (it will flap the I2S pins (MCLK1/BCLK1/LRCLK1/OUT1A) so you can't use them for anything else)
You just need something that's clocked to drive the...
The sensor has a frequency response extending to over 22 kHz
With a sample rate of 20 kHz you will need a "brick wall" 10 kHz low pass filter between the sensor and the ADC. Otherwise the data could be hopelessly...
Actually not really. FlexIO is so intertwined with the DMA stuff that 98% of its still being called for flexIO dma. :) which I chose to leave in. That caused me some problems when doing that :)
Oh - just tried you...
Boy just #ifdef out all my stuff :D ;)
Actually at some point if we really want to kitchen sink it, we should also for the T4.1 add the CSI mode stuff.
@mjs513 - I hacked up the example, mainly just the callback:
void frame_callback() {
//Serial.printf("FCB: %d %d\n", tft.frameCount(), tft.subFrameCount());
uint32_t frameCount = tft.frameCount();
bool...
Thank you!
Just to be sure that I understand it correctly:
-> If I plug any I2S-device to the T4, the audio libary will probaply work. (audio shield for example)
-> And if I wait for the next software release, it...
@Bastiaan:
I would suggest a major simplification. Note that I am not somewhere where I can actually test this on a Teensy, so this is all "conceptual" off the top of my head. Normally, I don't think it is really...
You've seen and absorbed these resources?
https://www.pjrc.com/teensy/td_libs_Audio.html
https://www.pjrc.com/teensy/gui/
https://www.pjrc.com/store/teensy3_audio.html
Got it. I wouldn't hold it up either. It does seem to be working.
@Paul - @defragster
I did just make a few changes in prep for final release. I add 3 defines (at least for now) in the HM01B01 file:
// Camera...
For the most part I think it is an issue with the way the test is doing stuff...
So I may not hold up stuff on this. I am going to change the test callback to only do stuff for shutting down only at start of frame...
The ethernet kit that PJRC sells for the 4.1 has a ribbon cable that is at least 4 inches, so I doubt 2 inches of PCB trace would be considered long. As Phil said: match the lengths.
Lights are always a fun way to waste power (LEDs can be had that consume as much as 30ma, and there are light bars, too).
Of course you could also use a power resistor.
Given the power over ethernet is usually a...
So now I am in the very big doc of the IMXRT1060 and the source code of TimerTool. It's not very easy to find how to have a 150MHz or 100MHz with the CCM and use it for the GPT1 timer. I have search examples on...
If a capacitor needs to be added, what capacitance should it have?
I have this https://grobotronics.com/dc-dc-converter-step-down-5v-1a.html
Μaybe as mentioned the problem may be in DC to DC step down to 5V!
I will...
Hi everybody,
I want supply Teensy 4.0 on battery 5V (4s+adapter).
How did I do that ?
Tutorial supply for Teensy 3.2 said use Two 1N5817 Diodes. (with picture I understand)
But its different on...
Sounds good, I am assuming that the two others I ordered from Sparkfun, scheduled to arrive Sat at our PMB, which usually means Monday... Will be Mono as well.
As for the hang, I am pretty sure it is timing...
Not a problem, just wanted to let you know. Took a while to find a display that you didn't test with - saw you tested with the 240x240 and the 320x240.
One curious thing about the HM01B0. Was reading on the their...
I shall go forth and read, honestly had not even heard of that file before, thank you.
Stupid question, does the LC count as 3 or 4?
Edit: I think the answer is 3, but I'll leave the question in case I'm wrong...
Morning @mjs513.... Yep I need to look more at the shutdown... It did not go all of the way through... Which is why I added all of those outputs, back in the ILI coding of it. Probably something subtle.
Will play...
Very difficult to say what's going wrong here, but it does remind me of painful problems as couple people experienced with Traco DC-DC step down converters they bought from Adafruit. As I recall, the Traco datasheet...
Hello guys,
i am currently trying some stuff, i am using the st7735 with a teensy3.2 and encoder from Sparkfun. i am using the buttonEvent to scroll down and up(double click in the menu).
there are two questions...
Just tested your latest changes on a T4.1 with a Adafruit 128x128 display. Starts up fine and display looks good however after I toggle updates off screen stops but I can't seem to toggle it back on. Seems to hang the...
I'm a bit late to the party here but I've been messing around on other platforms with Cortex-M7 chips while attempting to create a quick PRBS generator using assembly. I've found that the "nop" instruction seems to...
With Teensy 4.0 / 4.1 you could do this using SPI1 on pins 26 & 27.
But with Teensy 4.0 those pins are on the bottom side pads which aren't as convenient as the outside edge pins. The SPI hardware registers are very...
Good day.
There are thousands of such implementations. It is important to know the power requirements of consumers and remember that it is not recommended to take more than 0.5 A from the port. Maximum ripple, Average...
Hi ,
I have the teensy 3.2 and when give power from 4X1.2 NiMh Battery ->4.8Volt to Vin and GND the teensy working well,when connect and disconnect the battery, the teensy starts running!
Now the problem!
When...
Good day everyone.
First, I want to thank the support for the help. Now my previous project Datalogger receives information at a speed of 5 Mbps, processes and stores the data. That's great!!! Now a new challenge. I'm...
hi silverlock,
had some other stuff to do.
id expect that it would countdown from 3,2,1,0.
but then it goes to 6:28:15.
unsigned long Days = 0;
unsigned long Hours = 0;
unsigned long Min = 0;...
Morning all
@KurtE - Just downloaded your updates from last night and yep resolved the compile issue. Did you sort out your compile issue?
@ecurtz
Your guess was pretty good. With a couple of tweaks it worked...
It was the hex file itself, not a 4.0/4.1 incompatibility? Interesting.
The soft reboot code is only implemented in the Linux portion of the code. There's just a stub for OSX and Windows.
Thanks everyone, I was able to get it to work on Linux (but not OSX or Windows). The culprit here was the included blink_slow_teensy40.hex file (even on the Teensy 4.0)--I recompiled a fresh one, and it works. So...
I'm working on porting some code I have on a computer to a standalone device with audio input/audio output and some processing.
8 16/24/32 bit audio streams at either 48000khz or 96000khz would allow me to bypass the...
Just a to bump to see if it would be possible to get an official download of this utility for Windows from PJRC? I did spend an hour or so trying to get it compiled with no luck.
Thank you,
And the transmit code:
const uint16_t* p = framebuffer.phases.data.shorts;
KINETISK_SPI0.PUSHR = p | SPI_PUSHR_CTAS(1);
KINETISK_SPI0.PUSHR = p | SPI_PUSHR_CTAS(1);
KINETISK_SPI0.PUSHR = p | SPI_PUSHR_CTAS(1);
...
Answering my own question:
// We don't care about CS, so set it to unused pin 24 (bottom side smd pad)
SPIFIFO.begin(24, SPI_CLOCK_24MHz);
// assign SCK to alternate pin 14
CORE_PIN14_CONFIG =...
I have a project design that literally uses every single pin on the Teensy 4.1. Literally all of them: bottom side pads, ethernet, USB host and all the exposed pins. I've added external buffers powered by VUSB to drive...
If the Teensy 4.0 is mostly dead, try holding down the programming pin for 15 seconds. This will cause the boot loader chip to reset the main chip and load a blink program. And obviously make sure you are using a USB...
Hi,
I have been away for quite awhile but I am back! ;) I just got my first two Teensy 4.0 boards from Adafruit, and I have Circuitpython one one.
However, the second one is totally unresponsive. It acts like it...
@mjs513
Obviously untested, but I think it would be a lot easier to debug with a double loop - here's my guess at what you're doing.
DMAMEM unsigned char image;
void send_image() {
uint32_t imagesize, fbc;
...
I can duplicate the problem on Raspbian if I load "blink_slow_Teensy40.hex" into a Teensy4.1 and then try and load it again.
me@raspberrypi:~/Documents/src/teensy_loader_cli $ ./teensy_loader_cli --mcu=TEENSY41...
They both have the same debug code... My last push up turned of the DMA test code in the ST7735/89 code. Let me know if that fixes it for you. Works on mine.
Thanks, that works for me on Teensy 4.1:
Teensy Loader, Command Line, Version 2.2
Read "spi_example.hex": 18396 bytes, 0.9% usage
Soft reboot performed
Waiting for Teensy device...
(hint: press the reset button)...
I just pushed up change for one fix for 240x240...
I can start and stop, sometimes a few times, but sometimes it hangs, so I need to debug more of that.
@KurtE
Think your latest rounds of updates to the 7735 lib broke something in the HM01b0 library:
C:\Users\Merli\AppData\Local\Temp\arduino_build_418531\libraries\ST7735_t3-t4x_dma_no_copy\ST7735_t3.cpp.o: In function...
@KurtE
Ok I give up. Got be doing something wrong someplace and not sure where. What I am trying to duplicate is what we did in your CSI_41_main in the send_image function. But just can't seem to get it right. ...
The broken pipe error was caused by a too short "SET_LINE_REQUEST_TYPE" message. The system was expecting 7 bytes (4 bytes for speed, 1 for stop bit, 1 for data bits, and another for parity) but the loader was only...
No comment on git :)
Any I just compile the test sketch that you posted with the latest updates to the ST7735 library and got no errors. I tried 7789 only, 9341 only, and both uncommented still no compile issues. I...
I need to process camera frames arriving from an Arducam OV5642 via SPI. If I add both QSPI chips I can get a 16MB buffer which is large enough for to store a RAW format or a JPEG format which can then be uncompressed...
Oh nevermind, I was testing with a Teensy 3.6, since that was what I happened to be working on. Tried again with the Teensy 4.1 and I can repeat the issue - no soft reboot working for me either.
Interesting that I'm...
When you say plugged in, you mean plugged into and powered off of the USB, or are you using an external power supply? Which Teensy are you using? I've been using the Teensy 4.0 by itself (not plugged into any board),...
@defragster - not sure why not building? Obviously only define one of the two displays... Actually in my current version one of 3...
Note, I should probably hack it up some more for which ST7789... There are lines...
I just checked my use case again. If I don't have the Teensy plugged in and powered on, my readout is:
Teensy Loader, Command Line, Version 2.1
Read "spi_example.hex": 15572 bytes, 1.5% usage
Error opening USB...
It works if I push the button, so it doesnt' seem to be a port access or cable issue.
I installed the UDEV rules already.
The -s options says "Perform a sort (soft?) reset request by searching for any Teensy running...
What do I need to change in SPIFIFO.h to use Teensy 3.2 alternate SCK on pin 14? I tried looking through SPI.cpp, but I'm having trouble understanding how the pin mux(?) is setup.
I'm just looking to hardcode SCK to...
*cricket noises*
Here is an update as I continue to try and solve this problem; I found the IOMUXC_SW_PAD_CTL_PAD_GPIO_B_ registers in the NXP DS and I read their default values which are decimal 4272. The LSB is...
And with a good cable and restarting dnsmasq on the linux box I finally got an IP address via DHCP!
I am very happy and sorry to have you worried. tcpdump is a good friend.
For those who are interested: the yellow...
@mjs513 which one? Hard to say. Maybe depends on what the power source is. If ac might just use wallwart if battery depends, when I was playing with nimh or lifo for 6v servos I used different... but for 3s lipo I...
The "Error opening USB device: No error" may suggests a bad cable or some other software on the system has taken control of the USB Serial port or the Teensy doesn't have an active USB Stack running to recognize the...