I keep getting the following error in RF1AIFERR:
OUTERR
The spec explains this error this way: "Not enough data available for the executed read access". However I have only one access to RF1ADOUTB in my code, and it is on interrupt when RF1AIFIV is RF1AIFIV_RFDOUTIFG.
If I get this interrupt, then reading DOUT should be safe, right? So why am I getting this error?
The error is intermittent, it probably depends on timing (and frequency of occurrence varies with level of compiler optimization).
I could use a hint. When could this error happen, if I don't read DOUT any other place than in the interrupt? I have also protected the communication so that no new communication is started if there is already one on-going.
Oh, and I set RFDOUTIE just after writing to RF1AINSTR1B (auto-read feature). The value written to this register is RF_SNGLREGRD + address.