okay hardware and interrupt pins seem to work. I have two function that are disturbing the interrupts/counting. when this is running in the mainloop:
void showPresetOnMatrix(int preset)
{
for (int i = 0; i < ROWS;...
Hey! I am in the process of migrating a project from the arduino to a teensy 4.0. It is a Sequencer Module for a Eurorack Synth. It can take to trigger inputs for counting through the 2 Sequences of my module. In the...
Hello and thank you for your video presentation about processing audio on the teensy. I'm trying to round up hardware and noticed that the 3.2 is out of stock. Is it possible to use the 4.0 interchangeably as long as I...
haha actually it works!!! I just selected the wrong programm that should be uploaded in Platform IO. It was actually set to the blink project :D Thanks for helping out!
Ha! I was downloading the udev rule and copied it in the right folder and now i get a sccess instead of an error when uploading the program. but it still seems the arduino is running the blink program. or i got messy...
Hello and thank you for your video presentation about processing audio on the teensy. I'm trying to round up hardware and noticed that the 3.2 is out of stock. Is it possible to use the 4.0 interchangeably as long as I...
Hi,
It seems TEENSY41_NE has problem with i2c (wire2). We tried at least two TEENSY41_NE boards and they both show the i2c problem (no messages received from the slave). Exact same code works fine with TEENSY41. ...
Hi Kurt. I tried this earlier today. With no change to SPI source, it's about the same as SPI.transfer16() with the set/restore of framesize. If you set the delay fields of TCR to 0, then you get about 2/3 of the...
I would double check the udev rule, as when I install teensyduino directly for Arduino IDE, on Ubuntu, I have to manually copy the file to the right location.
Edit, and I would also maybe see what the linux tells you...
Did you install the udev.rules on this machine?
I thought I dont have to since PlatformIO is handling it. It also opens the Teensyduino window when I click on Upload in VSCode.
But will try another cable, but I think...
Did you install the udev.rules on this machine?
https://www.pjrc.com/teensy/td_download.html
Maybe try different USB cable. Maybe it is a power only one?
Hey!
I am just switchting a project over from an arduino to a teensy 4.0. I am working on Fedora37 on a framework laptop running VSCode and PlatformIO. I can build and test the program that I am working on and was...
Please try EncoderTool v3.2.0 and TeensyTimerTool v1.3.0. They should work together in the old and the new IDE.
And no, it does not accelerate things if you post the same complaint on each and every channel after I...
Quick note: I personally try not to make any assumptions about the experience levels of different members up here, unless of course if they mention it. To me it is often more, a matter of what your current project is,...
Hello I want to use the deafult fft code with my teensy 4.0, teensy audio board and I have MAX4466 anlog mic and Adafruit I2S MEMS Microphone Breakout
Am I able to make this code work on one of these microphones, if...
This is driving me nuts.
In the IDE compilation randomly fails. Nothing is being changed, I just have to keep pressing the Verify button until it works. It fails more times than it works. Looking at the output logs...
@kurtE, I would maintain that the low level should be save/set the number of bits, and transfer, and above that a call that does an 8/16/32/block transfer with all of the dress-up. But then maybe it should be...
Well that's neat, the code. Thank you.
I am very grateful for the help that has been offered, that you know the part and the library so well is a huge help, and I appreciate the reasons for supporting the less...
As you said, that definitely sounds challenging. I don't write linker scripts so I can't try.
Also I've wanted to talk about #1 and #2 again. I tried using the SdFat_Usage sketch and the only begin() functions which...
Just a completely blind guess, but if the keyboard is arranged in a row-column requiring scanning to read out all the keys, often extra delay is needed between driving the rows and reading the columns.
Everything is a tradeoff... There used to be code in place, that would remember if the last output was 8 bit or 16 bit and if the next one is different it changes the setting. Which in isolation worked great.
...
@luni, Issues registered on github. Don't know what else to do. I realize you are busy, but would appreciate your help here. Thanks.
Trying to set up a gitlab repo with full instructions on how to build, but...
Paul and the many contributors here do an amazing job of balancing simplicity for new users with access to all of the capability for the more advanced. Perhaps they will take your suggestion, but in the meantime, you...
Ok thanks, and it looks like the command pinMode(pin, INPUT_PULLUP); is already using the highest pullup resistance, so I am chasing the wrong solution.
I have a keyboard that the keys are not easily detected. I...
@joepasquariello Perhaps you are right, I should have stopped at the first line. Let me rephrase.
My sincere feeling is that in an embedded environment, the default API should be close to the hardware and...
The folks at Arduino forum report that command history was added to the serial monitor in version 1.8.10 of the IDE
But, it seems to be missing from my recent install of 1.8.19 with Teensy. Up-arrow in the Serial...
Hi.
After only reading for all times, I registered today to ask a question about the Teensy 4.1.
This one Teensy 4.1 is dedicated to testing highly efficient Organic LEDs. The Teensy is powered by USB.
At higher...
Have you tried deleting "PROGMEM" from all the places with "error: section attribute not allowed"? Seems like the easy and obvious first step.
Looking only briefly at your code, I see you have a "lib" folder where...
Hi,
Thanks for response.
I do not have a version which works with Arduino IDE as I had to move to VSCode when the code started becoming too big for me to handle.
I will try to make a copy which works with...
You really should use real pullup resistors, between 1K to 4.7K. But if you omit them, if using the Wire library on Teensy 4.0, the weak internal pullup resistors are activated. They result in a weak / slow pullup...
As for what went wrong, almost impossible to guess from only this info. Just a defective board doesn't make sense if 2 have failed. Likewise for ESD, unless you have a really horrible environment (you would know as...
To start troubleshooting, first get a DC voltmeter. Measure the voltage between VIN and GND. It should be 5 volts, from USB. Next measure the voltage from 3.3V to GND. If Teensy powered up, it should be 3.3V.
If...
I have tried multiple ways of uploading to a Teensy 4.1 headlessly from a Raspberry Pi using the Arduino IDE over VNC, arduino-cli & teensy_loader_cli.
This is the command I use with teensy_loader_cli to upload (.hex...
Yes, the i2c interface cant work without Pull-Up's. It's an Open-Drain bus structure
It's due to the fact, no output will ever pull the given wire (SCL/SDA) HIGH, only LOW, so to be able to ever go HIGH a pull up is...
And this is exactly the reason why I'm trying to hammer it through the Arduino devs to promote these in the Tools menu and promote board vendors implement them.
It's really easy to do but the Arduino people need to...
I tried this approach using the for loop, and while for some fairly light graphics it works, when lvgl animations are triggered, this is where you can really see the for loops hanging the CPU. IF dma could do the...
I am trying to use my Teensy 3.2 /4.0 as webserver. I would like to use teensy 3.2/4.0 instead of 4.1. Unlike the esp32 teensy don't have built in wifi so I have been thinking of using a xbee to connect to a wifi. I...
Hey all,
I have two buttons on my teensy 4.1 project that I'd like to merge to one. I got it mostly working, but I am having an issue I will detail below. First, here's their functionality:
Button 1: This is a...
All my warnings, like iso C++, unused variables are fixed and all of ILI9341_t3n issues are resolved. Thanks to all for your help.
Only thing left generating issues are EncoderTool and TeensyTimerTool. The new...
Is there anything wrong with supporting a dedicated or user managed paradigm alongside of the multiple device paradigm?
After all, an MCU on a few centimeters of embedded pcb, is not a desktop. Should so much...
Whoops. Compiler optimizations got me. The actual results are transfer16() = 465 cycles (775 ns) and specialtransfer16() = 404 cycles (673 ns), so the savings is 100 ns. The additional savings from reducing the CCR...
Might depend on the device - the 'generic' device following the protocol versus some other?
@tonton81 did a SPI Master/Slave Teensy to Teensy library with err check and other control elements where he could program...
Hmm. Ok.
It seems in fillRect, the arguments are int16_t x, int16_t y, int16_t w, int16_t h, whereas w and h in getTextBounds are uint16_t. Guess I have to roll with it. Doesn't feel consistent, but that's me.
P/S Really, in a dedicated system with one device, even more so that it transfers in blocks, it hardly makes sense to have to save, set, transfer and restore every word.
And for a small MCU system like the...
@joepasquariello Fantastic!!! Thank you so much. So then the hypothesis was right, the setup for 16 bits takes a big part of the 150 nsecs.
BTW those times are from the call to the start of the transfer, yes? ...
Another Teensy dead. This time I pressed the Program button and it was one long red, on and off. Reconnected it and now it's no LEDs, totally dark, dead and Windows says "USB device has malfunctioned."
I'm grounding...
I am making a split keyboard with a pair of 4.0s and I am unable to get a basic master read sample working. Do I need pull up resistors for this scenario? I'm using a common ground and pins 18 and 19. Any tips would be...
Paul I created separately thread for my project.
It is here https://forum.pjrc.com/threads/72019-Realtime-pitch-shifter-flange-chorus-and-modulator-MULTI-FX-Project
Hi everyone,
Finally I got to work SGTL 5000 in way what I want and now Im able to writing own effect codes :D
Still I have little issues witch my code because I used queues. I know that will be better if I going to...
I cleaned up my test code and ran some tests:
DTCM(RAM1) to DTCM, DMAMEM or EXTMEM rotates properly for square buffers.
DTCM source is showing issues with rectangular buffers for all destinations. I suspect this...
Guessing that you used older compiler and maybe either did not see the warnings or maybe did not generate them.
Yes there are three of them:
void getTextBounds(const uint8_t *buffer, uint16_t len, int16_t x,...
If you build your own PCB using the T4 bootloader chip, it will work as lockable Teensy.
If you want your custom board to work as standard Teensy, do not run the LockSecureMode sketch, and run the small program shown...
I wasn’t aware the other 4 buffers were broken, good to know in the future though. Sounds like you’re more familiar with it than I am so I can only help so much.
However I don’t think the PXP rotation is going to...
That got things in the menu on the IDE working. My test sketch compiles. Just got to get it debugging. Do I need to launch gdb nanually in this environmen? I am more used to Platformio.
Attached is my sample rotation app that works well so far
FlexIO actually has 4 buffers, so that would be 8 pixels per shift command until the buffers are empty. (Data sheet says 8, but many people here have had no...
Production Teensy 4.x's ship with fuses locked that ensure long happy unbricked life.
The 1062 MCU is the same Production or Locked, the diff is the Fuse settings.
Looking at the ic_mkl02_t4.html link text it...
Odd, I haven't even been using Teensy that long... I only started 1 May 2022. I downloaded a zip file. Maybe the zip file was old?
Been a lot of confusion lately. So how does one use this? Minimal example? ...
I’m curious, since you are using FlexIO, if it wouldn’t be beneficial to make use of its buffers rather than maintaining 2 complete buffers for the screen. Since each FlexIO has 8 32 bit shift registers it can buffer 16...
So I actually used some of your sample code in the beginning of the post and got the rotation to work!
Source buffer is in RAM1 and destination is in RAM2.
Takes about 3ms to rotate 90/270 degrees and 13ms to transfer...
Yes updating to new compiler that checks things more... can get you lots of warnings.
I did a quick look of the github source for the header file and the blame view says that the api changed 2 years ago.
Note some...
Note: The IDE already has the preferences settings for warning levels.
It is just that the Teensy install does not use them. Possible changes and the like mentioned over in the Arduino forum in the post:...
There's a note in the illustration on page 1923 of the reference manual in the section about PXP rotation:
I believe that the PXP fetches and stores using direct memory access and will not benefit from caches for...
My old code used the following construct:
uint16_t x1, y1, w, h;
oldZval = Zval;
String newstr = "XXXXXXXXXXXX";
tft.setFont(DroidSansMono_18);
tft.setTextColor(ILI9341_GREEN, thisGREY);
...
Hello Paul,
Thank you for your quick response.
I understand now how to identify which version it is.
But I am a bit confused now.
Are there any hardware chip differences? Eg needs a different RT1062? or it...
I've seen a Teensy developer having problems with warnings stopping their compile sessions trying to move from Arduino v1.8.x to Arduino IDE v2.0.3.
While I added in-circuit debugging to the STM32 platform for IDE v2,...
If you really want to do this, maybe you're now ready for that linker scripts rabbit hole (as mentioned in the last paragraph of msg #2).
To avoid the need for a dynamic loading process that re-writes all the...
Assuming you are still trying to use SPI...
I could be wrong, but not sure the special transfer16, will gain you a whole lot. Maybe the save, set, restore eats some cycles, but as compared to the rest of the stuff...
...
Now I realize the challenge that comes with loading programs from an SD card... It's basically forcing you to make an executable format from scratch and that isn't easy lol.
As per documentation, conversion (sync) clock can go high during clocking-out of data, so length is not an issue, as long is is longer than 1 bit clock.
@joepasquariello So.... my shower thought this morning.... three new calls for the API, set16bit(), specialtransfer() and restore(). What do you think?
The other thought is that what I should do first is time...