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
  • Ulrich,
    I don't know your processor in detail but an STR912 is better to boot from flash bank 1 when a bootloader is involved as a sector size of bank 1 is only 8 KB (or 16 KB, depending on the processor flavor) rather than 64 KB on bank 0. You would have to switch banks once you are ready with your IAP. I think ST's USB library offers the possibility to see if a device is coupled - I don't remember which register exactly is involved, sorry. I also thing that ST's site (http://www.st.com) also offers downloads for STR7 (ARM7) processors that demonstrate IAP using Ethernet and a serial port. At least, it exists for the STR9.

Reply
  • Ulrich,
    I don't know your processor in detail but an STR912 is better to boot from flash bank 1 when a bootloader is involved as a sector size of bank 1 is only 8 KB (or 16 KB, depending on the processor flavor) rather than 64 KB on bank 0. You would have to switch banks once you are ready with your IAP. I think ST's USB library offers the possibility to see if a device is coupled - I don't remember which register exactly is involved, sorry. I also thing that ST's site (http://www.st.com) also offers downloads for STR7 (ARM7) processors that demonstrate IAP using Ethernet and a serial port. At least, it exists for the STR9.

Children