1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00
LibrePilot/flight
Stacey Sheldon 0e0571149b f4 usb: ensure that we NAK on unused OUT endpoints
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.
2013-05-11 22:41:03 +02:00
..
libraries OP-936: Merges branch 'next' into hyper/OP-936_task-monitor-rework, fixes damage/conflicts, 2013-05-06 19:11:14 +09:30
modules OP-936: Merges branch 'next' into hyper/OP-936_task-monitor-rework, fixes damage/conflicts, 2013-05-06 19:11:14 +09:30
pios f4 usb: ensure that we NAK on unused OUT endpoints 2013-05-11 22:41:03 +02:00
Project Merge remote-tracking branch 'remotes/origin/next' into sambas/diffnext 2013-05-02 09:00:12 +03:00
targets f4 usb: ensure correct interface numbers for BL and FW 2013-05-11 22:41:02 +02:00
tests/logfs Fix broken unit tests 2013-05-03 20:27:03 +02:00
uavobjects OP-936: Merges branch 'next' into hyper/OP-936_task-monitor-rework, fixes damage/conflicts, 2013-05-06 19:11:14 +09:30
uavtalk OP-931: adds -Wextra compiler option for the flight code, and makes the bazillion code changes required 2013-05-05 16:32:24 +09:30
.gitattributes Update flight/.gitattributes to include *.template files 2013-04-30 22:15:58 +02:00