This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Own Bootloader / IAP

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

Parents
  • 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.

Reply
  • 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.

Children
No data