mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
280f537644
The ST USB code will automatically receive on any endpoint that is opened but not in the NAK state. Make sure we set OUT endpoints to NAK initially. It also happily writes via a NULL pointer in ep->xfer_buff which writes to address 0x0000_0000. Since address 0x0 is aliased onto the internal flash by the BOOT0/1 pins and the internal flash is (normally) in the LOCKED state, this write puts the internal flash into an errored state. This errored state means that writes to internal flash are no longer allowed and all further writes fail. |
||
---|---|---|
.. | ||
common | ||
inc | ||
osx | ||
posix | ||
stm32f4xx | ||
stm32f10x | ||
win32 | ||
pios_sim_posix.h | ||
pios.h |