I am looking to update the ST77xx code to allow the callbacks. But it looks like this still has my older variety of updateScreenAsync code for the IMXRT.
Earlier on I was frustrated, with the...
Type: Posts; User: KurtE
I am looking to update the ST77xx code to allow the callbacks. But it looks like this still has my older variety of updateScreenAsync code for the IMXRT.
Earlier on I was frustrated, with the...
Thanks @mjs513
Or do one or both of us need to integrate in code with ST7735_t3? Will take a quick look.
Thinking of ILI9341, has anyone purchased the Sparkfun Input and display Carrier...
Just an FYI - I just pushed up a branch with this code, that works pretty well with the ILI9341 display. (Don't have the calls in ST7735 ... Yet).
Pushed up a PR, so people can play... May want to...
Note: I am doing some outside nice day activities, but in the process now of adding a Video mode...
That is I am setting up to do DMA, plus turn on the Async updates in continuous mode, with...
@Paul - There appears to be an issue in the imxrt.h file... Not specific to MicroMod.
Not sure best way to fix as associated with the GPIO structures...
That is we have:
// 12.5.1: page 961...
Hi Mike, yep as I mentioned in the commit - it sort of walks through the screen a couple of times and then settles.
Will investigate. Right now playing with speeding up the VSYNC interrupt to see...
@mjs513 I am creating another branch working on DMA stuff (later for PR)...
Looks like made similar changes to what you did since then in DMA callback in sketch (last use of that buffer)... Missed...
Just an FYI- These days mostly avoid these issues of compiling for wrong board, as mostly work/build within sublime text and most of the time now using projects.
So for example in the test3 test...
@mjs513 Not a problem...
Question, as I start testing a couple of the ideas from yesterday for continuous DMA, should I work with testv2 or move on to testv3?
Also question to self (and maybe...
Morning all,
Not fully awake yet, nor had coffee,
We need to go through and maybe remove several of those buffers. Especially the uint16_t one that may not be used anymore as we don't convert...
:D looks like you beat me to it! :D
At times still wonder if we should cleanup something like it, sort of like DMAChannel such that sketches who just want to use something like an extra serial...
@Paul - Taking a quick look through your FlexIO configuration and DMA. It is kooks like Greek to me :D
The first thing I wonder and may try. It looks like you are using Shifter 3?
Then I...
:D - Yep - decided to go ahead and merge it in as it works better than before and wanted to do it before it became harder to merge.
That branch relies on my USBHost_t36 library updates. Which is still in waiting on a Pull Request back to the main one.
It is off of my Fork/Branch:...
@mjs513,
I see a few different options:
a) don't disable the DMA... In theory if I am totally in sink, the next DMA operation (when PCLK) triggers should be at the start of the next frame. May...
It is in my library I was working on long ago... Maybe to integrate some parts at some point.
https://github.com/KurtE/FlexIO_t4
I believe it is in the flexSerial.cpp
Playing a little more, I brought over my Frame info function to get an idea of what maybe is different... Pushed up to my dma_merge_fixes.
Here is information printed when SPARKFUN:
converged!...
Paul,
I will read more of your comments in a bit... Other distractions going on.
With VSync - I was wondering if I was starting too late, or maybe VSync interrupt not being serviced fast...
@mjs513 sorry I have been a bit distracted today. Still hacking DMA...
Pushed up branch dma_merge_fixes which updated the DMA code not to hang.
Plus added a command 'D' which does like 'd' except...
@all just pushed the WIP stuff for DMA up to new branch dma_full_sensor
Still not fully working with the full frame 324x244 things are out of sync... Will play a little more, will pull most out...
:o ;) - That way I can pack up my bags and go home :D
Will stash my changes in holding area and probably expunge.
Edit: Forgot to mention, it is working on my ILI9341...
Maybe Reset Pin? I will switch back over.
Morning All,
Will have to play... I did/do have DMA with FlexIO when making a Serial port, for doing RX in the background. May have to compare.
Also once FlexIO is working wonder if we/I...
I am playing with the DMA code some more. I put in new command 'f' - read in one frame using DMA and then output it...
It verified that the data in the frame is not coming back correctly. So...
@mjs513 yes probably the same, simply update some of the names and the like
I pushed the changes up to github in my char_bounds branch, which is now part of the current Pull request back to Paul:...
I have a version that builds with the writeRect8BPP (as well as 4 2 1 and N)
So may need to grab adafruit display and try it.
Afternoon all (I think),
Been outside playing (Planting Peas...)
I have not fully resolved the DMA stuff yet.
FYI - I pushed up a WIP of my FlexIO test code... Will test out some of my...
Thanks, was wondering if you somehow hooked up using the board you showed in the post: https://forum.pjrc.com/threads/66771-MicroMod-Beta-Testing?p=276171&viewfull=1#post276171
that you tried with...
@Paul - looks like you are making good progress with it. Does your wiring do anything special? Or did your board just breakout the pins of the ribbon?
@mjs513 not much progress yet with DMA......
@mjs513 - you might push up what you have, either in main or some temporary branch and I will take a look.
Could be several things like: maybe I am not responding quick enough for the VSYNC to...
With the HiLow test, I don't see you actually trying to run a probe from either 3.3v or GND depending on which way, and touch other side to a pin.
Note: you need to hit enter to change modes. ...
@mjs513 -
I never went through to see how many rows we ignored. Will be obvious when I can hook up LA to it... Or could write some extra code, probably like you did.
I did find out about the...
Sorry to hear that. Again I would still be tempted to maybe post a picture of it, and probably double/triple check wiring.
If it were me, I would probably run something like what I call the HiLow...
You would need to edit the section that looks like:
while (sd.exists(fileName)) {
if (fileName[BASE_NAME_SIZE + 1] != '9') {
fileName[BASE_NAME_SIZE + 1]++;
} else if...
Good question/point! As mentioned by Frank, he did increase the refresh rate to a higher speed.
As I mentioned in the previous post, the question is how much time to take to polish some of this...
Hi Paul,
With the DMA stuff I found I needed to ignore 4 pixel clocks per HSYNC. I do it at the end of the row, not sure if best to split? Or not.
Keep meaning to update my internal FlexIO...
I know typically can not push it much especially over jumper wires.
If we really need to get it faster... We probably need a setup where camera and display are plugged in.
But not sure at...
@mjs513 - Those values appear to work nicely. Wonder if it is the DMA or the update to the screen or???
That is can the ILI9341 display display 60 full frames per second?
That is assuming 0...
Sorrry, I am not sure I can give you a complete list of projects, that use the USB Host, but off the top of my head here are a few devices and the like that we have code support for:
Simple HID...
Hopefully Paul or someone who uses Linux and Makefiles a lot can give you a decent answer.
If I were wanting to do this, I would probably tend to have sort of recursive makefiles. That is for...
Sort of a random question/observation, not just tied to MM but all T4.x...
How best to put infrequently used tables with stings into flash memory so it does not eat up ITCM space....
I wanted a...
@mjs513 - I pushed the current stuff as a PR so you can play along also....
Also forgot to mention, made the build with SerialUSB1 optional, if you use the command that needs USB1 it will print...
Good morning again,
Playing with sketch in new branch: dma_frame_8bit, where I removed the conversion from 8 bits to 565 in the DMA code and instead returned the 8 bit frame data, which to display...
Namespace makes sense... MMODPIN::D0 or whatever your namespace is called would make it convenient for C++.
There may still be issues for users like: Serial2 is actually on pins marked like I2S SDO...
Morning all,
Looks like all are still having fun. Wondering with my DMA stuff, for the heck of it, I converted the one byte data into 565 format like @mjs513 code was doing external for single...
OK I pushed up a PR to you. Still not 100% but at least it is showing signs of seeing full DMA image.
We may still want to combine buffers. Like you have that new double one. I have double as...
I have a DMA version that is actually showing the images, Right now try to rebase, hopefully not totally screw up)... Made copy before trying.
Note it builds again, I had several conflicts, but...
Wonder if maybe there should be a different mode? And/Or simply remove the grayscale test?
@pretty cool, sure does look like it would make things easier to debug!
@mjs513 - I was about to edit my response, and noticed you had edited yours.
I was going to mention, that you might be able to use the other way, if you do something like SD.sdfs.open(...)
I...