Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: "FLEXIO" units and "NanoEdge placer block" on Teensy 4.0

  1. #1
    Senior Member
    Join Date
    Feb 2019
    Posts
    107

    "FLEXIO" units and "NanoEdge placer block" on Teensy 4.0

    In the datasheet it is said that the IMXRT1060 has 3 FLEXIO units. But when I try to access FLEXIO1 and FLEXIO2 my program crashes. Access to FLEXIO3 works. In the PWM unit the datasheet says that a unit may have an "NanoEdge placer block". Where can I get the info wich FLEXPWM unit has it and wich not?

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,932
    The Teensy 4 beta thread has examples of FLEXIO usage. KurtE has used it for SPI and other things IIRC. No personal experience - but typically things need to be enabled before access or the processor faults. There are #ifdef's in the TeensyDuino install for most all of these things that map to reference manual.

  3. #3
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    6,331
    Most sub-systems of the T4 require you to enable the underlying clock in order to access their registers and the like.

    I have experimented with FlexIO on T4 and have some code that works to create Serial ports using it as well as SPI ports. Plus some support functions.

    My code is up at: https://github.com/KurtE/FlexIO_t4

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,473
    You're asking about "FLEXIO", but I'm pretty sure you really mean FlexPWM. That's very confusing, because the chip also as 3 FlexIO peripherals which are unrelated to the 4 FlexPWM timers (each with 4 sub-modules).

    "Nanoedge placement" is only relevant to FlexPWM. It has nothing to do with FlexIO.

    Quote Originally Posted by ossi View Post
    Where can I get the info wich FLEXPWM unit has it and wich not?
    This one is easy to answer: none of the FlexPWM timers has the nanoedge feature.

    To answer the "where" question, look on page 3029 of the reference manual (Rev 2).

    Click image for larger version. 

Name:	sc.png 
Views:	1 
Size:	35.4 KB 
ID:	19271

    The nanoedge feature sounds pretty awesome, so please don't fall into the trap of wishful thinking when you see the many places in the documentation that mention it. Nanoedge is an optional feature for FlexPWM which is definitely not present in IMXRT1062.

  5. #5
    Senior Member
    Join Date
    Feb 2019
    Posts
    107
    @Paul: I am currently playing with FLEXIO and FLEXPWM. With FLEXPWM I am quite through. With FLEXIO I am at the beginning. Thanks for the info about NanoEdge. I could not find it because I used the old (revision 0) version of the datasheet (my fault). You showed me that revision 2 is much better. I am now using revision 2 of the datasheet. With this I could also answer my FLEXIO question. As was mentioned before in this thread the clock for the unit had to be turned on. Thanks all the contributors of this thread. My questions are answered.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •