Ozone is generally working very well. However I'm seeing a problem with loading two ELF images into the flash of a Kinetis device. The bootloader resides at 0x0 and the main application at 0x1000. The bootloader ELF loads fine, but Ozone appears to have issues loading the second image. Because Ozone debugging crashes I can't figure out exactly what's wrong. If I load the main image as a binary and specify 0x1000 as the base address, then everything is fine.
When it crashes, I see this on the console window.
"Elf.GetBaseAddr();
Initializing PC and SP.
Target.ReadU32 (00000000);
Target.SetReg ("SP", 0x464C457F);
Target.ReadU32 (00000004);
Target.SetReg ("PC", 0x10101);"
It appears that the ELF file is being loaded into flash directly as a binary image, since the SP is loaded with "_ELF"!
When I reset and reconnect to the target, the entire flash memory (including bootloader) is erased.
Any ideas on what might cause Ozone to do this?
When it crashes, I see this on the console window.
"Elf.GetBaseAddr();
Initializing PC and SP.
Target.ReadU32 (00000000);
Target.SetReg ("SP", 0x464C457F);
Target.ReadU32 (00000004);
Target.SetReg ("PC", 0x10101);"
It appears that the ELF file is being loaded into flash directly as a binary image, since the SP is loaded with "_ELF"!
When I reset and reconnect to the target, the entire flash memory (including bootloader) is erased.
Any ideas on what might cause Ozone to do this?