1999644_en-US

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

1999644_en-US

1999644_en-US

S32K146 FEE ISSUE

Hello, team. I'm currently developing a project using S32K146. I encountered some issues while configuring the FEE module using EB tresos. Could you please provide some answers or suggestions?

shiqi_seventeen_0-1732244187278.pngshiqi_seventeen_1-1732244218732.png



  1. As shown in the image, what is the relationship between Fee Block Size and Fee Virtual Page Size?
  2. When I configure the Fee Virtual Page Size to either 8 or 32, I can only retrieve the desired data through the Fee_Read() function when the Fee Block Size is less than or equal to 32. For example, if I set the Fee Block Size to 64 (a value greater than 32) and Fee Virtual Page Size to 32, I cannot write data to the D-flash, and consequently, I cannot read the data. If I want to set the Fee Block Size to 200, what should I do?shiqi_seventeen_2-1732244387365.png

Thank you for your responses. I appreciate your help.

Re: S32K146 FEE ISSUEHi,Lukas.Now I can realize the FEE function because I read it out directly without waiting for it to finish writing. Your advice is very helpful. Thanks!Re: S32K146 FEE ISSUE

I did quick test on my side and I can use also large block like 64 bytes.

lukaszadrapa_0-1732726634557.png

lukaszadrapa_1-1732726687929.png

And I'm reading back correct data.

Maybe you can try it directly in the RTD example and then check the differences in your project.

The sector size is not the real maximum of Fee Block. It's smaller because there's also some overhead. The configurator checks it, it won't allow you to configure too big size. In the original RTD example, it allows me to set max 832 bytes. If you configure more, you will get error message like this:

lukaszadrapa_2-1732726918871.png

Regards,

Lukas

Re: S32K146 FEE ISSUE

HI,Lukas! Thank you for you reply,

   I copied the read and write functions provided by the official example and used them in my project, as shown in your screenshot. The size of one sector in S32K146 is 0x1000. Can I understand it this way: The "Fee Block Size" is a block size defined by the user, and its maximum value should be less than 0x1000? This is a screenshot of my function call:

shiqi_seventeen_0-1732583050877.png


Re: S32K146 FEE ISSUE

Hi @shiqi_seventeen 

Fee Block Size is a size of user data block. You can use more blocks and the blocks can have different sizes.
Max size is theoretically 65535 but it's limited by real size of flash sector.
Fee Block Size is not dependent on Fee Virtual Page Size.

Fee Virtual Page Size should be aligned to the real flash page size which is 8 bytes in this case. Both 8 bytes or 32 bytes can be set.

How do you call the write function? Do you call Main functions after the Fee_Write()?
This is a screenshot from Fee example available in RTD package:

lukaszadrapa_0-1732568865299.png

Regards,
Lukas

タグ(1)
評価なし
バージョン履歴
最終更新日:
‎11-21-2025 02:49 PM
更新者: