Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: Rezo

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. @Eric I just implemented your last FlexIO/DMA...

    @Eric
    I just implemented your last FlexIO/DMA setup into my test sketch with the display - it's smooths, quick and CRISP!

    Thank you VERY much for contributing the time, effort and patience and...
  2. Odd enough, ran another sketch and it worked fine...

    Odd enough, ran another sketch and it worked fine - ran your latest version again - and it worked like a charm.
    You're a live saver, Eric!
    25902
    I'll implement it into the display logic tomorrow...
  3. Almost, but still not quite there yet: 25900 ...

    Almost, but still not quite there yet:
    25900

    It sends out {0x01, 0x02, 0x03, 0x00, 0x01, 0x02, 0x03, 0x08,...}
  4. In a nutshell, yes - that is what is happening....

    In a nutshell, yes - that is what is happening. Is this the expected behavior?

    This is the source:

    const uint16_t tft_test_img[32] FLASHMEM={
    0x0102, 0x0304, 0x0506, 0x0708, 0x400B, 0x400B,...
  5. No worries Kurt, I'm slowly getting the hang of...

    No worries Kurt, I'm slowly getting the hang of it.

    Reminder to self - start using more #define's. I had missed shifter 0's output pin and had it set to pin 0 instead of pin 4, so I was only...
  6. Good catch on the Total size - I misses as I...

    Good catch on the Total size - I misses as I forgot that I pass half that values on the polling method as each iteration I push the 8 upper bits and then the 8 lower bits like so:

    for(uint32_t...
  7. @eric attached I just modified the last demo...

    @eric attached

    I just modified the last demo code you provided to suit the changes exactly as I have it running in my full library example. I didn't attach the library because it an absolute mess...
  8. I went ahead and added the DMA code into my...

    I went ahead and added the DMA code into my simple display driver and am seeing some odd behavior:
    1. It's not completing all the major loop iterations - only half of them.
    2. It's not pushing out...
  9. A quick serial print revielded the following: ...

    A quick serial print revielded the following:

    uint16_t databuf_tmp[DATABUFBYTES] = {0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,...
  10. I went ahead and loaded the buffers manually with...

    I went ahead and loaded the buffers manually with 0x05050505 like so:

    for (int i=0; i< (SHIFTNUM); i++){
    p->SHIFTBUF[i] = 0x05050505;
    Serial.printf("SHIFTBUF[%d]:%x \n",...
  11. I tried this by removing all the DMA code,...

    I tried this by removing all the DMA code, keeping the FlexIO setup as is (commenting out the DMA enable on shifter status flag)


    void FLEXIO_8080_MulBeatWR_nPrm(uint32_t const cmdIdx, uint32_t...
  12. I just got a reply back from NXP - they claim...

    I just got a reply back from NXP - they claim that FlexIO on the RT106x and 105x has only 4 shifters, not 8.
    So I guess their application note software pack for the RT1050 is misleading as the...
  13. That actually works!! Although it's outputting...

    That actually works!! Although it's outputting 0x05, 0x00 16 times each and not 0x05 32 times

    I commented out the dma.enable in the main loop to allow it to trigger just once, but here it is:...
  14. Thanks Eric, that's makes more sense to me. So...

    Thanks Eric, that's makes more sense to me.

    So I changed the number of shifters used to 4 and updated the trigger to DMA signal 65
    And now I get a DMA error from the error register.
    I'm using...
  15. Well aware of FlexIO 3 not supporting DMA, but...

    Well aware of FlexIO 3 not supporting DMA, but its good to be explicit about it for others that might come across this thread/post


    Which shifters can the sources handle? Is it shifters 0&1? The...
  16. Sorry to be bumping this old thread, but Kurt -...

    Sorry to be bumping this old thread, but Kurt - you're my best option right now to point out if anything is missing and it's relevant to the content of this thread.

    After I successfully got FlexIO...
  17. Replies
    972
    Views
    44,724

    Are you using a Sparkfun MM carrier board or a...

    Are you using a Sparkfun MM carrier board or a custom board?
  18. Hey Eric, So the documentation didn't state...

    Hey Eric,
    So the documentation didn't state anything specific about max clock speed, as you can run FlexIO on other clock sources that run at a higher speed.
    But as the default clock source (or...
  19. Thanks! Sometimes we overlook the small stuff. I...

    Thanks! Sometimes we overlook the small stuff.
    I closed the GitHub issue with a short explanation
  20. I tried to play with other clock sources, such as...

    I tried to play with other clock sources, such as PLL5 and PLL3 PFD2 using dividers of 2&3 - and what do you know, it worked.
    So back to PLL 3, this time with dividers as well - and it works!

    So...
  21. So after some testing I have concluded that the...

    So after some testing I have concluded that the root cause of the issue is compiling the sketch for any CPU clock speed below the default 600mhz.

    Not sure if this is by design or a bug, but...
  22. A quick update for anyone that might come across...

    A quick update for anyone that might come across similar behavior with this:

    I don't know what the root cause was for this issue, but what fixed it was to compile for T4.0 first, then for the...
  23. Replies
    972
    Views
    44,724

    This is extremely useful. I find myself moving...

    This is extremely useful. I find myself moving back and forth between Kurts MM pin mapping and the MM ATP documentation to figure out which Teensy pin is mapped to what ATP pin.
  24. @vjmuzik Thanks for your code example. I...

    @vjmuzik

    Thanks for your code example.

    I tested it on the Teensy 4.1, and I saw the same behavior as the Teensy MicroMod - An empty pulse when SHIFTBUF is loaded
    25512

    I then uploaded the...
  25. Interesting! I’ll test it on my T4 & T4.1 Do...

    Interesting!
    I’ll test it on my T4 & T4.1

    Do you mind sharing the code you used?
  26. @PaulStoffregen @KurtE have either of you seen...

    @PaulStoffregen @KurtE have either of you seen this behavior with the FlexIO timers/timer's assigned output pin?
    I've been mucking around with this setup for a week now - getting nowhere with fixing...
  27. Tested it out - still no luck. I even moved...

    Tested it out - still no luck.

    I even moved the entire register config into the setup loop and it does the same thing.

    I have copied the exact configuration for the shifter and timer from the...
  28. You are correct, my transmit function will go...

    You are correct, my transmit function will go into a while loop when SHIFTSTAT == 0 as it wait's for the transmit to complete. So setting it to 1 would clear it.
    Will give it a try later on today...
  29. It looks like 6, but it is actually 5 pulses, the...

    It looks like 6, but it is actually 5 pulses, the 1st one being the one I don't need.
    Per the data sheet, FLEXIO_SHIFTCFG_PWIDTH(n) will detemine how many bits are being pushed/read at a time, and...
  30. FlexIO "Extra" clock cycle on 8080 parallel setup

    So the title may not fully reflect the content of this post, but I tried to keep it short :)

    So I'm in the process of building out an 8 bit parallel display driver for the Teensy Micromod using...
  31. Replies
    170
    Views
    19,238

    You can get 8 bits on FlexIO2 on the Teensy...

    You can get 8 bits on FlexIO2 on the Teensy Micromod
  32. Replies
    1
    Views
    252

    I have an ILI9488 display driver written by...

    I have an ILI9488 display driver written by another forum member (@beermat) that supports 8/16 bit wide bus on a Teensy 4.1
    It could be modified to support the 9341 as well I guess - and supports...
  33. Replies
    21
    Views
    2,501

    I've hacked some code together based on one of...

    I've hacked some code together based on one of NXPs code examples for FlexIO.
    I was wondering if someone here (Paul, Kurt, miciwan) who knows the in's & out's just a bit (ALOT) better and can...
  34. Replies
    21
    Views
    2,501

    @miciwan thanks for confirming! I have a few...

    @miciwan thanks for confirming!

    I have a few more questions up my sleeve :D

    I'm in the process of adapting the NXP FlexIO 8080 LCD example to the Teensy 4.1/MM (focus is 8 bit width on MM) and...
  35. Replies
    14
    Views
    813

    Thanks luni, this is great! Does it support the...

    Thanks luni, this is great!
    Does it support the T4/4.1?
  36. Replies
    14
    Views
    813

    Implementing TeensyLoader into a C# app?

    I'm in the process of creating a simple app for updating a teensy based product (to be) and I was wondering, how can I implement the teensy cli C file into my existing visual studio wrapper (.cs) app...
  37. Replies
    21
    Views
    2,501

    @miciwan I have a quick Q about the...

    @miciwan I have a quick Q about the shifters/shifter buffers.
    Looking at this image:
    25098

    If I configure the flexio instance to shift out 8 bits at a time, does that mean I can fill each buffer...
  38. I use this method to power a T4/4.1 in my car via...

    I use this method to power a T4/4.1 in my car via a drop down SMPS and also flash/log data via usb in the car as well. I've had zero issue so far.


    The PJRC website has a short guide for this as...
  39. Replies
    21
    Views
    2,501

    @hobi I have a 8/16 bit library written by...

    @hobi I have a 8/16 bit library written by another forum member that uses the fast GPIO's
    A full screen update on an ILI9488 @16bit color / 16bit bus takes roughly 6ms - not too bad!
    But, the fast...
  40. Amazing project >> product! How are you driving...

    Amazing project >> product! How are you driving the display? Over SPI?
    It looks like the CPT ILI9488 based on resolution and clarity.
  41. Replies
    7
    Views
    563

    You can define in your library's source file the...

    You can define in your library's source file the following:


    #define Wire Wire2

    I did this with an Adafruit library and it works. It's an effortless and harmless edit that's easy to revert
  42. Replies
    972
    Views
    44,724

    Kudos to all of those involved in this project -...

    Kudos to all of those involved in this project - I am very much looking forward to using the MicroMod with the new FlexIO pins exposed :D

    I see there has been a lot of development effort around...
  43. Replies
    12
    Views
    925

    I mean that I have no seen anyone sucessfully...

    I mean that I have no seen anyone sucessfully implement the 8080 protocol with FlexIO. I'll keep reading and experimenting though
  44. Replies
    12
    Views
    925

    I could actually do that in the DMA interrupt and...

    I could actually do that in the DMA interrupt and stop it once the all the data as been pushed out.. I'll look into it.



    I would love to try FlexIO as it can run at a much faster speed, but...
  45. Replies
    12
    Views
    925

    @KurtE thanks, After going through many source...

    @KurtE thanks,

    After going through many source codes repo's and reading the documentation, finally things are making much sense to me and I understand how the flow works.

    My biggest dilemma now...
  46. Replies
    29
    Views
    5,972

    I want to stop the PWM in some cases to write...

    I want to stop the PWM in some cases to write simple 16 bit commands to the display, so I set the registers to stop the PWM and to set pin #33 back to a GPIO pin:



    FLEXPWM2_MCTRL |=...
  47. Replies
    29
    Views
    5,972

    Just a quick update.. After a few hours of going...

    Just a quick update..
    After a few hours of going through documentation and experimenting, I finally found how to switch the timer output to pin #33

    I started by setting pin 33 to FlexPWM_PWM2_B00...
  48. Replies
    29
    Views
    5,972

    I finally have the guts to test this and start...

    I finally have the guts to test this and start playing around as I have been doing ALOT of reading (still don't understand much but know more that I did a few weeks ago).
    I want to thank miciwan for...
  49. Replies
    12
    Views
    925

    Coming back to this after a few weeks. @miciwans...

    Coming back to this after a few weeks. @miciwans latest posts have been very helpful and getting my mind to understand how dma works on the code side and I now have a code example to build on.
    One...
  50. Replies
    813
    Views
    95,218

    Have an easy one Tony! If I was to add another...

    Have an easy one Tony!
    If I was to add another FIFO filter, lets say setFIFOFilter(1, 0x714, STD) - could it trigger a different callback? How would I set that up?
Results 1 to 50 of 214
Page 1 of 5 1 2 3 4