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?
Thank you for your responses. I appreciate your help.
I did quick test on my side and I can use also large block like 64 bytes.
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:
Regards,
Lukas
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:
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:
Regards,
Lukas