Hi Lukas,
Very Glad to meet you again.
I implemented the flash Bootloader for MPC5602P based on the AN_qorriva_bootloader which was prepared for MPC55xx/56xx devices on Code Warrior platform.
Now I want to implement similar structure of flash bootloader on S32K144. I need your guidance in understanding & generating the linker file so that the APPKEY will fit into the srec file.
My basic questions are
1. Can I use the same list of ECC Codes which were used for MPC5x series instead of 0xAA55AA55 at the end of the application. Else better to erase the whole sector before jumping to bootloader?
2. Does it requires any setting in the project other than linker to generate the .srec file just like what we do in Code Warrior ROM Image settings.
3. Also I had seen the bootloader_S32K file on the example project where it uses the
const volatile uint32_t APPKEY __attribute__ ((section(".appkey"))) = 0x55AA55AA;
const volatile uint32_t RCHW[] __attribute__ ((section(".cfmConfigure"))) = { 0x015A015A, (uint32_t)Reset_Handler, 5000000, (uint32_t)&APPKEY } ;
Kindly clarify the importance of these two lines ?
Kindly help in solving these issues.
Thanks in advance,
Regards,
BJ Rajendranath.