I received my 74LVC245 chips and had some fun wiring this rat's nest up:
This took care of the bad image when loading from FLASHMEM. Both FLASHMEM and SDRAM are working using 8-bit DMA. The image is correct and repeatable at 20MHz. I only...
@mjs513 I think the PXP can help you with the color conversion, and it might be faster as well. But either way it will be done async and won’t require any CPU for it.
Was playing around jpegdec library and did a comparison of using PROGMEM vs SDRAM (running at 198Mhz)
FLash TEST
full sized decode in 28350 us
half sized decode in 21260 us
quarter sized decode in 7320 us
eighth sized decode in 6104 us
SDRAM...
Sorry, I did not go all the way up on the SS to those pins... I have now...
Exactly.
Pushed up current version to fork of defragsters github project and issued PR
https://github.com/Defragster/EVKB_1060/pull/1
LCDIF, CSI, and PXP all have their own masters. Their priorities (against each other) are controlled by the SIM_MAIN NIC registers. The documentation hints that LCDIF has a bunch of cache memory tucked away inside of it, that isn't directly...
@KurtE the dev board has all the eCLDIF pins exposed. Starting from B0_00 to B1_13 I believe.
I posted here a few weeks back that I got it working on a 24 bit display with SDRAM.
I find it odd that SDRAM is not working well with FlexIO & DMA..
On the original version of the devboard, @Dogbone06 has just standard T4.1 PSRAM, and I was able to use a frame buffer in there with my Micromod 8080 library without any issues...
We finally have DMA working properly on the MicroMod and presumably the SDRAM Dev Board (not tested yet). My MicroMod quit while testing the 8080 mode for the ER-TFTM101-1 display. Had to reposition the MCU board in the connector. It's working...
I think it might have more to do with the ER-TFTM101-1 display as I am using the same length wires as well. I do not have any other displays to test with...
@wwatson echoing @mjs513 - great work getting the driver ported to the different boards!
FlexIO is a bit confusing at first, but the 8080 stuff is fairly simple to setup and debug compared to other protocols.
The place it gets messy and really...
Note: that is simply a print to pdf of one of the pages in the excel document:
https://github.com/KurtE/TeensyDocuments/blob/master/Teensy4x%20Pins.xlsx
Note: @mjs513 did a modified version of this that I think is in @defragster github project...
My main question would be, what do you even need the Teensy/Arduino pin numbers for when writing code for modules like CSI and FlexIO? You can use IOMUXC_SW_MUX_CTL_PAD_GPIO_x and IOMUXC_SW_PAD_CTL_PAD_GPIO_x to initialize them (which works...
@KurtE can we get an original excel copy of this so that we can edit it?
https://github.com/KurtE/TeensyDocuments/blob/master/Teensy4%20MicroMod%20Pins.pdf
A couple of questions and things I am playing with...
With the 4.5 and SD adapter: guessing you used SDIO pins? (Same ones as defined for Micromod?) of if SPI which IO pins?
CSI pins - I am in the process of integrating in some CSI support...
@KurtE and I have been at it again. This time creating a library that supports a number Arducam/Arduino camera modules:
Model
FrameSizes
Pixel Formats
Omnivision OV2640
FRAMESIZE_VGA //640x480
FRAMESIZE_QQVGA, // 160x120...
So I decided to make a facelift, adding SDCARD and USB-PD which supports the PD protocol up to 12V. There are pads to solder if you just want to use the second port as a pass through with 5V. Meaning, it will deliver the same 5V coming into the...
I did not bring out any special ports. All that was done was SDCARD and USB-PD. But ofc we can keep going and make a gen5 that has more stuff. But it needs coordinating, Rezo and KurtE together could make a full pin mapping, that would be ideal...
It's hard to troubleshoot these things online, but can yo do a simple test with a logic analyzer? similar to what I did here?
We need to verify that the data is being sent out in the correct order.
The DMA is set up specifically to accept a 16...
@wwatson the code looks good from a brief overview.
What length wires are you using between the MCU and the display boards? WIth 10cm wires I could not get past 20Mhz when testing
With an LCD and Micromod mounted to the same pcb with 2cm traces...
@wwatson
Are you trying 16 bit FlexIO on the dev board?
If you have it working on a 4.1, then the config should be almost identical, but you need to make sure of the following changes:
Set the relevant pins to output mode, and set the MUX to...
You have to order the boot loader from PJRC. It has custom code on it that allows the 1062 to work with Arduino/Teensyduino.
A fresh boot loader should work on an unpaired 1062.
@PaulStoffregen can confirm
Everything is mentioned on the bootloader page - https://www.pjrc.com/store/ic_mkl02_t4.html
If you got as far as creating your own Teensy 4.1, you should have come across this at some point
@wwatson
Set the pin to FlexIO
IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_00 = 4;
Set pin as output, high strength drive:
IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_00 = 0xFF;
Do this for all 16 pins.
You can still use FlexIO library, you just don’t need to call the...
@wwatson I set it through the IOMUXC just like jmarsh did.
I have a 24bit 8080 FlexIO library I put together for an RM68120 display that died half way though development - I’ll dig it up and share the init code
If those pins are not responding but adjacent pins are, then there is a hardware issue with the board, bad BGA soldering from the production run.
@Dogbone06 FYI
@jmarsh - Tested the elcdif sketches. Impressive:D Did not realize the mandelbrot sketch was animated.
Now to hook up the 10.1" LCD and test...
EDIT: By the way the T41 on the breadboard is the first T41 I got from PJRC. It has the white...
Thanks for the info and link above. I now have it working with external sdram. It seems to work ok up to 270MHz with a 1280x720 frame buffer.
Excuse my shakey picture:) I still am not using double buffering like in your original sketch but it...
First simple experiment on SDRAM board works. Adapted my 4-bit VGA library based on @jmarsh's driver to the dev board. Just had to change two pin defines for FlexIo2 for HSYNC and VSYNC which is used in several places in the FlexIO begin method...
Just received the sdram development board today:D I ran through all of the test programs that I know about without a problem. I need to make sure I have all of the pinout info for this board. It is a version 4 board.
I thought I would start out...
simplest route would be to use LittleFS, then load the hex file from a BLE source for example, or via USB with MTP.
You can then use flasherX to flash the hex to the program flash
I have had fun developing a Chronograph for measuring bullet speed with a Teensy 4.0 with 3.2in tft and RFM69 radio link to a Feather M0 with the 433mhz onboard radio.
Also added a Nano printer to the wireless display for a hardcopy at the...
Thanks, I'll take a look at it. So far it has been my lack of knowledge of FlexIO and DMA that has slowed me down but I'm starting to understand it more...
I had issues just as you have above with the DMA write, but I can't recall what it was.
Worth reading though my comments in this FlexIO thread - my memory is just not good enough to recall what the root cause was. But I have a feeling it's the...
what clock source are you using? And prescalers?
When I was playing with FlexIO initially I found that the clock speed had to be half of the clock source speed.
Eg if the clock source is 480Mhz, the maximum FlexIO clock speed can be 240Mhz.
When...
Midbar (Teensy 4.1 Version) V3.1 is released.
This version of Midbar can encrypt data that can be decrypted in the desktop app and vice versa.
The new feature is available in the "Other Options" -> "Custom Key Encryption" -> "AES-256 CBC" tab...
Thank you, I appreciate the time spent on helping out!
1. The signal will be attuned, but the target is 5-15kW amplifiers, so peak to peak voltages of up to 400-500 volts. Plan is to use a voltage divider to get the levels down to around 3vpp...