S32K146 FEE ISSUE

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

S32K146 FEE ISSUE

跳至解决方案
3,079 次查看
shiqi_seventeen
Contributor III

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.

0 项奖励
回复
1 解答
3,010 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

在原帖中查看解决方案

4 回复数
3,051 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

3,041 次查看
shiqi_seventeen
Contributor III

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

 

0 项奖励
回复
3,011 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

2,993 次查看
shiqi_seventeen
Contributor III
Hi,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!
0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-1999644%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K146%E8%B4%B9%E7%94%A8%E9%97%AE%E9%A2%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1999644%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%A4%A7%E5%AE%B6%E5%A5%BD%EF%BC%8C%E5%9B%A2%E9%98%9F%E3%80%82%E6%88%91%E7%9B%AE%E5%89%8D%E6%AD%A3%E5%9C%A8%E5%BC%80%E5%8F%91%E4%B8%80%E4%B8%AA%E4%BD%BF%E7%94%A8%20S32K146%20%E7%9A%84%E9%A1%B9%E7%9B%AE%E3%80%82%E6%88%91%E5%9C%A8%E4%BD%BF%E7%94%A8%20EB%20tresos%20%E9%85%8D%E7%BD%AE%20FEE%20%E6%A8%A1%E5%9D%97%E6%97%B6%E9%81%87%E5%88%B0%E4%BA%86%E4%B8%80%E4%BA%9B%E9%97%AE%E9%A2%98%E3%80%82%E6%82%A8%E8%83%BD%E5%90%A6%E6%8F%90%E4%BE%9B%E4%B8%80%E4%BA%9B%E7%AD%94%E6%A1%88%E6%88%96%E5%BB%BA%E8%AE%AE%EF%BC%9F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22shiqi_seventeen_0-1732244187278.png%22%20style%3D%22width%3A%20314px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22shiqi_seventeen_0-1732244187278.png%22%20style%3D%22width%3A%20314px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F311871i768E56D68ACB40D3%2Fimage-dimensions%2F314x244%3Fv%3Dv2%22%20width%3D%22314%22%20height%3D%22244%22%20role%3D%22button%22%20title%3D%22shiqi_seventeen_0-1732244187278.png%22%20alt%3D%22shiqi_seventeen_0-1732244187278.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22shiqi_seventeen_1-1732244218732.png%22%20style%3D%22width%3A%20290px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22shiqi_seventeen_1-1732244218732.png%22%20style%3D%22width%3A%20290px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F311872i0DCA43FBAC564F65%2Fimage-dimensions%2F290x181%3Fv%3Dv2%22%20width%3D%22290%22%20height%3D%22181%22%20role%3D%22button%22%20title%3D%22shiqi_seventeen_1-1732244218732.png%22%20alt%3D%22shiqi_seventeen_1-1732244218732.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3COL%3E%3CLI%3E%E5%A6%82%E5%9B%BE%E6%89%80%E7%A4%BA%EF%BC%8C%20%3CSTRONG%3EFee%20Block%20Size%3C%2FSTRONG%3E%E5%92%8CF%20%3CSTRONG%3Eee%20Virtual%20Page%20Size%3C%2FSTRONG%3E%E4%B9%8B%E9%97%B4%E6%98%AF%E4%BB%80%E4%B9%88%E5%85%B3%E7%B3%BB%EF%BC%9F%3C%2FLI%3E%3CLI%3E%E5%BD%93%E6%88%91%E5%B0%86%3CSTRONG%3E%E8%B4%B9%E7%94%A8%E8%99%9A%E6%8B%9F%E9%A1%B5%E9%9D%A2%E5%A4%A7%E5%B0%8F%3C%2FSTRONG%3E%E9%85%8D%E7%BD%AE%E4%B8%BA%208%20%E6%88%96%2032%20%E6%97%B6%EF%BC%8C%E5%8F%AA%E6%9C%89%E5%BD%93%3CSTRONG%3E%E8%B4%B9%E7%94%A8%E5%9D%97%E5%A4%A7%E5%B0%8F%3C%2FSTRONG%3E%E5%B0%8F%E4%BA%8E%E6%88%96%E7%AD%89%E4%BA%8E%2032%20%E6%97%B6%EF%BC%8C%E6%88%91%E6%89%8D%E8%83%BD%E9%80%9A%E8%BF%87%20Fee_Read()%20%E5%87%BD%E6%95%B0%E6%A3%80%E7%B4%A2%E6%89%80%E9%9C%80%E7%9A%84%E6%95%B0%E6%8D%AE%E3%80%82%E4%BE%8B%E5%A6%82%EF%BC%8C%E5%A6%82%E6%9E%9C%E6%88%91%E5%B0%86%3CSTRONG%3EFee%20Block%20Size%3C%2FSTRONG%3E%E8%AE%BE%E7%BD%AE%E4%B8%BA%2064%EF%BC%88%E5%A4%A7%E4%BA%8E%2032%20%E7%9A%84%E5%80%BC%EF%BC%89%E5%B9%B6%E5%B0%86%3CSTRONG%3EFee%20Virtual%20Page%20Size%3C%2FSTRONG%3E%E8%AE%BE%E7%BD%AE%E4%B8%BA%2032%EF%BC%8C%E5%88%99%E6%88%91%E6%97%A0%E6%B3%95%E5%B0%86%E6%95%B0%E6%8D%AE%E5%86%99%E5%85%A5%20D-flash%EF%BC%8C%E5%9B%A0%E6%AD%A4%E4%B9%9F%E6%97%A0%E6%B3%95%E8%AF%BB%E5%8F%96%E6%95%B0%E6%8D%AE%E3%80%82%E5%A6%82%E6%9E%9C%E6%88%91%E6%83%B3%E5%B0%86%E8%B4%B9%E7%94%A8%E5%9D%97%E5%A4%A7%E5%B0%8F%E8%AE%BE%E7%BD%AE%E4%B8%BA%20200%EF%BC%8C%E6%88%91%E8%AF%A5%E6%80%8E%E4%B9%88%E5%81%9A%EF%BC%9F%20%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22shiqi_seventeen_2-1732244387365.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22shiqi_seventeen_2-1732244387365.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F311875i408F863A7425AE51%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22shiqi_seventeen_2-1732244387365.png%22%20alt%3D%22shiqi_seventeen_2-1732244387365.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%E6%84%9F%E8%B0%A2%E6%82%A8%E7%9A%84%E5%9B%9E%E5%A4%8D%E3%80%82%E6%84%9F%E8%B0%A2%E6%82%A8%E7%9A%84%E5%B8%AE%E5%8A%A9%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2003263%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AS32K146%E8%B4%B9%E7%94%A8%E9%97%AE%E9%A2%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2003263%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%97%A8%EF%BC%8CLukas%E3%80%82%E7%8E%B0%E5%9C%A8%E6%88%91%E5%8F%AF%E4%BB%A5%E5%AE%9E%E7%8E%B0%20FEE%20%E5%8A%9F%E8%83%BD%E4%BA%86%EF%BC%8C%E5%9B%A0%E4%B8%BA%E6%88%91%E5%8F%AF%E4%BB%A5%E7%9B%B4%E6%8E%A5%E8%AF%BB%E5%87%BA%E6%9D%A5%E8%80%8C%E4%B8%8D%E9%9C%80%E8%A6%81%E7%AD%89%E5%BE%85%E5%AE%83%E5%86%99%E5%AE%8C%E3%80%82%E4%BD%A0%E7%9A%84%E5%BB%BA%E8%AE%AE%E5%BE%88%E6%9C%89%E5%B8%AE%E5%8A%A9%E3%80%82%E8%B0%A2%E8%B0%A2%EF%BC%81%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2001445%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AS32K146%E8%B4%B9%E7%94%A8%E9%97%AE%E9%A2%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2001445%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%E5%8D%A2%E5%8D%A1%E6%96%AF%EF%BC%81%E8%B0%A2%E8%B0%A2%E4%BD%A0%E7%9A%84%E5%9B%9E%E5%A4%8D%EF%BC%8C%3C%2FP%3E%3CP%3E%E6%88%91%E5%A4%8D%E5%88%B6%E4%BA%86%E5%AE%98%E6%96%B9%E4%BE%8B%E5%AD%90%E6%8F%90%E4%BE%9B%E7%9A%84%E8%AF%BB%E5%86%99%E5%87%BD%E6%95%B0%E5%88%B0%E6%88%91%E7%9A%84%E9%A1%B9%E7%9B%AE%E4%B8%AD%E4%BD%BF%E7%94%A8%EF%BC%8C%E5%A6%82%E4%BD%A0%E7%9A%84%E6%88%AA%E5%9B%BE%E6%89%80%E7%A4%BA%E3%80%82S32K146%E4%B8%AD%E4%B8%80%E4%B8%AA%E6%89%87%E5%8C%BA%E7%9A%84%E5%A4%A7%E5%B0%8F%E4%B8%BA0x1000%E3%80%82%E6%88%91%E5%8F%AF%E4%BB%A5%E8%BF%99%E6%A0%B7%E7%90%86%E8%A7%A3%E5%90%97%EF%BC%9A%E2%80%9CFee%20Block%20Size%E2%80%9D%E6%98%AF%E7%94%A8%E6%88%B7%E5%AE%9A%E4%B9%89%E7%9A%84%E5%9D%97%E5%A4%A7%E5%B0%8F%EF%BC%8C%E5%85%B6%E6%9C%80%E5%A4%A7%E5%80%BC%E5%BA%94%E5%B0%8F%E4%BA%8E0x1000%EF%BC%9F%E8%BF%99%E6%98%AF%E6%88%91%E7%9A%84%E5%87%BD%E6%95%B0%E8%B0%83%E7%94%A8%E6%88%AA%E5%9B%BE%EF%BC%9A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22shiqi_seventeen_0-1732583050877.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22shiqi_seventeen_0-1732583050877.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F312457iC4AFA7EB35E5E01E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22shiqi_seventeen_0-1732583050877.png%22%20alt%3D%22shiqi_seventeen_0-1732583050877.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E