zedamota
1cc152b4dd
More cleaning, moved stopwatch files to library folder, code formatting.
2011-04-29 20:48:13 +01:00
zedamota
3132de4e48
Fixes download being slow issue. Made some cleaning also
2011-04-29 19:22:21 +01:00
James Cotton
5f776f0b58
Merge branch 'master' into OP-439_CorvusCorax_Bootloader-Makefile-and-OpenOCD-config-for-Linux
2011-04-27 23:41:35 -05:00
James Cotton
69d03ca101
OP-439: Simplify further. Abstract most of the OOCD flags into the common
...
firmware include and delete all the extra foss-jtag config files. There is now
a legacy file for the revA board a second for AHRS that changes the port
2011-04-24 10:19:00 -05:00
Corvus Corax
ee7179bd53
OP-439 unified OpenOCD config for mac os x and Linux, Makefiles adapted accordingly
2011-04-24 12:10:33 +02:00
Corvus Corax
5d952f81e3
PIOS: BL_HELPER: refactored function names
2011-04-23 21:11:17 +02:00
Corvus Corax
357bc369db
PIOS: Bootloader Helper functions should sit in HAL, not duplicated in every single architecture.
2011-04-23 19:40:41 +02:00
David Buzz Carlson
876ca3044c
Added EKF code. Most of this was bulk copy and paste from the AHRS, so a lot of verification needs to take place. Grabbing sensor data remains untested.
2011-04-20 03:37:50 -07:00
corvus
08eabd21e4
Fixed files with mixed line endings
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3168 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-15 12:03:20 +00:00
edouard
08b154590d
Correct a typo in the CC bootloader USB descriptor define file (in the comments)
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3164 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-14 21:35:09 +00:00
edouard
1f88b7f5aa
Remove obsolete README files. Obsolete and actually misleading...
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3163 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-14 21:00:40 +00:00
sambas
193f9720e5
unix style output dir for all, makes eclipse users happier
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3042 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-15 19:11:56 +00:00
edouard
7631aeeb48
OP-338 USB Bootloaders on OpenPilot & CopterControl boards now use the new PID, and the right values for bcdDevice.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3014 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-09 07:06:53 +00:00
edouard
ae32bae5c7
OP-338: Use the new convention on bcdDevice for the PipXtreme. Also use the new PID for the modem. Careful, this breaks the uploader gadget on the GCS for now!
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3011 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-08 23:57:18 +00:00
osnwt
0210334aa8
OP-305 Preparing the top level Makefile for unix-style Windows build.
...
- fixed: dep directory problem (sometimes it cannot be created by make, so do it with mkdir);
- fixed: added -f option to all_clean target (or rm stops on Windows for hidden .svn and r/o files);
- fixed: overridden USE_BOOTLOADER var for bootloaders (should always be set to NO regardless of command line);
- verified: short compilation output works as expected.
Some TODOs still exist, see OP-305 comments for details.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2918 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-28 10:25:56 +00:00
stac
76fed0387b
makefile: refactor bootloader makefiles
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2856 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-23 04:19:00 +00:00
stac
ee3d890bfc
makefile: convert to unix line-endings
...
These files were a mix of line endings. Now
they're all consistent as LF terminators.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2855 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-23 04:18:56 +00:00
osnwt
6613158206
BootloaderUpdater: fixed compilation errors. It works with CC too (tested).
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2813 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-19 19:18:03 +00:00
zedamota
9050608e6c
Flight/Bootloader - Bootloader updater, minor update to help user with the CL options
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2805 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-17 15:02:10 +00:00
zedamota
56c195fa9a
Flight/Bootloader - Bootloader updater, WORKING - tested with PipX only (should work for all boards though).
...
Led(LED1 different color on each board) Sequence:
1-Power On
2-Led ON for 3 seconds (you can disconnect during this time - safety measure)
3-Led flashes very quickly while the board is being programed (because the program is stored in memory this is very fast and looks like a led glitch)
4-If all good - LED flashes 3 times with a 1sec period and turns off - you may now reboot.
4-If an error ocurred - LED will keep flashing with a 500ms period until power off
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2804 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-17 14:54:57 +00:00
zedamota
949617e236
Flight/Bootloader - Bootloader updater, minor fix
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2801 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-16 15:04:59 +00:00
zedamota
993a4a7c5f
Flight/Bootloader - Bootloader updater, needs testing
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2798 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-15 17:42:24 +00:00
zedamota
0abec1908d
Flight/Bootloadera - small cleaning up. Start of Bootloader Update firmware witch will enable users to update the Bootloader itself without JTAG.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2794 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-14 18:15:25 +00:00
stac
3b34cc71b4
bl_pipxtreme: bind to new COM driver
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2789 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-14 01:17:42 +00:00
stac
5ac55a35e3
bl_coptercontrol: bind to new COM driver
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2788 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-14 01:17:39 +00:00
stac
000234f036
bl_ahrs: bind to new COM, USART and SPI drivers
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2787 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-14 01:17:35 +00:00
stac
bbb3882826
bl_openpilot: bind to new COM, USART and SPI drivers
...
- Removed all unnecessary device instances and their cfg's.
- SPI to SD card
- I2C
- Aux USART
- Moved SPI baudrate setting into cfg rather than init func.
- Abstracted forcing slave select under OPAHRS API.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2786 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-14 01:17:32 +00:00
stac
3fda65c5d3
hwinit: Convert SPI drivers to dynamic init
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2772 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-12 22:19:50 +00:00
zedamota
8236bf8e19
CC-13 CopterControl bootloader - don't know if this fixes it, please try it.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2614 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-28 21:02:48 +00:00
edouard
df0b5f9b6c
CC-13 CopterControl bootloader first pass. Does not talk on USB for some reason, but starts.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2601 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-27 22:33:13 +00:00
sambas
eb6ebb93d2
Build: last patches for windoes, and output targets
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2586 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-24 20:34:29 +00:00
sambas
ae324ffd6e
3rd for Big Mess, bootloaders and pipxtreme
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2549 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-23 18:51:43 +00:00
edouard
b3ca037308
OP-277 Update all files to use a BOARD_TYPE and BOARD_REVISION scheme through the whole codebase.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2458 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-16 20:41:55 +00:00
zedamota
ad0b3e911d
OP-268/PipX Bootloader - Changed Timers for MD device, auto memory space fetching (as per people request ;)). Stripped unused functions to reduce size.
...
TESTED WORKS.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2431 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-14 15:33:24 +00:00
zedamota
691c58a583
OP-268/PipX Bootloader - Changed the size of BL def.
...
New naming convention for the linker files:
link_(board_name)_(density)_(bl usage).ld
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2401 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-13 17:34:22 +00:00
zedamota
301d9cddfc
OP-268/PipX Bootloader - Trunk integration of Edouard's work.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2399 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-13 15:57:30 +00:00
zedamota
1f89ee1865
OP-21/Bootloader - Change HW ID to 16bits. Should still be compatible with the old version.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2398 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-13 14:36:32 +00:00
zedamota
14ef24a3de
OP-21/Bootloader - Maximize flash space available for user code. Bring back delay on HID send (board->pc) it still hangs when blasted with data. AHRS is now Readable.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2263 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-21 17:25:24 +00:00
zedamota
7f00e88321
OP-21/Bootloader - House cleaning only, shouldn't brake anything.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2250 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-18 20:41:13 +00:00
zedamota
c034a35d2c
OP-21/Bootloader - Changes to the IAPObject. Implements MB and AHRS user mode IAPObject. Added user mode reset command to the CLI. To many changes to bootloading system to write here, a Wiki page will have to be writen.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2238 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-15 19:06:28 +00:00
peabody124
08e888ac8c
Bootloader: Don't make it hang in bootloader by default. That's mean PT!
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2236 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-14 01:59:15 +00:00
zedamota
cc5a4c2bb9
OP-21/Bootloader - NOT FUNCTIONAL
...
Implements RS232(Telemetry) uploads using Kokomo's protocol.
This is a test version, the code will never timeout and jump to user space code.
If USB is connected on Power Up it will be used, if not RS232 will be used instead.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2211 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-10 19:11:29 +00:00
zedamota
98b0f406dc
OP-21/Bootloader - fixes GPS connected issues, enhances timings problems, further work on serial support
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2136 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-21 19:37:40 +00:00
edouard
d5752dff34
Update BL Makefile for buffer.c removal.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2043 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-10-30 18:39:07 +00:00
edouard
8087fda6f9
Update Makefile so that the bootloader still compiles with the latest buffer_XXX changes...
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2032 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-10-29 17:54:05 +00:00
les
2125e2479d
Added AHRS boot loader SPI protocol
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1965 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-10-16 17:54:00 +00:00
kokomojoe
a0b3b47c48
OP-21 Flight/Bootloader - experimental modules implementing a simple serial packet (SSP) protocol. ssp_test is a test framework. ssp is the module, main_ssp.c prototype module on how this could be used in the bootloader, it is not fully functional, additional logic required for start-up detection to decide if serial initialization is required.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1909 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-10-07 04:59:18 +00:00
kokomojoe
ca4f3b53fa
OP-21/Flight Bootloader - added compiler and linker options to remove unused functions. Code is now smaller.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1759 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-09-26 02:34:04 +00:00
zedamota
095cbb4dd5
OP-21/Flight Bootloader - Now pulls SS pin low again if no AHRS is found.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1733 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-09-24 15:46:59 +00:00
zedamota
3ba6372dc4
OP-21/Flight Bootloader - Clean up and linker files for the AHRS
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1691 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-09-19 18:27:53 +00:00
zedamota
128df749f0
OP-21/Flight Bootloader - small bug fix
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1683 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-09-18 23:38:45 +00:00
zedamota
1b9811aa0e
OP-21/Flight Bootloader - AHRS programming fully working
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1681 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-09-18 23:10:26 +00:00
zedamota
97b44ffb04
OP-21/Flight Bootloader - Various fixes.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1678 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-09-18 00:46:34 +00:00
zedamota
e8d6e7c557
Flight - Centralized board specific files, BL and User FW uses the same board definitions, no need to have 2.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1663 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-09-16 19:19:38 +00:00
zedamota
4d0d865c31
OP-21/Flight Bootloader - fix to paths
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1647 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-09-15 18:03:52 +00:00
pip
82be9117d6
Added USART baudrate defines into pios_board.h & '#if defined's into pios_board.c
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1646 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-09-15 17:37:50 +00:00
pip
d2bc126e68
Added PIOS_COM_AUX_BAUDRATE to pios_board.h & '#if defined' to pios_board.c for easier baudrate setting.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1645 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-09-15 17:33:00 +00:00
zedamota
50b7931a1c
OP-21/Flight Bootloader - new bootloaders
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1639 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-09-15 17:06:51 +00:00
zedamota
df88140f51
OP-21/Flight Bootloader - Remove deprecated bootloaders
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1637 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-09-15 16:58:00 +00:00
zedamota
492227c916
OP-21/Flight Bootloader - Donwload function is now interrupt driven. Had to increase IN polling interval due to some problems.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1530 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-09-05 00:17:20 +00:00
zedamota
8233f87b0a
OP-21/Flight Bootloader - Download function fixed.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1513 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-09-04 01:06:40 +00:00
zedamota
749267aee5
OP-21/Flight Bootloader - Minor bug fix.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1508 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-09-02 22:43:32 +00:00
zedamota
7a66232be0
OP-21/Flight Bootloader - Complete recoding. WARNING- As with all flash memories, the one in your OP HW as limited write cycles. Errors in this bootloader may damage your HW if it falls under a write or erase dead loop. This is still under development, for devs only.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1507 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-09-02 20:13:41 +00:00
zedamota
2142467751
OP-21/Flight Bootloader - Added more Led status modes. Fixed downloading for bigger packet format.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1436 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-27 20:03:51 +00:00
zedamota
7f76b7f5a0
OP-21/Flight Bootloader - Fixed an error introduced on last rev.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1417 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-26 16:26:51 +00:00
zedamota
d71ade8227
OP-21/Flight Bootloader - Now if USB not connected it jumps directly to FW. If connected it will wait 5 seconds for command, then jumps. Also changed led flashing to PWM and created a timer for the delays.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1409 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-25 22:31:14 +00:00
zedamota
6da48dcc1a
OP-21/Flight Bootloader Changed packet size to 64byte
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1398 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-24 18:26:44 +00:00
zedamota
f91ae974a7
OP-21/Bootloader Small change. Now turns off interrupts before jumping to code.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1393 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-23 21:30:09 +00:00
zedamota
002c746076
OP-21/Bootloader deleted old one, commited new one. Partly functional, but slow due to current packet size.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1378 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-22 19:51:55 +00:00
zedamota
a688b95eb6
Flight firmware-Start of the new bootloader
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1235 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-08 00:14:22 +00:00
dankers
297985c2a0
Move old bootloader to bootloader.old
...
This should be removed at some point but can wait till we have a working bootloader.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1234 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-07 23:55:28 +00:00
gussy
a8d4297abe
Small optimisations in bootloader code.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@313 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-03-14 12:01:13 +00:00
gussy
7b5d85cb3e
PIOS_LED: Initialise all LED's as off.
...
PIOS_SYS: Added system reset function.
OpenPilot Makefile: Default USE_BOOTLOADER should be NO.
OpenPilot Bootloader: Removed LED initialisation.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@303 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-03-14 06:47:57 +00:00
gussy
8ba2d76cd6
OP-21: Cleaning up a few things.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@302 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-03-13 20:46:46 +00:00
gussy
9b1e548550
OP-21: Made bootloader startup faster and more reliable.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@301 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-03-13 20:02:06 +00:00
gussy
444a652383
OP-21: Bootloader mostly complete. Working and tested.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@299 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-03-13 17:53:42 +00:00
gussy
3de8a31fa0
Added working and tested base for OpenPilot HID Bootloader.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@293 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-03-12 16:24:02 +00:00