Hi,
We would like to write the same ELF file to both the Active and Passive partitions of an S32K3 device.
Currently, we're writing the ELF only to the Active partition using T32 JTAG with the following script:
---------------
FLASH.ReProgram ALL
(
Data.LOAD.auto "&elf"
)
FLASH.ReProgram OFF
DIALOG.MESSAGE "Load test ELF"
sys.reset
sys.u
----------------
Now, we're looking for a way to also write the same ELF to the Passive partition.
By "same ELF", we mean the ELF uses the same linker configuration and IVT structure.
We're exploring this approach to make secure boot testing more convenient under the AB_SWAP configuration.
Any suggestions or references for how to do this properly?
Thanks in advance.
Hi @sochoi
In T32, you can use something like this:
flash.reprogram.all
Data.Load.Elf "..\S32K344_DemoAppTemplate.elf"
Data.Load.Elf "..\S32K344_DemoAppTemplate.elf" 0x200000
flash.program off
This will program the elf file to 0x400000 (i.e. to address given by linker file) and then the same elf file will be programmed second time with additional offset 0x200000 - that means to passive partition at 0x600000.
Regards,
Lukas