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

Status
Not open for further replies.

ossi

Well-known member
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?
 
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.
 
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
 
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.

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).

sc.png

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.
 
@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.
 
Status
Not open for further replies.
Back
Top