paparazzi / luftboot

USB DFU bootloader for the stm32 based autopilots
http://paparazziuav.org
27 stars 25 forks source link

changed behaviour of luftboot to better match LPC21xx bootloader #3

Closed scdwyer closed 12 years ago

scdwyer commented 12 years ago

Either the external clock (12MHz PLL to 72MHz) or internal oscillator (8MHz PLL to 48MHz) can be selected at build time. See README.

@softsr, after some consideration, I think your method of setting a flag to allow a full reset is a better solution. I added several features and a few extra comments. Regarding the clock selection, really the external clock should be more stable and reliable, especially for timing sensitive USB operation. However, one can now select internal vs external clock at build time (the default is still external). Any thoughts?

@esden, could you take a quick look?

softsr commented 12 years ago

@scdwyer as well as people using not only Linux itself, but also virtual machines, it would be useful to have a version that has max stability under both systems. I agree that using external clock should give also more stability, but as I already mentioned, I've already had some problems with 72MHz under virtual Ubuntu. And the most important - using internal clock gives independence from the user clock choice, so it makes a Luftboot in that way an universal DFU bootloader, that could be used not only on Lisa. And I think the flexibility is the main purpose of the Paparazzi project. So imho, internal clock would be a better choice.