Mavriq
Member
I've seen in many threads about Flexio being very particular when it comes to working. For example, if you set up one of their examples, it works. However, modifying things sometimes causes unexplained issues.
Well in my experimenting I found one for sure:
If you set SHIFTCTL before SHIFTCFG it doesn't work correctly for a few cycles and then it starts to. I was seeing buffer corruption for the first few writes. I was also seeing it spit out some nulls even before Flexio was enabled. in FlexSerial I see some commented out code about about clearing SHIFTSTAT being the cause, it may be this that was causing it?
Anyhow, I'm putting together some docs on FlexIO and was wondering if anyone else knows of any of these Black Magic Gotchas?
Well in my experimenting I found one for sure:
If you set SHIFTCTL before SHIFTCFG it doesn't work correctly for a few cycles and then it starts to. I was seeing buffer corruption for the first few writes. I was also seeing it spit out some nulls even before Flexio was enabled. in FlexSerial I see some commented out code about about clearing SHIFTSTAT being the cause, it may be this that was causing it?
Anyhow, I'm putting together some docs on FlexIO and was wondering if anyone else knows of any of these Black Magic Gotchas?
Last edited: