Hi,
I have a requirement to build the application to 2 flash locations say 0x10000000 and 0x10032000.
I want to do it in one shot, by using pre and post build scripts. I am using mcuxpresso as IDE. So, if anyone could help on how to configure the scripts to change the program memory configuration during compile time it would be of great help.
Thanks in advance.
I don't think this is possible:
1. A project can only have one memory configuration. 2 memory configurations = 2 projects
2. Even if you could change memory configs (which you can't), you cannot build 2 targets in 1 build. 1 build = 1 target
Ideas on how you might make this a bit easier.
1. Set up two projects. Use linked resources (described in online Help) so they both use the exact same source.
Or
2, (if the ONLY difference is the link step memory map), have 3 projects - one builds a library from your source, the other two have the separate memory configurations defined
I'm doing it the following way:
Linking Bootloader Applications with Eclipse and FreeMarker Scripts | MCU on Eclipse
I hope this helps,
Erich