Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • Rezo's Avatar
    02-26-2023, 06:35 AM
    Ahh right, there are four modes, not three. Snooze can do suspend mode, which is what I was initially referring to. Why do you specifically need SNVS mode? As far as I recall, in the Snooze thread someone had done...
    4 replies | 112 view(s)
  • Rezo's Avatar
    02-18-2023, 07:54 PM
    Try the snooze library. It can wake up a t4.x from SNVS aka hibernation mode using any gpio, alarm etc
    4 replies | 112 view(s)
  • Rezo's Avatar
    02-05-2023, 02:41 PM
    All fixed: PXP_OUT_PS_LRC had to be set to ((479) << 16) | (319); (was 480, 320) and PXP_OUT_LRC has to be set to ((95) << 16) | (319); (was 96, 320)
    51 replies | 10031 view(s)
  • Rezo's Avatar
    02-04-2023, 06:03 PM
    Okay, have revised the code, still have one screen sized source buffer and two 320*96px destination buffers, but using just one for the test. Overall - it works! Successfully rotated the image 270 degrees and all in...
    51 replies | 10031 view(s)
  • Rezo's Avatar
    02-04-2023, 04:41 AM
    Yeah everything that’s in pxp_start was removed from pxp_init, but it only works if everything is in pxp_init. Super odd but I’ll keep playing with it.
    51 replies | 10031 view(s)
  • Rezo's Avatar
    02-03-2023, 05:36 PM
    Something odd that I can't figure out: If I move the following code from PXP_Init() into it's own function (lets call it PXP_Start): void PXP_Start(){ CCM_CCGR2 |= CCM_CCGR2_PXP(CCM_CCGR_ON); PXP_CTRL_SET =...
    51 replies | 10031 view(s)
  • Rezo's Avatar
    02-01-2023, 07:35 AM
    Making some progress with my test sketch but have very odd behavior. For some reason one of the transfer steps happens twice (I have no idea why) and portions of the data are incorrect in some cases. Attached is my...
    51 replies | 10031 view(s)
  • Rezo's Avatar
    01-31-2023, 05:23 PM
    So I plan to use one 480*320 16 bit frame buffer that LVGL writes to and PXP reads from. Then I will have two smaller 48*320 16 bit output buffers that I will switch between so that I can rotate one while the other...
    51 replies | 10031 view(s)
  • Rezo's Avatar
    01-31-2023, 09:55 AM
    I felt like I was missing something, so I have done more reading in the reference manual and modified my sketch to work as follows: PS buffer is 480*320 OUT buffer is 320*48 IF I offset the PS buffer source, I can...
    51 replies | 10031 view(s)
  • Rezo's Avatar
    01-29-2023, 02:03 PM
    Yep, unfortunately you can't do rotations from and into the same buffer, but also, the PS/AS buffer can't be bigger than the output buffer (page 1907): So my whole idea of rotating portions of the PS buffer into...
    51 replies | 10031 view(s)
  • Rezo's Avatar
    01-27-2023, 02:41 AM
    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...
    51 replies | 10031 view(s)
  • Rezo's Avatar
    01-26-2023, 06:59 PM
    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...
    51 replies | 10031 view(s)
  • Rezo's Avatar
    01-26-2023, 05:40 PM
    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...
    51 replies | 10031 view(s)
  • Rezo's Avatar
    01-26-2023, 08:48 AM
    So after much testing I decided to pass through the image without rotating to see what comes out. The image is passed though fine, but with noise in the first 20-30 lines. Also, trying to rotate does nothing, as I...
    51 replies | 10031 view(s)
  • Rezo's Avatar
    01-25-2023, 06:24 PM
    Ive moved the callback execution to (PXP_STAT & PXP_STAT_IRQ) != 0 and that seems to fix the multiple calls. But, the rotation is still not 100% and it looks the same as before. I can confirm the PXP is not rotating...
    51 replies | 10031 view(s)
  • Rezo's Avatar
    01-25-2023, 08:40 AM
    Got around to wiring up my ILI9486 breakout display to my custom board Teensy MM with PSRAM :cool: Tested the sketch, but I am running into some issues: 1. The image is being rotated by 90 degrees but it looks...
    51 replies | 10031 view(s)
  • Rezo's Avatar
    01-24-2023, 07:12 AM
    @mborgerson thanks for the breakdown and code example. I'm generating an image (480*320px @16 bit color) using LVGL and feeding that into a buffer placed in DMAMEM, which is also the source buffer for PXP. PXP then...
    51 replies | 10031 view(s)
  • Rezo's Avatar
    01-23-2023, 07:47 AM
    Perfect, thanks for confirming!
    51 replies | 10031 view(s)
  • Rezo's Avatar
    01-23-2023, 07:18 AM
    @vjmuzik circling back to this as I have my custom T4.1/MM board with all the FlexIO2 pins/eLCDIF pins exposed, as well as the external PSRAM, so now is the time to start playing with this wonderful library :) 1. What...
    51 replies | 10031 view(s)
  • Rezo's Avatar
    01-20-2023, 05:36 PM
    Just a side note - I use GPT to help with the Teensy coding as well as Python/SQL. But the current model (GPT3.5) is only trained with data up to 2021 (when it was "released"). Any info or code examples that came after...
    22 replies | 1601 view(s)
No More Results
About Rezo

Basic Information

Statistics


Total Posts
Total Posts
381
Posts Per Day
0.30
Last Post
Teensy 4.0: Wake up from SNVS Low Power Mode through GPIO 02-26-2023 06:35 AM
General Information
Last Activity
Yesterday 10:38 PM
Join Date
10-09-2019