I use S32SDK_S32K1xx_RTM_3.0.0, flexio_i2c_s32k118 sample code, and change the baud rate from 100000 to 400000. The i2c output is correct as expected (see "Correct_400k_-O1" below).
However, if I change the optimization level from -O1 to -O0(None), the i2c output will repeat the slave address. As you can see on "Incorrect_400k_-O0(None)" below, the second byte is 0x4A instead of 0x00.
I've attached the project file. I can understand normally optimization causes abnormal, but in this case none optimization causes abnormal. Just wondering if this is a bug?
Figure 1: Correct_400k_-O1

Figure 2: Incorrect_400k_-O0(None)
