OK, I got it to recognize the display. It turns out there are multiple problems with this setup.
I rewired everything for the sake of pictures and simplicity, and removed the power supply as you suggested Paul. This...
Thanks!
I found it but unfortunately it's still too vague as to how to communicate with this chipset.
Real bummer as it has a very small footprint, and seems to have strong capabilities.
Sadly, using 2 audio shields is more difficult because we lost the ability to configure the I2C address with Rev D2. Fortunately chip shortages are getting better and Rev D will return in a couple months.
You can...
Thanks Paul! I think I got it working. I arbitrarily picked those bits on GPIO7, not realizing that there were limitations on what pins can map to what bits. I used the MCUXpresso pins tool to build a configuration...
Sort of half fixed it.
The interrupts weren't working because I needed to add IntCAN.enableMBInterrupts(); to the init function and then call IntCAN.events(); during the while loop.
After doing that and switching to...
This is the code. It's basically just the setup code from the raw frame monitor. I confess once I'd got my ping that was enough to validate the hardware, so I've already passed the hardware on.
#include...
EDIT: I found that my problem is with my CAN adapter, nothing else as of now. I will update this message later when I am sure there are no other issues, thanks.
Hi, I'm working on getting my first CAN program to...
Are you saying it took a few minutes to get an IP address from DHCP? If so, would you mind pasting a small example that demonstrates what you’re doing? DHCP doesn’t normally take that long. (Slow DHCP server, maybe?)
Thanks for getting back so quick, Paul!
So, if I understand you correctly, I can use the one Audio Shield for ALL my audio input/output needs... But if I did want to separate them I could use one Audio shield for...
Hello, i'm trying using sp1.
First of all, i've changed so:
SPISlave_T4_FUNC SPISlave_T4_OPT::SPISlave_T4() {
if ( port == &SPI1 ) {
_LPSPI3 = this;
// 0=LPSPI1 1=LPSPI2 2=LPSPI3 3=LPSPI4
...
Thanks Paul, that's very useful to know. Teensy is soldered on a PCB and I don't really have the equipment to unsolder it easily, but I'll do some more testing. Cheers,
I have a project that needs to log all CAN-FD packets on a bus. It is working fine for low data rates (100Hz packets) but as soon as I turn the data rate up I get the overrun flag set and drop data.
The exact same...
Apologies, I was a little vague with that, your assessment is correct. What I should have stated was that I'm driving the display (16bpp) via USB from a desktop computer. ~9.7 is about right for the bandwidth available...
I'm not sure why this code isn't working. But I can at least answer this:
No, the ethernet PHY chip isn't configured at boot. It doesn't get any configuration at all unless you run one of the libraries which...
This sound like a low frame rate.. what color depth are you running at? And what bus speed?
At 16 bit color depth and 30Mhz bus speed (8 bits) you should be getting up to 36fps
If you double the bus width you can get...
For the sake of testing, I would eliminate the uncertainty of external power and use a short USB cable connected directly to a PC or powered hub (which should be able to output 500mA) and connect the display's +5V power...
I'm trying to follow your wiring in the photo and match it up to this Adafruit info
https://learn.adafruit.com/adafruit-led-backpack?view=all#1-2-inch-7-segment-backpack
Looks like you might have an external 5V...
I don’t know if this is still relevant.
But I hade luck with this simple code (to Write a file). I dont use "firstPartition.begin"
#include <USBHost_t36.h>
// Setup USBHost_t36 and as many HUB ports as needed....
IIRC, the ATMEL studio it handles ATMEL chips only, i.e. AVR, SAM.... Teensy uses NXP processors, I doubt that you can use ATMEL Studio for NXP processors.
The ATMEL Studio is using a very old version of...
But you wanted to know some weeks ago, how to use Atmel Studio with Teensy.
Are you not interested no more in the topic you opened?
Didn't you follow your question?
Do you program your Teensy in Teensyduino...
I've been studying the reference manual all day. I'm trying to map my new pins 100-109 to 10 pads on the IC as follows:
100 = B1_04 = E12
101 = B1_05 = D12
102 = B1_06 = C12
103 = B1_07 = B12
104 = B1_08 = A12...
On the Teensy, millis() calls are pretty cheap because they just read a 32-bit variable that’s updated by the “systick” interrupt. That subsystem is running all the time anyway.
Cooperative means non-preemptive, with each task voluntarily giving up the processor.
Cooperative and preemptive OS can have all of the same types of features for handling events, mutual exclusion, and inter-task...
Note: AsyncWebServer runs cooperatively and has similar behaviour and performance as polling/single-threading.
Deeper: it runs whenever QNEthernet’s `Ethernet.loop()` is run, and that happens internally in a few...
What do you mean by "cooperative multi-tasking"?
I do not want to argue, but any SW design which needs delau() or even miilis() is a not real-time (for me a "bad design").
A real time system should work based on...
That's pretty much the exact same size terminal I was going to use, to try out a trick I had in mind:
- allocate 128k (2^17) bytes for the framebuffer and align it to a 128k boundary
- set SMOD in the DMA descriptor...
I need to update the web page, yet again. In early 2021 all TLV75733P disappeared from the market. Robin bought a large amount just before they vanished, but the shortages lasted longer. In late 2021 we were forced...
Thanks, Been playing with it all day and I think I have a basic understanding of how it works. Next step is setting up for a text terminal and simple graphics. I am going to only use 640x400x70 16 color mode. This...
Hello friends,
I'm trying to get a Teensy 4.0 to recognize this display that uses an HT16K33 I2C driver chip:
https://www.adafruit.com/product/1270
The example (modified to scan all channels) I2C scanner will not...
My five cents:
a) assuming you use DHCP in MCU FW, and you get an IP address - this sounds to me as: ETH is working, it can talk to DHCP server (and get IP address assigned).
b) but if you use a STATIC IP address in...
Good to know that FreeRTOS will work for you. You can always avoid delay() by calling millis() and checking for the desired end time. "Polling delay" for a signal from ISR can easily be kept in the low microseconds, and...
When I check the schematics for the Teensy 4.1 board:
https://www.pjrc.com/teensy/schematic.html
What I see:
a) VIN is the same as VBUS (from USB). There is not any decoupling diode! So, you have to make sure,
...
Glad it's working.
Can you give any info about who sells this SD adaptor? I see it has marking HW-125, but no other info seem to be visible in the photo. Any info (as searchable text) about the make, model,...
Great to hear that it works for someone else.
FlexIO can definitely be a rabbit hole. The code here isn't what I would call very well documented so I'm happy to answer questions; at some point I want to strip it down...
You might need to use slower SPI clock. I don't know much about that specific SD adapter board, but I see it has a buffer chip and resistors. Often these boards with buffer chips work on regular Arduino board which...
Here is a FlexIO driver, in 8bit mode, for the ILI9806/G 854x480 IPS displays as found on Aliexpress. Using the Teensy 4.1 at default speeds, it's able to drive this display @ 9.7fps
Here is the solution: FreeRTOS for Teensy 4.x
I found and tried this:
https://github.com/tsandmann/freertos-teensy
Just "Sketch -> Include Library -> Add .ZIP Library" and it is there.
(for now, nothing to modify...
Hi, I recently purchased a Teensy 4.0 and needed to collect data on a micro SD card. I connected the CS to pin 10, MOSI to pin 11, MISO to pin 12, and SCK to pin 13. However, the card does not initialize. Initially, I...
Thank you.
Any polling, even a shared variable set by ISR is not "fast enough".
Meanwhile, I have figured out that FreeRTOS works (if you download and install the ZIP): no modification needed, works as I need (a...
If it's critical for your task to run as soon as the ISR exits, you could use FreeRTOS. I don't like that solution because it's not fully supported and requires some (small?) changes to the Teensy core. I prefer to use...
I think, the missing real RTOS hits me. I cannot accomplish what I want to implement:
when GPIO interrupt is triggered - a thread should be released (running outside INT context)
the interrupt handler should unlock...
Hey everyone, since i´m an absolute noob when it gets to programming, i´m wondering if there was a super easy example for a DMA approach?!
I dont even know if its possible since i could not find an example for my needs...
Did you see the example showing how to use the 23S17 (SPI version of the chip) https://github.com/luni64/EncoderTool/blob/master/examples/2_multiplexing/multiplexed_MCP23S17? If you need the I2C version, adapting the...
@luni, have you considered adding support for the I2C 23017 multiplexer? I am using them in a Pi Pico W project (Adafruit MCP 23017 GPIO Expander). If successful, I will probably port them over to my Teensy 4.1...
Did some googling and there seems to be some support for STM32. Try searching for "STM32 connectivity pack". There are some references to i.MX, but nothing specifically for Teensy or imxrt1062.
Line in, line out, and headphone out all work simultaneously on the audio shield. The headphone output and line output get the same stereo audio. Internally, the audio shield as a stereo ADC and stereo DAC. The...
Well it's working good...
I see the bouncing ball and background changing color when the ball hits the wall. Good quality picture even with my sloppy bread boarding. Need to find or make an adapter board.
Now to...
Hey, So I'm building a Synth/sampler/looper - something with dedicated knobs and sound sculpting ease of the the Korg Volca series and the on board sampling power of the OP-1.
I'm not an engineer, or an electrician....
It was some versions ago, but I definitely tried replacing the original teensy_secure by my confirmed working patched teensy_secure and then upload code using Arduino IDE. I found out, the manually generated ehex had...
@Isrichard Cool effect! I listened to the Soundcloud recording. I do hear a fair bit of click/clip noise when I listen through headphones. But, it's hard to say if the input to the ADC is clipping, or the digital audio...
Yes. It turned out to be a bug with the Mass Storage driver. Should be fixed in Teensydruino 1.58. I say 'should' because I'm still using the workaround JIC, so I don't actually know if the bug that was fixed also...
Hi All,
I'm having trouble getting a successful ping from my teensy 4.1 project using Ethernet. All I really need at this stage is to get a ping through to confirm the hardware is working.
For code, I've used the...
Hiya, it doesn't seem to have one, identical looking ones ones, with the same red pcb, on ebay, eg
item 392995725837, China, or 173404294539, UK
although the one I used has qifei written on the underside. Not...
Sorry, I probably have not used Atmel Studio in probably a decade, so I have no idea and I am guessing that is true of lots of others that are up here.
I believe at one-point VisualMicro could be installed on Atmal...
That's great! Thanks for sharing the results. That's exactly my case, a code port from a Teensy 3.5 to 4.1 and this ADC pinMode config change was going completely unnoticed. Glad I read this post out of curiosity while...
hi there, these are some things to remember when migrating projects from 3.x teensy boards to 4.x boards.
probably not a complete list, just the things I stumbled over, that are not that well documented (if at all)
...
Glad it's working for you.
@ckahlo - Any feedback on the program from msg #9? Does it meet your needs?
Teensy Loader does not have the ability to create .ehex files. Only teensy_secure can.
Teensy...
yes, I just did this and it works flawlessly now. I will open another thread and describe what other changes I had to do to the code when migrating from teensy 3.6 to 4.1
Hi lokki, were you able to fix the problem adding pinMode(xx, INPUT_DISABLE) to setup()?
I was not aware of this issue and will probably need to fix all my T4.1 projects if that's the case.
Hi,
Setting up DMA is okay, implementing the isr to update the buffer with my data is okay
but
the Compiler halts at
set_audioClock(c0, c1, c2);
What header must I include?
The closest thing I could find...
and here: https://forum.pjrc.com/threads/69671-Teensy-4-0-4-1-web-pages-need-a-warning-about-INPUT_DISABLE-on-Analog-Inputs
i agree it should be mentioned somewhere
Hello,
Is it possible to adapt this module https://github.com/TomWhitwell/RadioMusic/wiki designed for a teensy 3 with a teensy 4 with an audio shield?
Hi!
I've been using a teensy3.2 and a teensy3 audio board for a project I need to do in my internship.
The teensy3.2 itselft has no problems but the first time I plugged the audio board the microphone wasn't...
I saw the Arduino MKR GIGA R1-Wifi uses a Murata LBEE5KL1DX module to bring both Wifi and BT support to the board.
Based on available info, they are using SDIO interface for Wifi and UART for BT.
I would really like...
this seems very similar to my problem with jumping values, i will try setting the pinmode to input.... https://forum.pjrc.com/threads/68621-ADC-voltage-measurements-wrong-and-jumping-on-Teensy-4-1?p=292724
thanks for your answer. hmm, might have to switch back to teensy 3.6 then. this sudden jump does not at all seem to be noise, it does not jump fourth and back between values, it just jumps at half the supply voltage and...
There was a recent note regarding adding a capacitor - quick search found this older note: capacitors-best-option-for-removing-analog-sensor-noise
Not sure the recent post had more or better info - but it was in past...
as a small addendum. I also tried setting the analog resolution to 11 bit in setup() analogReadResolution(11);, but this is ignored, it still uses 12 bits.