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; generated 59 minute(s) ago.

  1. Replies
    22
    Views
    547

    As usual - you have the right answer:) Now...

    As usual - you have the right answer:)

    Now where do I find the elf file - im guessing its in a temp hidden folder?
  2. Replies
    22
    Views
    547

    I get the same command not found with...

    I get the same command not found with arm-none-eabi-addr2line , even though it's in the folder..
  3. Replies
    22
    Views
    547

    @skpang did you ever get this to work? I'm in...

    @skpang did you ever get this to work?
    I'm in the bin folder (/Applications/Teensyduino.app/Contents/Java/hardware/tools/arm/bin) and I also get command not found.
  4. I was hoping to try this, but couldn't find a...

    I was hoping to try this, but couldn't find a code example of it.
    My interpretation was I setup my own callback function, and pass it in addIOHandlerCallback() - it gets called based on whichever...
  5. @KurtE I know you probably have a lot of other...

    @KurtE I know you probably have a lot of other more important things to handle right now, but if you could guide me on how to register a callback, I can take it from there by my self.
  6. Replies
    19
    Views
    402

    Following as I plan to log CAN data onto an SD...

    Following as I plan to log CAN data onto an SD card as well
  7. Replies
    53
    Views
    2,182

    Isn’t this on a Teensy 3.6 & writing to the port...

    Isn’t this on a Teensy 3.6 & writing to the port register?
    Or did you port your library to a T4.1?
  8. @KurtE I've started to play around with the IRQ...

    @KurtE I've started to play around with the IRQ for FlexIO3 on a T4.1 but it's just constantly triggering the interrupt as soon as I call NVIC_ENABLE_IRQ(IRQ_FLEXIO3) in my setup function.
    I've...
  9. On a MicroMod - can't be done at this time. On...

    On a MicroMod - can't be done at this time.

    On a Teensy4.1:
    You can strip down the library and make modifications to it so that it uses FlexIO3 instead of FlexIO2
    You need to update the pin...
  10. Technically it can be done on a Teensy 4.1 but...

    Technically it can be done on a Teensy 4.1 but without the use of DMA - so the transfers will hold up the main loop for 5-6ms on a full screen (480x320) update. But the current version of the library...
  11. This library will work only on the MicroMod. The...

    This library will work only on the MicroMod.
    The Teensy 4.1 does not expose enough FlexIO pins to get enough contiguous pins on FlexIO 1 and 2.
  12. ILI948x_t4_mm - An 8 bit parallel display driver for the Teensy MicroMod

    After being a member of this forum for the past 2-3 years, consuming the vast amount of knowledge & expertise from the very smart and talented forum members.. It's time for me to give back a little...
  13. Replies
    53
    Views
    2,182

    @jonathan322 I might have one of NXP's...

    @jonathan322 I might have one of NXP's application note software packs that has the 6800 setup for in an LCD driver demo.
    PM me your email and I'll share it with you if I find it.
  14. Replies
    53
    Views
    2,182

    480Mhz works only at 600Mhz CPU speed. At any...

    480Mhz works only at 600Mhz CPU speed.
    At any lower CPU speed, FlexIO starts to misbehave ;) Once FlexIO clock speed is set to 240Mhz, the min baud rate divider that can be used is (2-2/2), no? So...
  15. Replies
    53
    Views
    2,182

    That can be done. How many inputs do you have in...

    That can be done. How many inputs do you have in mind and what bus speed?
    FlexIO can go quite high, I think it maxes out at 120Mhz
  16. Replies
    53
    Views
    2,182

    Still working on it :) But let's focus the...

    Still working on it :)

    But let's focus the thread's topic - a general library for parallel data transmission on the T4/4.1/MM.
    Driving displays is just one of the use cases.
  17. Replies
    53
    Views
    2,182

    I'm not rendering entire frames, but I can write...

    I'm not rendering entire frames, but I can write entire frames if needed.
    In my case LVGL is responsible for rendering only the areas that require updates, so it doesn't redraw the entire screen...
  18. Replies
    53
    Views
    2,182

    I'm using a Teensy MicroMod as it has enough...

    I'm using a Teensy MicroMod as it has enough contiguous pins on FlexIO 2 to drive the display @ 8 bit wide bus.
    FlexIO is a series of shifters and timers - configured correctly, you only need to...
  19. Replies
    53
    Views
    2,182

    I have a library written by another forum member...

    I have a library written by another forum member that supports 8/16 bit parallel bus for the ILI9488 on a Teensy 4.1
    A full screen (320x480 @ 16 bit color) update took roughly 5ms. He used the same...
  20. Replies
    53
    Views
    2,182

    What bus speed is it running on? How are you...

    What bus speed is it running on?
    How are you writing the data? directly to the port register?
  21. Replies
    53
    Views
    2,182

    Jean Marc’s VGA_t4 links two FlexIO instances via...

    Jean Marc’s VGA_t4 links two FlexIO instances via linked DMA channels to push out data to VGA displays
    Might we worth looking into how he does it and give it a try on a parallel bus
  22. Replies
    53
    Views
    2,182

    Attached is some basic FlexIO setup to output a...

    Attached is some basic FlexIO setup to output a command and data via FlexIO3 on a Teensy 4.1
    I have not tested it, so you might need to do some tinkering and possibley some bit-shifting to push out...
  23. Replies
    53
    Views
    2,182

    @eric I think this is a great idea! Id be more...

    @eric I think this is a great idea! Id be more than happy to contribute what I can and run tests my 16ch logic analyzer.
    Ibdo wonder how dynamic it could be made to work without having to hardcode...
  24. @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...
  25. 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...
  26. 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,...}
  27. 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,...
  28. 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...
  29. 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...
  30. @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...
  31. 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...
  32. 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,...
  33. 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",...
  34. 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...
  35. 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...
  36. 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:...
  37. 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...
  38. 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...
  39. 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...
  40. Replies
    975
    Views
    50,309

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

    Are you using a Sparkfun MM carrier board or a custom board?
  41. 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...
  42. Thanks! Sometimes we overlook the small stuff. I...

    Thanks! Sometimes we overlook the small stuff.
    I closed the GitHub issue with a short explanation
  43. 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...
  44. 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...
  45. 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...
  46. Replies
    975
    Views
    50,309

    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.
  47. @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...
  48. 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?
  49. @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...
  50. 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...
Results 1 to 50 of 237
Page 1 of 5 1 2 3 4