Hello ,
I am trying to use bootloader by using sdk example mcuboot_opensource and flashloader_cm7 in mcuxpresso.
First question is that what is difference between mcuboot and flashloader ?
Secondly, I download flashloader software to external memory of mcu and when I try to boot my code by using secure provisioning, it does but I guess it erase first all memory then boot the my code so my code works but flashloader software has been erased, is there a way to change erase address and download address? And then I saw mfgtool, as far as I understand ,erase and download address could be changed by changing .bd files but I couldn't use mfgtool, it didn't work on serial uart.
If I could use mfgtool, also I want to try memory remapping, I wish to download two different software in memory and I want to do memory remapping.
So, mfgtool support to I.MX rt1176 ?
I.MX rt1176 supports memory remapping ?
I use this code for remapping it doesn't work for now .
#define REMAPPADDRSTART 0x400CC420u
#define REMAPPADDREND 0x400CC424u
#define REMAPPADDROFFSET 0x400CC428u
void UDS_EnableRemapAPP(uint32_t start_addr, uint32_t end_addr, uint32_t offset ){
uint32_t * remap_start = (uint32_t *)REMAPPADDRSTART;
uint32_t * remap_end = (uint32_t *)REMAPPADDREND ;
uint32_t * remap_offset = (uint32_t *)REMAPPADDROFFSET;
* remap_start = start_addr | 0x1 ;
* remap_end = end_addr ;
* remap_offset = offset ;
}
UDS_EnableRemapAPP(0x30000000 , 0x30010000 ,0x10000);
I flash two different code using gui flash tool on mcuxpresso.
Best regards.