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...