Commit Graph

339 Commits

Author SHA1 Message Date
David Sidrane d9575964a4 Changes to px4fmu-v2 for upstream Nuttx and hardfault logging 2016-12-21 08:34:21 +01:00
David Sidrane 82cb9353d1 Changes to px4fmu-v1 for upstream Nuttx 2016-12-21 08:34:21 +01:00
David Sidrane 64c00e6c95 Changes to crazyflie for upstream Nuttx and hardfault logging 2016-12-21 08:34:21 +01:00
David Sidrane 3ddeb07b25 Changes to auav-x21 for upstream Nuttx and hardfault logging 2016-12-21 08:34:21 +01:00
David Sidrane a2adf94d13 Changes to aerofc-v1 for upstream Nuttx and hardfault logging 2016-12-21 08:34:21 +01:00
David Sidrane 2e235b9013 Changes to aerocore for upstream Nuttx 2016-12-21 08:34:21 +01:00
David Sidrane 1b17bc74b2 Adding zubaxgnss-v1 bootloader 2016-12-21 08:34:21 +01:00
David Sidrane 276bf47865 Adding s2740vc-v1 board and bootloader 2016-12-21 08:34:21 +01:00
David Sidrane 6ce7ade2c6 Adding px4nucleoF767ZI-v1 2016-12-21 08:34:21 +01:00
David Sidrane bca8767981 Adding px4fmu-v5 2016-12-21 08:34:21 +01:00
David Sidrane 925102464b Adding px4fmu-v4pro 2016-12-21 08:34:21 +01:00
David Sidrane f14a0ba107 Adding px4flow-v2 bootloader 2016-12-21 08:34:21 +01:00
David Sidrane 24e8c213ee Adding px4esc-v1 board and bootloader 2016-12-21 08:34:21 +01:00
David Sidrane bba8371b0f Adding px4cannode-v1 board and bootloader 2016-12-21 08:34:21 +01:00
David Sidrane cd8b759fed Adding esc35-v1 board and bootloader 2016-12-21 08:34:21 +01:00
David Sidrane d6098c8226 Adding Nuttx Build infrastructure 2016-12-21 08:34:20 +01:00
Lucas De Marchi 03be988ebe aerofc: fix defining PX4FMU_V4 macro
We were defining both macros. Fix it by using changing to AEROFC_V1.
Also remove a leftover from board rename.
2016-12-20 08:51:14 +01:00
Lucas De Marchi eaa2cf7d99 aerofc: fix LED names
There are no blue/red LEDs and these names just causes confusion with
the "always-on LEDs".
2016-12-20 08:51:14 +01:00
José Roberto de Souza 8fb15f1de8 aerofc: Enable I2C1 for external compass
For now it is only checking if there is a external HMC5883, if
necessary more compass should be added and probe.
2016-11-28 09:21:12 +01:00
Lucas De Marchi 6af31a109f aerofc: start mavlink on ttyS4 2016-11-28 09:21:12 +01:00
Lucas De Marchi 3b3d4f385c aerofc: fix UART port assignments 2016-11-28 09:21:12 +01:00
José Roberto de Souza effdb37a2b aerofc: Fix UARTs configuration
Correct set pin mux and removed unused interfaces.
2016-11-28 09:21:12 +01:00
José Roberto de Souza ef7c3b2174 aerofc: Fix SPI configuration
SPI bus 1 is the bus connected to MPU6500, so remove SPI bus 3 and 4.
Also remove everything else related to SPI that this board doesn't have.
2016-11-28 09:21:12 +01:00
Lucas De Marchi cf07fa3a1c aerofc: streamline nuttx configuration
Remove what's not used like SPI and UART ports, ADC, etc. Add UART5 and
I2C1 that are going to be used.

This also received contribution from
José Roberto de Souza <jose.souza@intel.com>.
2016-11-28 09:21:12 +01:00
Lucas De Marchi 0cd7984b7f Rename asc board to aerofc 2016-11-28 09:21:12 +01:00
David Sidrane fb3e2665f3 Inital Commit AUAV X2.1 2016-11-28 09:18:45 +01:00
Julian Oes 25d1daa7a5 px4fmu-v1: Raise INTERRUPTSTACK again
This fixes #5855.
2016-11-15 08:10:40 +01:00
Julian Oes 53c23e7bff Revert "Revert "FMUv1: Save resources in config""
This reverts commit 0ca397ab20.
2016-11-15 08:10:40 +01:00
Lorenz Meier 0ca397ab20 Revert "FMUv1: Save resources in config"
This reverts commit c24046ca5b.
2016-11-14 22:37:01 +01:00
Mark Whitehorn 40f2c4a8e4 add new board config for fmu-v3 2016-11-11 09:50:42 +01:00
David Sidrane c4d91ef644 Removed CONFIG_STM32_I2CTIMEOTICKS defined in the PX4 I2C driver
CONFIG_STM32_I2CTIMEOTICKS is hard defined on PX4 master
 and defconfig defined on upstream Nuttx (nuttx_v3) it will be fixed
 there.
2016-11-05 11:06:43 +01:00
David Sidrane fd797ae3b4 Using build system warnings.
Aligned Make.Defs to use the build system's defined warnigns.
2016-11-05 11:06:43 +01:00
Henry Zhang d6ed416d29 MindPX: Update spi bus and sensors io config. 2016-10-29 10:56:32 +02:00
Henry Zhang d8ac044414 MindPX: Support serial RC input. 2016-10-29 10:56:32 +02:00
Henry Zhang 5076ba0049 MindPX: Disable second CAN bus. 2016-10-29 10:56:32 +02:00
Henry Zhang 93343487e7 MindPX: Harmonize with FMUv4. 2016-10-29 10:56:32 +02:00
David Sidrane 1c766aef12 Removed comments to allow appconfigs to bring in can
Removed the commented body of the 'if CONFIG_CAN' in the appconfigs
2016-10-06 19:02:51 +02:00
Lorenz Meier c24046ca5b FMUv1: Save resources in config 2016-10-02 11:50:34 +02:00
Dennis Shtatnov eafc0dad4a CF2: Disable UART console to free up expansion pins
nshterm should still work. Using low console instead which should just discard all characters for the plain system console
2016-09-19 11:54:53 +02:00
Dennis Shtatnov c842b0457f Syslink for battery, RSSI, and initial radio control 2016-09-04 19:12:08 +02:00
Dennis Shtatnov e91821d2a2 Merge Crazyflie motor driver with FMU
Comment corrections
2016-09-04 19:12:08 +02:00
Dennis Shtatnov 9c8e56401b Working motors and mtd for CF2 2016-09-04 19:12:08 +02:00
Tim Dyer b65ff53b00 Initial build for Crazyflie 2.0
Working crazyflie firmware build

* Console on USART3
* Could not disable building PX4IO firmware, currently commented out

Don't build PX4IO firmware if the board doesn't ask for it

Added crazyflie motor driver

Fixed wrong register

CLK_SEL is in PWR_MGMT_1

Initial I2C/SPI MPU9250 device

* Tested with I2C
* Need to add error checking
* Intermittent crash on stop call

Working ak8963 mag driver

Functional lps25h driver. Work in progress.

Works well enough to probe and allow sensors task to start.

Added serial port test module

HACK! Get sensors module working

Set crazyflie PWM range

Extend baudrate for Crazyflie's NRF radio

Added dummy tone alarm to allow for init

Added autostart script for Crazyflie
2016-09-04 19:12:08 +02:00
Lorenz Meier e6dcc0a2ed Complete ASC config 2016-08-15 10:49:43 +02:00
Lorenz Meier ed6c63e48f TAPv1: Harmonize with FMUv1 (since they are pretty much the same) 2016-08-12 13:55:16 +02:00
Lorenz Meier f231feb0f6 FMUv1: Harmonize with FMUv2 2016-08-12 13:55:16 +02:00
David Sidrane 6173649c43 Minor corrections 2016-08-12 13:55:16 +02:00
Lorenz Meier 3fff9e5826 Harmonize TAP config with FMUv4 config 2016-08-12 13:55:16 +02:00
Lorenz Meier 3203d3f770 More USB buffer 2016-08-12 13:55:16 +02:00
Lorenz Meier 40ba3f5131 Initial config for ASC module 2016-08-06 20:45:11 +02:00
Beat Küng 302719527a nuttx defconfig: increase nr of file descriptors, due to mavlink shell 2016-07-29 13:07:17 +02:00
Henry Zhang 0730e681bc Nuttx config: MAVLink app needs more FDs. 2016-07-22 11:16:18 +02:00
David Sidrane 0576031a81 TAP PID (#5036) 2016-07-12 05:07:03 -10:00
David Sidrane 5cc58fa067 Reserving 32Kib of FLASH for parameters (#5035) 2016-07-12 03:57:31 -10:00
David Sidrane da96144e80 Added Power button and cleanup sdio 2016-07-10 11:46:47 +02:00
David Sidrane 5de19500c2 TAP-v1 set Console Baud Rate to 57600 2016-07-10 11:46:47 +02:00
Lorenz Meier 332f669d9b Add tap-v1 config 2016-07-06 13:34:35 +02:00
Daniel Agar e2801d35e4 fix comment spelling 2016-06-15 20:35:16 +02:00
Lorenz Meier fb1fd205bd MAVLink app needs more FDs 2016-06-02 09:27:26 +02:00
Lorenz Meier f07a4f2f93 MAVLink app needs more FDs 2016-06-02 09:27:15 +02:00
Beat Küng d35814ed99 nuttx px4fmu-v4 config: increase CONFIG_NFILE_DESCRIPTORS to 52
necessary for mavlink receiver. It had the following output:
 mavlink_rcv_if0: node_open as advertiser failed.
2016-06-02 09:26:03 +02:00
Henry Zhang 9570d66d9d MindPXFMUv2 uses STM32F427 v3, enable 2M flash. 2016-05-21 11:00:21 +02:00
David Sidrane 3829871612 Removed unused NXFFS buys back 5792 bytes of FLASH 2016-05-14 11:22:52 +02:00
Felix Hu 18176ea73d change productstr 2016-05-04 23:33:48 +02:00
Felix Hu 9dd42e45d5 mod mindpx v2 prototype and defconfig 2016-05-04 23:33:48 +02:00
Daniel Agar 8569c3e25d PX4 NuttX enable -Werror 2016-04-17 16:02:28 -04:00
Daniel Agar 0b54bb99f9 NuttX quiet build
cmake combine NuttX copy and export

-NuttX wasn't recopying if it fails to compile
2016-04-17 16:02:28 -04:00
Felix Hu bd580e09bf supports MindPXv2 borad which is a product from AirMind. 2016-03-30 19:45:39 +02:00
Lorenz Meier ec930d2372 Increase stack size by 100 bytes. From @tridge 2016-03-24 10:40:46 +01:00
Lorenz Meier 9d35b05889 FMUv4: Safe RAM 2016-02-29 14:06:48 +01:00
Mark Whitehorn 5a7d31f7a9 fix typo in comment 2016-02-27 11:25:56 +01:00
Lorenz Meier 45ea58d451 FMUv4: Increase USB and UART buffers to speed up log transfers 2016-02-06 12:23:04 +01:00
Lorenz Meier 65081ca681 FMUv2: Increase USB buffer to speed up log transfers 2016-02-06 12:22:40 +01:00
Lorenz Meier b54a0308a7 IO: Do not allocate excessive UART buffers 2016-01-27 09:56:20 +01:00
Mark Whitehorn 4952d05652 debugging ms5611 on spi2 2016-01-14 17:55:54 +01:00
Mark Whitehorn 5cf78cd450 configure usart6 TX for RC out
add RC_OUT pin to FMUv4 config
2016-01-14 17:55:54 +01:00
Lorenz Meier b2aa25448b Pixracer: Boost buffer and FTP transfer capability 2016-01-07 00:26:22 +01:00
Lorenz Meier bbe69fbe45 Fix FMUv4 USB PID 2016-01-02 01:06:46 +01:00
Lorenz Meier 699c5f2f6d Enable 2M flash in Pixracer 2015-12-18 10:29:26 +00:00
Lorenz Meier c1b6fcbb77 IO config: Revert stack management changes as we saw stack smashing 2015-12-14 16:36:42 +00:00
David Sidrane 0e48b58d7d Support Mavlink on USART2 (ESP8266)
Needed bigger buffers
2015-12-11 06:33:23 -10:00
Lorenz Meier 35d387792c Fix product string for FMUv4 2015-12-03 16:12:33 +01:00
Lorenz Meier 6cc1bb7ec8 Enable RX DMA for UART6 2015-11-28 11:39:56 +01:00
Lorenz Meier a3eeafebeb Enable UART6 and enable S.BUS. Tested to work. 2015-11-28 09:13:15 +01:00
Lorenz Meier b137a24f30 Free timer 3 2015-11-28 09:13:15 +01:00
David Sidrane a67097731a Renamed pax4fmu-v3 to pax4fmu-v4 2015-11-28 09:13:15 +01:00
David Sidrane f3b7585a89 Wip FMUV3 2015-11-28 09:13:15 +01:00
Lorenz Meier c326189ce8 NuttX build flags: Remove trivial warnings 2015-10-19 13:05:27 +02:00
Lorenz Meier cde947a1d8 FMUv2: Reduce excessive work task stack sizes 2015-10-14 14:44:37 +02:00
Daniel Agar 5865dc6434 cmake add libuavcan as subdirectory
-move uavcan submodule to src/modules/uavcan/libuavcan
-adding libuavcan as a subdirectory simplifies inheriting all compile
flags and include paths
2015-10-14 02:37:00 -04:00
Lorenz Meier ef8ef0fb23 FMUv1: Safe some RAM on buffers 2015-10-11 16:34:58 +02:00
Lorenz Meier 15e17f4a58 IOv1: Ensure image is aligned. 2015-10-11 13:13:15 +02:00
Lorenz Meier 1ab23739ad IOv1: Error handling pointer hackery 2015-10-03 17:26:04 +02:00
Lorenz Meier 73e83a503c NuttX configs: Reduce buffer sizes where reasonable 2015-10-03 13:00:37 +02:00
James Goppert 36ae7c129d Fixed alignment issue. 2015-09-20 10:29:22 +02:00
James Goppert 567431602a Adds alias __errno to linker file fixed link, need to understand why. 2015-09-14 19:55:53 -04:00
James Goppert 181d8db128 Merge branch 'master' into cmake-2 2015-09-10 14:03:48 -04:00
James Goppert bf18c84652 Cleanup of module building. 2015-09-09 23:00:58 -04:00
James Goppert b6b25f2ad1 Nuttx sim support. 2015-09-09 08:18:41 -04:00
Lorenz Meier b3b91921ec UART1 is only used for debug, save unnecessary RAM used in its buffering 2015-09-08 11:51:33 +02:00
Lorenz Meier fa26928e51 Save RAM on UART buffer size 2015-08-24 10:20:18 +02:00
David Sidrane abc74323ac Set margins
CONFIG_ARCH_INTERRUPTSTACK = 500 40 Bytes margin
CONFIG_IDLETHREAD_STACKSIZE= 290 - idel usage 0x20001F78 from 0x20002000 is 136 bytes Margin is 154
CONFIG_USERMAIN_STACKSIZE=800 268 bytes margin 0x200013c8
2015-08-19 11:42:56 +02:00
David Sidrane aaafbad9e7 Updated Config - Using Irq stack and reduces idel stack and user sizes 2015-08-19 11:42:55 +02:00
Lorenz Meier 138daf3b36 FMUv1: Use small buffer for RX DMA hotfix 2015-08-10 16:35:10 +02:00
Lorenz Meier ff360aa75a NuttX configs: Add hotfix for RX DMA buffer sizes 2015-08-10 16:34:47 +02:00
Lorenz Meier 959333d6cc Re-balance FMUv2 config in terms of buffer sizes to free some excessively used resources 2015-06-17 22:44:51 +02:00
Lorenz Meier bc75814d50 Increase buffer sizes on companion link 2015-05-20 21:02:28 +02:00
Lorenz Meier 5c53d38652 FMUv2 config: Increase USB TX buf size further to speed up MAVLink FTP transfers 2015-05-15 11:38:06 +02:00
Lorenz Meier 9bd2e376f6 NuttX for FMUv2: Larger USB buffer 2015-05-15 11:16:34 +02:00
Lorenz Meier f154f6e5e7 MAVLink transmission: Allow faster overall transmissions. 2015-05-15 11:16:11 +02:00
nopeppermint 169f112f0d change name in board.h 2015-05-13 22:59:30 +02:00
nopeppermint b0efb24468 add USART6 on PC6(TX) and PC7(RX) to discovery 2015-05-13 22:21:59 +02:00
Lorenz Meier ecbff2885c FMUv1 config: Recuperate unused interrupt stack space 2015-04-26 14:33:57 +02:00
Lorenz Meier 6d41b5d063 NuttX configs: Reduce excessive number of reserved FDs 2015-04-26 14:33:55 +02:00
Roman Bapst e097affd7a log multirotor attitude controller status 2015-04-18 11:26:19 +02:00
Lorenz Meier 3ee9b441c6 Add STM32F4 discovery config. 2015-04-16 22:51:08 +02:00
Daniel Agar c147424fe7 nuttx-configs fix code style 2015-03-19 23:49:36 +01:00
Andrew Tridgell 9efeb4cf0b FMUv2: added bootloader delay signature to text
this allows for a configurable bootloader delay
2015-03-14 21:12:19 +11:00
Lorenz Meier f7ef6e1950 Fix stack sizes based on observed usage. Frees some more RAM 2015-03-03 17:28:14 +01:00
David Sidrane 17615b22a4 Insure that CONFIG_ARCH_BOARD_xxx is defined and to be consistent with Nuttx build place them in defconfig files so that config.h will have ONFIG_ARCH_BOARD_xxx defined 2015-02-17 23:27:34 +01:00
David Sidrane 6606b56364 Updated NuttX submodule with memcpy fix, disabled run time stack checking and added modules back in 2015-01-29 04:49:39 -10:00
Thomas Gubler 27b2701340 temporarily re-enable stack checking, disable some modules to make firmware fit 2015-01-28 10:21:42 +01:00
Simon Wilks 5c776e2392 Revert "FMUv1: Disable stack checking"
This reverts commit e62c8d7367.
2015-01-25 22:31:11 +01:00
Lorenz Meier 4b27e4029d Disabled stack checking on aerocore 2015-01-21 15:32:38 +01:00
David Sidrane 517e1e8d48 Fixed permissions 2015-01-21 14:54:25 +01:00
Lorenz Meier e62c8d7367 FMUv1: Disable stack checking 2015-01-21 14:54:24 +01:00
David Sidrane 4b8feb03cf Match the OS build's CONFIG_ARMV7M_STACKCHECK setting by using actual setting in the exported nuttx config.h file to control each board build setting of ENABLE_STACK_CHECKS in toolchain_gnu-arm-eabi.mk 2015-01-21 14:54:24 +01:00
Pavel Kirienko f6786d0be9 Removing -ffixed-r10 when stack checks aren't enabled 2015-01-21 14:54:24 +01:00
Pavel Kirienko 2ebd7099de Globally configurable stack checks, R10 is always fixed 2015-01-21 14:54:24 +01:00
Lorenz Meier 5f77a57761 FMUv1 + FMUv2: Reduce excessively large OS stack sizes. Actual use was 800 bytes hpwork, 400 bytes lpwork, 1700 bytes in running system. This leaves 1K headroom per task 2015-01-21 09:22:03 +01:00
David Sidrane 7cb1d09278 Updated submodule and config for SDIO fix 2015-01-07 17:59:23 -10:00
Lorenz Meier 470d35aca1 Fix typo in RTC config 2015-01-03 19:19:02 +01:00
Lorenz Meier b37b181818 NuttX: Enable RTC, require NuttX version with RTC support 2015-01-03 17:58:17 +01:00
Randy Mackay 59e0b67c8e NuttxConfig: increase I2C timeout to 10ms 2014-12-30 13:43:06 +09:00
Lorenz Meier 1b5c3271cf Merge pull request #1529 from PX4/fdmax
FMUv1 / FMUv2: Up number of file descriptors slightly - no known issues,...
2014-12-28 23:46:39 +01:00
Lorenz Meier f1c5fcd8da NuttX configs / build options: Do not warn about sign compare, as there are a bunch of non-standard signedness assumptions 2014-12-26 17:38:11 +01:00
Lorenz Meier 1240912f1c FMUv1 / FMUv2: Up number of file descriptors slightly - no known issues, but some tasks are getting close. 2014-12-24 09:26:21 +01:00
Lorenz Meier 923346c8ed IOv2: Ignore float suffixes in NuttX 2014-12-21 12:10:51 +01:00
Lorenz Meier dc469cc51a IOv1: Ignore float suffixes in NuttX 2014-12-21 12:10:41 +01:00
Lorenz Meier 648e14b9c3 FMUv2: Ignore float suffixes in NuttX 2014-12-21 12:10:28 +01:00
Lorenz Meier 388350108a FMUv1: Ignore float suffixes in NuttX 2014-12-21 12:10:18 +01:00
Lorenz Meier 75bc8136b1 Build NuttX optimized for size 2014-11-15 13:50:56 +01:00
Lorenz Meier 676cb91a1d Hotfix for PX4IO comms: Raise timeout to 10 ms. 2014-10-09 10:55:48 +02:00
Lorenz Meier a54ef70a20 Decrease I2C timeout in config so it matches the previous 500 us timeout as close as possible. This is necessary after fixing the NuttX I2C timeout logic 2014-08-26 08:14:52 +02:00
Anton Babushkin 1525341cad Disable CONFIG_ARCH_IRQPRIO in all NuttX configs 2014-08-14 13:12:02 +02:00
Lorenz Meier fe5d35bc54 Reduce IO buf space reasonably 2014-07-12 22:04:04 +02:00
Lorenz Meier c474d2cbf1 FMUv2: Reduce excessive stack sizes 2014-07-11 21:04:34 +02:00
Lorenz Meier aa05582598 FMUv1: Reduce excessive stack sizes 2014-07-11 21:04:09 +02:00
Kynos fe28069eff Increase UART1 & UART5 RX&Tx buffer sizes
To fix MAVLink message garbling problems.
2014-05-28 17:26:41 +02:00
Lorenz Meier e1309f2391 Enable SPI4 for FMUv2 2014-05-28 10:49:12 +02:00