How to put the bootloader code in the DFlash memory
Hi @enthuCutlet
it's just necessary to update the linker file in your project. By default, you should see something like this in your linker file:
All the code resources are forced to program flash like this:
Just change it to data flash which is already defined in the memory segments.
IVT can be placed also to the data flash, so there's no problem with this:
And there's one more thing - data flash can be already used like this in default linker file:
So, you need to update this too. Easiest way is to split the data flash to two segments. Use the first segment as program flash and use the second segment for ROM data.
Regards,
Lukas