Hello, team.
I'm currently developing the bootloader for S32K146, but I'm encountering some issues when writing data to the flash. I'd appreciate it if you could offer some advice. As shown in the image, this is an SREC file generated by S32DS IDE. However, I noticed a discontinuity in the addresses in this file: 0xA7260 ------- 0xA7270 ------- 0x7274. The remaining addresses are incremented by "0x10", but there is a gap between 0xA7270 and 0xA7274 where the increment is only 0x4. This issue prevents me from writing data to the flash because each flash write operation must occupy at least 8 bytes. However, there is only a 4-byte space provided here, making it impossible to write to the flash.
This is the problem I'm facing, and I hope you can suggest some solutions. Thank you.
Yes, that's correct. The minimum amount you can program is one phrase - 8 bytes:
The best solution for bootloaders is to align the s-record file. Take a look at this thread for details:
Regards,
Lukas