Hello friends in the community, I have encountered an issue and come here for help. I am developing my project using the S32K146. When using the flash memory, I want to write 256 bytes of data into the flash (with the start address being 0x80000), but in the actual process, a problem occurred: not all data was written to the specified address.
The details are as follows:
I. I used EB Tresos to configure the PFlash, as shown in the figure (only one sector is selected for demonstration purposes).

II. This is a data test function I used to write data into the flash, as shown in the figure.

III. This is the result during debugging:
- This is where I called my function.
- I used the Mem_43_INFLS_GetJobResult function to determine whether the writing was successful, and the return value was 2 (indicating MEM_43_INFLS_JOB_FAILED).
- Some data was written to the flash at the address 0x80000, but only a part of it—this obviously does not meet my requirements.

My question:
Did I make a mistake in the configuration, or is there a missing step that prevents me from writing 256 bytes of data?