Hi,
I am currently experimenting with the bootloader api of the RT 1064. I would like to create a setup with 2 images on the internal flash chip. Image 0 at 0x70000000 and image 2 at 0x70040000. Both images have the IVT header and the second image is compiled with start address 0x70000000. I would like to be able to switch from within image 0 to image 1. In the documentation I found the following command to do that:
uint32_t arg = 0xeb000001;
ROM_RunBootloader(&arg);
To define the location of the second image I've set the image offset value to 1 (256KB)
OCOTP->MISC_CONF1 = 0x1 << 16;
This did not work, I got the following error:
"Break at address "0x2019f8" with no debug information available, or outside of program code."
Since I was not sure if the Bootloader API sets the address mapping registers I've also tried to set the following registers.
IOMUXC_GPR->GPR30 = 0x70001000;
IOMUXC_GPR->GPR31 = 0x70200000;
IOMUXC_GPR->GPR32 = 0x40000;
This did not help unfortunately. Is there an example on how to do this or am I doing something wrong?
Thanks for the help,
Bart