FEE read problem

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

FEE read problem

Jump to solution
2,643 Views
tianxing
Contributor IV

I found a problem when I debug the S32K344 FEE code.
If we write 4 bytes data we need the define a 6 bytes variable to read it or else
we cannot get the correct data.Why this happened?
The source code is as below
uint8 Eeprom_1[4];
uint8 EepromRead_1[6]={0};

for(uint8 i=0;i<4;i++)
{
Eeprom_1[i]=i;

}
Fls_Init(NULL_PTR);
Fee_Init(NULL_PTR);

while(Fee_GetStatus()!=MEMIF_IDLE)
{
Fls_MainFunction();
Fee_MainFunction();
}
Fee_Write(FeeConf_FeeBlockConfiguration_FeeBlockConfiguration_0,Eeprom_1);
while(Fee_GetStatus()!=MEMIF_IDLE)
{
Fls_MainFunction();
Fee_MainFunction();
}
Fee_Read(FeeConf_FeeBlockConfiguration_FeeBlockConfiguration_0,0,EepromRead_1,4);
while(Fee_GetStatus()!=MEMIF_IDLE)
{
Fls_MainFunction();
Fee_MainFunction();
}

0 Kudos
Reply
1 Solution
2,585 Views
namnguyenviet
NXP Employee
NXP Employee

Hello @tianxing,

I have tried your project, unfortunately I wasn't able to reproduce your issue: I modified the EepromRead_1[] to have only 4 bytes, still I could see the read data was correct (I also tried with other programmed data). See below snapshot:

fee-read-value.PNG

Except the modification of the store buffer and the comment out of FlexCAN (I didn't configure FlexCAN receiver node), I didn't change anything and just re-compile the project. I have attached the project after modified.

Best Regards,

Nam

View solution in original post

0 Kudos
Reply
4 Replies
2,586 Views
namnguyenviet
NXP Employee
NXP Employee

Hello @tianxing,

I have tried your project, unfortunately I wasn't able to reproduce your issue: I modified the EepromRead_1[] to have only 4 bytes, still I could see the read data was correct (I also tried with other programmed data). See below snapshot:

fee-read-value.PNG

Except the modification of the store buffer and the comment out of FlexCAN (I didn't configure FlexCAN receiver node), I didn't change anything and just re-compile the project. I have attached the project after modified.

Best Regards,

Nam

0 Kudos
Reply
2,565 Views
tianxing
Contributor IV

Thank you Nam

May be it is the JLink problem,I used the V9 JLink cannot work well with S32K344

And we bought V11 to solve this problem.

 

0 Kudos
Reply
2,613 Views
namnguyenviet
NXP Employee
NXP Employee

Please, could you share with me the Fls configuration you're using? 

Best Regards,

Nam

0 Kudos
Reply
2,610 Views
tianxing
Contributor IV

Hi,please refer to  below picture and I share the source code in the attach file.

Thank you Nam.

Best Regards.

tianxing_0-1640075916369.png

tianxing_1-1640075941805.png

tianxing_2-1640075959258.png

 

 

0 Kudos
Reply