FEE read problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,657件の閲覧回数
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,598件の閲覧回数
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,599件の閲覧回数
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,578件の閲覧回数
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,626件の閲覧回数
namnguyenviet
NXP Employee
NXP Employee

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

Best Regards,

Nam

0 件の賞賛
返信
2,623件の閲覧回数
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 件の賞賛
返信