We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all,
hope I did not miss a similar topic here. I searched, but did not find anything appropriate.
I want to have my device (LPC2368) to be updatetable via USB. To accomplish that, I think about two separate applications, a simple + small USB program (as H I D device, located at adress 0) that, upon reset checks for an USB link and, if none exists, starts the second "main" application, starting at address, say 0x8000.
Upon an USB connection at startup, the bootloader would erase/program the flash using IAP.
How do I have to set up uVision/the linker to build this application a) at adr 0 for debugging / test purposes and b) at the higher address for release versions
any tips highly appreciated kind regards + thanx in advance
You can specify which files that should be built for the different targets. You may have common code - such as CRC32 or similar - that should be built by both targets.
Two scatter files means that the boot loader and the application hsa completely different sets of memory available for the linker to use. If you don't need to advanced layouts, then you don't need manually created scatter files, but could just define two sets of memory mappings directly in the property dialogs.