Commit Graph
100 Commits
Author SHA1 Message Date
px4dev 0589346ce6 Abort the px4io worker task if subscribing to the required ORB topics fails. 2013-07-06 00:00:10 -07:00
px4dev a4b0e3ecbe Add retry-on-error for non-protocol errors.
Add more performance counters; run test #1 faster.
2013-07-05 22:54:44 -07:00
px4dev 6871d2909b Add a mechanism for cancelling begin/end perf counters. 2013-07-05 22:53:57 -07:00
px4dev 3c8c596ac7 Enable handling for short-packet reception on FMU using the line-idle interrupt from the UART. Enable short packets at both ends. 2013-07-05 20:37:05 -07:00
px4dev bcfb713fe9 Enable handling for short-packet reception on IO using the line-idle interrupt from the UART. 2013-07-05 20:35:55 -07:00
px4dev f9a85ac7e6 Remove the TX completion callback on the IO side.
Report CRC, read and protocol errors.
2013-07-05 19:16:25 -07:00
px4dev 87c3d1a8c1 More link performance counters. 2013-07-05 19:03:08 -07:00
px4dev 10e673aa4b Send error response if register write fails. 2013-07-05 19:02:42 -07:00
px4dev 46a4a44321 Be more consistent with the packet format definition.
Free perf counters in ~PX4IO_serial
2013-07-05 18:36:00 -07:00
px4dev 1f7f7862ce Fix the USART6 default baudrate to match the IO bootloader. 2013-07-05 17:53:55 -07:00
px4dev 6c5a15da9b Eliminate the TD DMA callback; we don't need to know that it's completed.
Fix abort behaviour on timeouts, now we don't wedge after the first one.
2013-07-05 17:39:28 -07:00
px4dev 50cae347b4 Check packet CRCs and count errors; don't reject packets yet. 2013-07-05 17:13:54 -07:00
px4dev 5a8f874166 Add an 8-bit CRC to each transmitted packet. 2013-07-05 16:56:47 -07:00
px4dev 313231566c Encode the packet type and result in the unused high bits of the word count. 2013-07-05 16:41:27 -07:00
px4dev e55a37697d Always send and expect a reply for every message. 2013-07-05 16:34:44 -07:00
px4dev d83323d4a2 Use the NuttX built-in crc32, it works fine. 2013-07-05 16:18:55 -07:00
px4dev 83213c66df Reset the PX4IO rx DMA if we haven't seen any traffic in a while; this gets us back into sync. 2013-07-04 23:22:59 -07:00
px4dev 94b638d848 One more piece of paranoia when resetting DMA 2013-07-04 23:19:24 -07:00
px4dev 43210413a9 More test work on the px4io side of the serial interface. 2013-07-04 23:17:55 -07:00
px4dev 52096f017f Switch to the 'normal' way of doing register accessors.
Be more aggressive en/disabling DMA in the UART, since ST say you should.
2013-07-04 23:17:16 -07:00
px4dev c21237667b iov2 pin definition cleanup sweep 2013-07-04 23:16:13 -07:00
px4dev f7963a8c84 Fix printing of PC_COUNT perf counters 2013-07-04 23:14:13 -07:00
px4dev 2e001aad04 Add PX4IOv2 support to the uploader. 2013-07-04 12:50:59 -07:00
px4dev f2079ae7ff Add DMA error handling.
Add serial error handling.
Add short-packet-reception handling (this may allow us to send/receive shorter packets… needs testing).
2013-07-04 11:21:25 -07:00
px4dev 7255c02c20 Add a test hook for the PX4IO interface. Wire up some simple tests for the serial interface.
Signal quality looks good at 1.5Mbps. Transmit timing is ~450µs per packet, ~20µs packet-to-packet delay spinning in a loop transmitting.
2013-07-03 23:41:40 -07:00
px4dev 03a15bfdc5 Fix argument parsing in the rgbled command. 2013-07-03 22:23:01 -07:00
px4dev ea1f61e093 USB console isn't working. Go back to UART8 which is. 2013-07-03 22:22:10 -07:00
px4dev be6ad7af3b Rework the FMU<->IO connection to use a simple fixed-size DMA packet; this should let us reduce overall latency and bump the bitrate up.
Will still require some tuning.
2013-07-03 00:08:12 -07:00
px4dev d1562f926f More implementation for the serial side on IO; fix a couple of bugs on the FMU side.
Still needs serial init and some more testing/config on the FMU side, but closer to being ready to test.
2013-06-28 23:39:35 -07:00
px4dev 90c458cb61 Checkpoint: interface abstraction for px4io driver 2013-06-25 23:08:34 -07:00
px4dev 4302f76402 Hotfix: fix building firmware parallel 2013-06-06 22:49:49 -07:00
px4dev eab01a2efd Hotfix: Generate map files for modules as well for more in-depth memory-use debugging. 2013-05-26 20:51:20 +02:00
px4dev f30695e1df Hotfix: fix section attribute for the ROMFS, moving it back into .rodata where it belongs. 2013-05-23 23:58:59 +02:00
px4dev 318d2baba0 Reinstate mapfile generation. 2013-05-23 23:58:25 +02:00
px4dev dca844a808 Based on comments in:
http://answers.px4.ethz.ch/question/1337/px4io-receiver-connection-problem/?answer=1346#post-id-1346

increase the longest PPM pulse we recognize out to 550µs.
2013-05-23 09:27:57 +02:00
px4dev 2135628254 Hotfix: dependency scanning for modules was totally broken. Fix it so that changes to depended headers correctly cause modules to be rebuilt. 2013-05-23 00:08:35 +02:00
px4dev 308ec6001a Add serial read-length handling. 2013-05-22 22:09:00 +02:00
px4dev 437d9e4180 Merge branch 'fmuv2_bringup' into fmuv2_bringup_io2 2013-05-22 21:39:30 +02:00
px4dev 78d29045c4 Fix configuration selection for px4iov2; still doesn't build completely, but it's better. 2013-05-22 20:12:16 +02:00
px4dev 05fe7779a9 Fix .gitignore to avoid ignoring prebuilt libraries.
Also, generally clean-up the .gitignores and farm off separate versions for the NuttX/Apps directories to keep things tidy.
2013-05-20 20:33:18 +02:00
px4dev 5576e321fa Use the new prebuilt-library support to wrap the ARM CMSIS DSP library, and update to the version shipped with CMSIS 3.0 r3p2 2013-05-20 00:30:43 +02:00
px4dev 3a1c9f14f6 Teach the PX4 build system how to handle pre-built libraries. 2013-05-20 00:26:41 +02:00
px4dev b7d430e3c0 Merge branch 'master' of https://github.com/PX4/Firmware into fmuv2_bringup
Fix px4iov2 build issue by selecting the correct NuttX config.
2013-05-19 21:51:35 +02:00
px4dev 504b6d1256 Hotfix: install the firmware .bin files as well as the .px4 bundles until we have a chance to fix the px4io uploader. 2013-05-17 01:55:02 -07:00
px4dev 0c43315c1e Hotfix: better error messages for missing modules 2013-05-13 22:20:08 -07:00
px4dev edb0e01dfd HOTFIX: simplify symbol names going into the ROMFS object, hopefully this avoids inconsistent symbol naming on Windows. 2013-05-12 14:04:57 -07:00
px4dev 0ee738e9c9 Fix ROMFS dependency scan, add a warning if ROMFS_ROOT appears to be empty. 2013-05-12 10:51:25 -07:00
px4dev 555d42e0cd Oops, left in some test code. 2013-05-11 16:46:52 -07:00
px4dev 196ee8b16f Change the way modules are built so that object paths are relative and use vpath for locating sources (so source paths are also shorter).
Add some basic documentation for the build system files while we're at it.
2013-05-11 11:32:05 -07:00
px4dev d6cb588c3c fix capitalisation of include file name
Marko Pagott <p0rc0.jet@gmail.com>
2013-05-09 10:02:56 -07:00
px4dev 1caffca358 whitespace 2013-05-08 22:50:18 -07:00
px4dev 3b65281f00 Remove EXTRAFLAGS compatibility hack. 2013-05-05 17:19:23 -07:00
px4dev 1ca535b941 Fix whitespace damage, update help text to indicate the -m option is for debug use only. 2013-05-05 16:52:26 -07:00
px4dev 3bf26ac51f Obsolete bogus EXTRAFLAGS, add language-specific flags overrides. 2013-05-05 16:48:05 -07:00
px4dev e67022f874 Serial interface for IOv2 2013-04-28 18:14:46 -07:00
px4dev 8f7200e011 Frame up the configuration for the serial interface on IOv2 2013-04-28 13:51:33 -07:00
px4dev 2423c54e0e Build the right config for IOv2 2013-04-28 13:45:21 -07:00
px4dev 301b600b0a Fix board name defines in v2 config. 2013-04-28 13:22:36 -07:00
px4dev c6b7eb1224 Remove obsoleted file. 2013-04-28 13:00:49 -07:00
px4dev 8d3a738b70 Remove some trash files. 2013-04-28 13:00:32 -07:00
px4dev ada85fccf3 Merge branch 'fmuv2_bringup' into fmuv2_bringup_io2 2013-04-28 12:50:43 -07:00
px4dev 03eb16f874 Remove some naked command invocations. 2013-04-28 12:49:08 -07:00
px4dev edf96fc808 Remove some naked command invocations. 2013-04-28 12:47:34 -07:00
px4dev 00daa29b1f Kill old iov2 board support code 2013-04-28 12:37:33 -07:00
px4dev 9d4d1ace43 Pick up the MAVlink headers from the right place 2013-04-26 23:09:38 -07:00
px4dev 686139c7d8 HACK: don't call the card-changed callback with interrupts disabled, as it means that timeouts don't work. 2013-04-26 23:09:11 -07:00
px4dev 1c78e365ce Merge branch 'export-build' of https://github.com/PX4/Firmware into fmuv2_bringup 2013-04-26 20:43:07 -07:00
px4dev 4748bba35a Move the 'tests' app to the new world. 2013-04-26 20:02:12 -07:00
px4dev a7fc1b74bf Merge branch 'export-build' of https://github.com/PX4/Firmware into fmuv2_bringup 2013-04-26 19:25:31 -07:00
px4dev 53f6bac327 Merge branch 'master' into export-build
Clean up some script trash and update scripts.
2013-04-26 19:16:55 -07:00
px4dev 01e427b17c Merge working changes into export-build branch. 2013-04-26 16:14:32 -07:00
px4dev 4fe9e1c447 Avoid spurious += in INCLUDE_DIRS 2013-04-26 15:05:12 -07:00
px4dev 68c8de4cf1 Document INCLUDE_DIRS 2013-04-26 15:04:04 -07:00
px4dev a39d5230be Cull .context files. 2013-04-26 15:03:46 -07:00
px4dev ce0e4a3afd Merge branch 'master' into export-build 2013-04-26 13:03:05 -07:00
px4dev 46085b43d1 Use the I2C bus number from the board config, not a hardcoded value. 2013-04-26 13:00:48 -07:00
px4dev 264cf65d0f Fix an error in a #error 2013-04-26 13:00:27 -07:00
px4dev 74c62a131e Fix the way that we idle the tone_alarm pin so that the board defines what is the 'safe' state. 2013-04-26 13:00:12 -07:00
px4dev de412b6467 Pass -g to the link phase for PX4IO the same way we do for FMU 2013-04-26 12:59:35 -07:00
px4dev ff15efb9c9 Build utility apps -Os to save ROM space. 2013-04-26 12:59:12 -07:00
px4dev 187f7603b9 Merge branch 'export-build' into fmuv2_bringup
Sync with master via export-build.
2013-04-26 12:35:45 -07:00
px4dev 3acdc9d4ce Merge branch 'master' into export-build 2013-04-26 11:27:26 -07:00
px4dev 98a2445065 Include the correct Make.defs file 2013-04-24 17:45:08 -07:00
px4dev 8fcbb4f669 Merge SDIO changes and hack config to make it work.
We need to resolve the DMA-safe memory allocation story, but until then let's disable the CCM. We still have as much RAM as the v1.x boards in this mode.
2013-04-22 22:56:18 -07:00
px4dev f45e15615a Merge commit 'b149b834c835190fbb3f7e1914346d5e0620036d' into fmuv2_bringup 2013-04-20 15:20:33 -07:00
px4dev 7e0f8b3eda Formatting changes to make the Python style checker happy (copied from the bootloader project).
Increase the erase timeout to avoid issues with large/slow flash.
2013-04-20 15:18:10 -07:00
px4dev 5f14815d51 Merge branch 'fmuv2_bringup' of https://github.com/cvg/Firmware_Private into fmuv2_bringup 2013-04-20 15:05:20 -07:00
px4dev a7cf9e2a36 Make 'make upload' work 2013-04-20 14:57:15 -07:00
px4dev 754a11f4fc Use a .elf suffix for the ELF object file (seems more sensible that way)
Detect the case where PX4_BASE contains spaces and stop before we cause any more damage.

Call sub-makes with -r to improve startup time.
2013-04-20 12:51:07 -07:00
px4dev 7e8d8f9e72 Call sub-makes with -r to make them start faster (mostly on Windows, where this inhibits an enormous amount of silly scanning for things).
Force non-parallel builds for the NuttX archives.
2013-04-20 12:49:56 -07:00
px4dev 5f26018365 Improve the implementation of CONFIG_FILE handling in firmware.mk 2013-04-17 22:25:50 -07:00
px4dev 212712d740 Merge branch 'fmuv2_bringup' of https://github.com/cvg/Firmware_Private into fmuv2_bringup 2013-04-17 11:55:54 -07:00
px4dev 31c6440b64 Un-ignore the *.d directories in the ROMFS directory to avoid ignoring the init.d directory and friends. This is rinky, but the alternatives are all a mess. 2013-04-17 11:54:24 -07:00
px4dev 4703a68979 Fix the default state of the peripheral power control. 2013-04-07 22:00:23 -07:00
px4dev 2557f0d2de Rename the 'device' directory back to 'drivers', it's less confusing that way.
Move the fmuv2 board driver out into the new world.
2013-04-06 23:04:32 -07:00
px4dev 8eeefcce05 Add GPIO driver access to the power supply control/monitoring GPIOs for FMUv2 2013-04-06 22:46:50 -07:00
px4dev c355275669 Make the 'fmu' command build for v2. Should be enough to get the FMU-side PWM outputs working, but untested. 2013-04-06 19:20:08 -07:00
px4dev 706dcb6a53 Move the FMU driver from the old universe to the new universe so that we can teach it about v2. 2013-04-06 18:38:32 -07:00
px4dev 29324cc97f Add the SoC chip and common directories to the NuttX-related include paths. 2013-04-06 18:33:32 -07:00
px4dev d1a2e9a9c1 Fix the v2 RGB LED ID 2013-04-06 18:18:49 -07:00