2300312_en-US

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2300312_en-US

2300312_en-US

S32K3 FLEXIO data exception

I am using S32K314 RTD400 SAI0 (host) and FLEXIO analog I2S (slave) communication, SAI only use d0, MUX_DISABLE, word width of 16, found that the data received by the slave is the host's data cycle to move one bit left to get the data, such as sending 0x8002, in the code inside the slave get the data is 0x5, change a lot of configuration is useless, finally check the Enable User Mode Support in the figure below, the data is normal. For example, if you send 0x8002, the data received by the slave in the code is 0x5. After changing a lot of configurations, the data is normal after checking Enable User Mode Support in the following figure.

Jason22_0-1769418452512.png

The SAI configuration is as follows

Jason22_1-1769418801807.png



Re: S32K3 FLEXIO数据异常

Hi@Jason22

I checked the compilation results, this option you check or uncheck does not affect the results of the run at all.

According to the project you provided, the compilation I got with Enable User Mode Support checked and unchecked is exactly the same, which means it doesn't cause the problem you described.

Senlent_0-1769504537946.png


Re: S32K3 FLEXIO数据异常Compile no problem, there is no "Mcal.h" file, if so, clear the project, compile again and there will be no problem (I do not know if this is the IDE version of the problem, S32DS 3.6 does not seem to have this error). If it's not this error, can you tell me what's wrong with the compilation?Re: S32K3 FLEXIO数据异常

Hi@Jason22

Sorry, I read it wrong, it's not the IDE version, it's that I read Enable User Mode Support as Enable Flexio Common Support

Can you double check the project you provided, I can't get it to compile successfully.

Re: S32K3 FLEXIO数据异常

没有勾选Enable User Mode Support”,配置还是有效

Jason22_1-1769499402529.pngJason22_2-1769499419710.png

不勾选"Enable Flexio Common Support",配置才无效,我使用的是S32DS 3.5.14,这和S32DS版本有关嘛

Jason22_3-1769499528290.pngJason22_4-1769499545206.png


Re: S32K3 FLEXIO数据异常

Hi@Jason22

你不勾选“Enable User Mode Support”下面的配置不是不生效了嘛

Senlent_0-1769498578945.png


Re: S32K3 FLEXIO数据异常

Hi@Jason22

Logic analyzer yourself to test if the data you're sending out is correct or not

Re: S32K3 FLEXIO数据异常

I also compared it and found the same thing, re-ran the program and found that after checking the box, the data looped left again, but the first time I checked the box, the data did go normal, and repeated the run a few times and it was normal, so I don't know what factors are causing this.

Then I would like to ask, is it my configuration or the code has a problem, why the data received by the slave is just the result of the data sent by the host cyclic left shift? Thanks for your help.

Data sent by the host

Jason22_1-1769505898767.png


Data received from the slave

Jason22_2-1769505933794.png



Tags (1)
No ratings
Version history
Last update:
‎01-28-2026 05:22 AM
Updated by: