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
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.
Hi,
I am trying to write a bootloader for the STR912 with IAP. I should put the bootloader in the code in the small flash and while this is executing, the primary big flash is being updated in case of USB or Can update for IAP. Do you know where can I find an example of a similar bootloader? I donÂ't have much experience and I donÂ't know where to start from.
Thanks in advance.
By the way if you can send me some kind of example it will be great.
miltongodinho@hotmail.com
Thanks