I have a question about LPC1830 secure booting, if I want to use secure image, I read the "LPCScrypt_User_Guide" and LPC1830 user manual.
I want to know, decrypt image to SRAM 0x1000 0000 and set program counter = 0x1000,0000 is implement by HW?
Can I change 0x1000 0000 to other address Ex: External SDRAM?
Can I find the source code of decrypt and set program counter = 0x1000,0000? ex: start.s?
My compiler is MCUXpresso.
Hi Ken Su,
This flowchart is refering to the ROM boot code, this code can't be modified and isn't available. The program counter is set in this ROM code and also the position of the SRAM.
Also if you are using, note that the code need to be linked to RAM, for this in the MCUxpresso, in the project properties->C/C++ Build -> Settings -> Managed Linker Script, enable the option [Plain load image] and select the option that start at 0x1000 0000.
You can see the location of the memory sections in the project properties->C/C++ Build ->MCU settings.
I hope this can help you.