25 Commits

Author SHA1 Message Date
alexandre bustico 6cf27208f3 [chibios] Features/chibios 2026 resync (#3628)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
* chibios: update submodule to stable_21.11.x and sync HAL config

Switch the ChibiOS submodule to the upstream stable_21.11.x branch,
update the submodule URL, and adjust the Paparazzi ChibiOS config files
to match the newer HAL layout.

This commit is intentionally limited to the submodule/config update and is
known to leave Paparazzi in a non-building state until the follow-up RTOS
monitor compatibility fix lands.

* rtos_mon: fix ChibiOS 21.11 build break and sample CPU load by interval

Update the RTOS monitor to use the current ChibiOS kernel statistics API,
fix the thread bookkeeping regressions introduced by the submodule update,
and compute CPU/thread load from deltas between monitoring samples instead
of lifetime cumulative counters.

This restores compilation of rtos_mon_arch.c with the updated ChibiOS tree
and makes the reported CPU load reliable over the reporting window.

* chibios: enable BDMA for H7 ADC3

Configure ADC3 on STM32H7 to use the BDMA path expected by the
updated ChibiOS ADCv4 driver, and provide the companion DMA/BDMA
stream definitions used by the new configuration checks.

This fixes H7 builds that fail with STM32_ADC_ADC3_DMA_STREAM being
referenced while ADC3 is intended to run on BDMA.

* rtos_mon: use the ChibiOS 21.11 core memory API

Adjust rtos_mon_arch.c to the current chCoreGetStatusX() API, which now
returns the amount of free core memory directly instead of filling a
memory_area_t structure.

This fixes the remaining build break in the RTOS monitor with the updated
ChibiOS tree.

* tawaki: enable BDMA for H7 ADC3

Mirror the H7 ADC3 configuration fix in the Tawaki board mcuconf so the
updated ChibiOS ADCv4 driver takes the ADC3 BDMA path expected on STM32H7.

* shell: fix ChibiOS 21.11 core memory query API

* matek: enable BDMA for H7 ADC3

* chibios: include newlib syscall bindings

* can: use ChibiOS 21.11 FDCAN defaults and API

* chibios: restore submodule URL to paparazzi fork
2026-04-14 10:47:31 +02:00
Freek van Tienen ba71081d9e [chibios] Disable GDB symbols by default 2023-03-24 10:56:49 +01:00
Freek van Tienen 2a0dba4025 [chibios] Add STM32H7 (#2859)
* [chibios] Add STM32H7

* [chibios] Update to latest version

* [chibios] Cleanup board configuration

* [chibios] Cleanup peripheral drivers

* [chibios] Fix bootloader interrupt vector done inside ChibiOS

* [sdlogger] Enable RTC by default

* [chibios] Fix DMA buffers SPI/I2C

* [formatting] Fix formatting/styling of files

* [chibios] Change PWM configuration (small fixes i2c and makefile)

* [chibios] Generic board files

* [boards] Fix apogee board

* [conf] Cleanup airframes and remove Navstik board
2022-05-18 17:38:58 +02:00
alexandre bustico fdbd4679c7 Feature accurate cpu load (#2716)
* use more precise STATISTICS module instead of deprecated PROFILING one to get accurate cpu load informations
* enable sys_mon module in drop1 airframe
2021-05-07 17:46:44 +02:00
Gautier Hattenberger 42df9fc058 [rtos_mon] fix free stack function (#2681)
always fill threads for free stack profiling
2021-03-29 18:25:29 +02:00
Alexandre Bustico a1d306bb40 upgrade paparazzi board config for ChibiOS 2021-02-01 17:03:12 +01:00
Fabien-B 3c5d6f17ef [GDB] New gdb name for ARM. (#2586)
* [GDB] New gdb name for ARM.

* [GDB] Fix for bare-metal ARM.

* [GDB] Fix for arm-linux.
2020-09-21 17:40:22 +02:00
Ewoud Smeur e0a23a55c1 Compile EKF2 on chibiOS with cpp 11 (#2539) 2020-07-03 19:33:52 +02:00
Gautier Hattenberger 4503016a8e [chibios] add support for unaligned pprzlink data 2020-03-10 15:52:40 +01:00
Freek van Tienen 009b121cfd [ins] Add EKF2 from the PX4 ECL library (#2402)
* [abi] Add timestamp to AGL and BARO_ABS

* [make] Add support for c++0x for all architectures

* [math] Add air density calculation

* [gps] Add horizontal and vertical position accuracy

* [boards] PX4FMU change default baudrate and add SBUS

* [ins] Add EKF2

* [tests] Add Bebop2 with EKF2

* [nps] Fix jsbsim simulator initialisation and GPS accuracy
2019-04-12 23:12:31 +02:00
Michal Podhradsky c072a5405c Corroded Paparazzi (#2355)
* Update AggieAir config

* Show total heap free space

* Conf fixes

* Initial commit of corroded paparazzi

* Added RNG support for ChibiOS

* Better build process for RUST modules

* Better description

* Fix typo

* Compile demo module for both NPS and AP targets, some rust magic had to happen

* Note in makefile

* Cleaner building of Rust modules

* Remove excess aiframes

* Prep work for enabling RNG on ChibiOS + STM32F4. Need to write a driver for ChibiOS-Contrib, so I am leaving that part for later

* RNG driver will eventually be a part of ChibiOS proper, hence simplify  the ifdef guards

* Clean up modules

* Changes in the rust builds

* Remove unsupported RNG for ChibiOS

* Better separate compatibility packages

* Minor fixes

* Fix halconf.h
2018-12-13 14:19:08 +01:00
Gautier Hattenberger 1ddf343009 [build] allow compilation of C++ on stm32 (libopencm3 and chibios) 2018-09-05 15:31:03 +02:00
Piotr Esden-Tempski d683d4b52a OpenOCD moved the location of scripts. This patch fixes the defaults. (#2059)
needs openocd 0.6 or higher, which should be the case on all our supported ubuntu versions
2017-05-13 21:19:54 +02:00
Michal Podhradsky 6d1aa6b662 [chibios] Fix PX4 upload 2017-02-23 14:45:42 -08:00
Gautier Hattenberger 4e5d863291 [board] support of the Chimera autopilot based on STM32F7 (#2018)
* [board] support of the Chimera autopilot based on STM32F7

- based on ChibiOS only (updated to master for proper support of F7)
- requires some specific ram for DMA operations
- SBUS driver updated and support of internal inverted logic option of F7

* [chibios] fix some compilation errors

* [chibios] fix some a few PR comments

- test less MCU types
- support F1 for uart driver
- more autodetect for VTOR_INIT

* use correct path

* choose a working version of chibios

* [chibios] fix some comments from PR review

- add some doc
- protect LED
- update TRUE/FALSE for lowercase
- pick a slightly older version of chibios (wrong path in makefile not
  fixed yet)
2017-02-23 10:31:50 -08:00
Michal Podhradsky 72f0a5cc28 Print ChibiOS Debug mode message only if the debug mode is ON 2017-02-16 10:58:08 -08:00
Michal Podhradsky 1af7460619 [chibios] Lia bootloader now works with Chibios (a custom linker script was needed) 2017-02-11 11:18:19 -08:00
Michal Podhradsky 35c38041f6 [chibios] Lia works without bootloader (only LED flash tested), ChibiOS is having issues with a bootlodaer (probably something with the linker script) 2017-02-11 10:43:42 -08:00
Michal Podhradsky 38caab953e [chibios] Pass luftboot vector table shift to Assembler flags 2017-02-11 10:09:06 -08:00
Michal Podhradsky 316c45b501 Remove debugging console output from the makefile 2017-02-10 17:33:19 -08:00
Gautier Hattenberger ca801af1c7 [chibios] rename some variables in makefile 2017-02-07 12:48:03 +01:00
Michal Podhradsky dcae49bed3 Cleaned up ChibiOS makefile script (now depends on linker scripts in chibios directory)
Added first part of lia_1.1_chibios makefile
Tested on Lisa MX
2017-02-06 18:38:46 -08:00
podhrmic 0f6125f7e5 [chibios] Indentantion fix 2016-08-11 10:21:45 -07:00
Gautier Hattenberger 8e1c5191d1 [chibios] add syscalls to avoid link errors with some libc functions 2016-06-22 21:51:30 +02:00
Gautier Hattenberger 73e93b0956 [chibios] Add support for a full ChibiOS arch (#1699)
[chibios] Add support for a full ChibiOS arch

This is replacing the previous mix chibios/libopencm3:
- all drivers are ported to the new arch
- it was hard to go forward and take advantages of the RTOS, now it is much easier
- switch to v3 of ChibiOS
- for now, it is functionaly the same than before
- the previous variable length array mechanism used internaly by the
  sdlog is replaced by a more efficient library called TLSF (allow
  constant time malloc/free)
2016-06-07 09:44:38 +02:00