FEE read problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

FEE read problem

跳至解决方案
2,654 次查看
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 项奖励
回复
1 解答
2,595 次查看
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 项奖励
回复
4 回复数
2,596 次查看
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 项奖励
回复
2,575 次查看
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 项奖励
回复
2,623 次查看
namnguyenviet
NXP Employee
NXP Employee

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

Best Regards,

Nam

0 项奖励
回复
2,620 次查看
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 项奖励
回复