Commit Graph
3744 Commits
Author SHA1 Message Date
Peter Barker 518c04e27e hwdef: add support for NucleoH753ZI 2025-11-04 09:47:58 +11:00
Peter Barker a510631a15 AP_HAL_ChibiOS: add STM32H753xx.py 2025-11-04 09:47:58 +11:00
Peter Barker 6581d3d0a8 hwdef: remove non-required RAM_RESERVE_START 256
this is the default, created by an explicit commit to remove boilerplate from hwdefs....
2025-11-02 20:05:47 -06:00
Iampete1 39f76af1d9 ChibiOS: Util: remove Crash Dump incomplete, dumping what we got! mesage 2025-11-01 18:26:05 +11:00
Peter Barker f365bc9887 AP_HAL_ChibiOS: remove HAL_CHIBIOS_ARCH_CUBE
replace sole use with a generic define which non-Cube boards can set if they so desire
2025-10-29 18:35:24 +11:00
Andy Piper 13cb7a9265 AP_HAL_ChibiOS: add UARTDriver::is_owned_by_current_thread() 2025-10-29 18:34:57 +11:00
Peter Barker dcc7c12fff AP_HAL_ChibiOS: fix instances of flake8 B006 error
e.g.:

./Tools/autotest/vehicle_test_suite.py:8607:89: B006 Do not use mutable data structures for argument defaults.  They are created during function definition time. All calls to the function reuse this one instance of that data structure, persisting changes between them.
2025-10-28 20:19:01 -05:00
Peter Barker 4b744803be AP_HAL_ChibiOS: remove HAL_BOARD_SUBTYPE_CHIBIOS_FMUV{3,5}
no longer required
2025-10-29 11:54:23 +11:00
Peter Barker cf0c95e989 AP_HAL_ChibiOS: move LeakDetector pin type knowledge out into HAL 2025-10-29 11:54:23 +11:00
Bob Long cee739cd7a AP_HAL_ChibiOS: rename HAL_PROBE_EXTERNAL_I2C_COMPASSES to AP_COMPASS_PROBING_ENABLED
PR merge ordering caused these to get missed
2025-10-28 07:48:43 +00:00
Peter Barker fb8dc7eb2d AP_HAL_ChibiOS: rename HAL_PROBE_EXTERNAL_I2C_COMPASSES to AP_COMPASS_PROBING_ENABLED
... and force it to have a value, not just be defined
2025-10-27 18:24:18 -05:00
Maxim Buzdalov 5a93e3da65 hwdef: add annotated layout/wiring diagram for FlywooF745 v3, update README 2025-10-24 17:55:22 +01:00
jobs e56145bc11 AP_HAL_ChibiOS: add NarinFC-X3 flight controller 2025-10-22 21:49:21 +11:00
Tom Pittenger ce3751a736 hwdef: new board: FlysparkF4 2025-10-22 18:34:32 +11:00
shen 252eb7f68b hwdef: Add AEROFOX-H7 default params 2025-10-21 11:44:20 +11:00
Thomas Watson 3cf2888747 AP_HAL_ChibiOS: keep better track of processed_defaults.parm
Don't get its path unless we are about to generate it to avoid an
inaccurate list of generated files. Do this by keeping track of the path
in a variable instead of checking for the result on the filesystem.

This is somewhat strange and mixed in with the romfs file and
AP_Param.cpp, to disentangle later...
2025-10-20 22:31:44 +11:00
Thomas Watson 973cc7eb6e AP_HAL_ChibiOS: keep track of hwdef.py generated files
This will allow waf to avoid cleaning them and avoid unnecessary
regenerations.

Some slight changes to centralize the use of the output directory are
also performed.
2025-10-20 22:31:44 +11:00
Peter Barker 2110d5324f hwdef: add hwdef-bl.dat for TBS_LUCID_H7_WING_AIO 2025-10-20 07:48:46 +01:00
Serhii Marchuk 91f09c2cc5 hwdef: StellarH7V2: update battery monitoring parameters and clarify voltage/current sensor definitions 2025-10-20 08:46:01 +11:00
Serhii Marchuk af32ce8431 hwdef: StellarH7V2: update BATT2_CURRENT_SENS pin to ADC2 and clarify CAM switch GPIO 2025-10-20 08:46:01 +11:00
Andy Piper 6e86351aeb AP_HAL_ChibiOS: add support for idle-hook based true CPU load
allow idle stats to be turned off
2025-10-16 06:20:54 +11:00
Peter Barker 2a9318fe58 hwdef: CubeNode-ETH: add support for CAN-over-MAVLink 2025-10-15 18:26:06 +11:00
Thomas Watson 90a96c0dc3 AP_HAL_ChibiOS: fix bouncebuffer read cache logic
The read buffer must be invalidated after a DMA read operation as
nothing guarantees an invalidation before the operation finishes
persists until after it's complete.

Quoth the ARM ARMv7M ARM (Architecture Reference Manual): "Entries for
addresses with a Normal Cacheable attribute can be allocated to an
enabled cache at any time, and so the cache invalidate operation cannot
ensure that the address is not present in an enabled cache."

Due to considerations surrounding how the buffer is actually used, we
end up needing an invalidate before and flush after the read op.

Not handling this correctly manifested as rampant dataflash corruption
using LittleFS on KakuteH7Mini (commit 33631df2) due to the driver not
seeing "busy" responses when polling the dataflash chip and having
written data be ignored. This scenario was, however, very fragile, and
everything worked correctly for some alignments of MCU code flash,
presumably creating different timing or cache influences.

It's not clear where else this could have caused an issue, the LittleFS
poll loop is perhaps unique in writing one byte then reading one byte.
Nevertheless, careful investigation with a debugger and logic analyzer,
along with understanding of the manuals, justify this as a proper fix
(and of course the corruption no longer manifests).
2025-10-14 10:27:47 +11:00
Andy Piper a326227151 AP_HAL_ChibiOS: TBS Lucid H7 Wing AIO 2025-10-10 10:07:45 +01:00
Andy Piper 9bc425eb13 AP_HAL_ChibiOS: enabled missing i2c bus on TBS L431 Airspeed
Allow externally connected compass and GPS
2025-10-09 12:44:47 +11:00
Thomas Watson 0536ac7acc AP_HAL_ChibiOS: AEDROXH7: disable block logging
Exclusive with LittleFS.
2025-10-07 11:28:22 -05:00
Thomas Watson 1afac9fe01 AP_HAL_ChibiOS: correctly order SPI DMA TX and RX channels
Fix to match line 570 of
`libraries/AP_HAL_ChibiOS/hwdef/scripts/dma_resolver.py` which puts TX
first.

This swap has no consequence as `Shared_DMA` does not care about the
order of its arguments, but it's good to fix as it's incorrect and
confusing during debugging.

This is a no compiler-output change.
2025-10-07 11:16:57 +11:00
Thomas Watson d04903ad18 AP_HAL_ChibiOS: don't generate no-longer-used env.py 2025-10-06 08:02:36 +11:00
Thomas Watson f47c443c06 AP_HAL_ChibiOS: fix hwdef processor default parameter path source
Read from the passed in variable instead of the global args object. By
default the variable is set to the args object's contents so there is no
change in behavior.

Note that much of this logic is fishy and/or wrong; that is preserved
and left to be fixed another day.
2025-10-06 08:02:36 +11:00
Henry Wurzburg a3fb531ef4 hwdef: rename BATT_CURR_SCALE to BATT_AMP_PERVLT in board READMEs 2025-10-05 10:51:14 +11:00
Andy Piper eb588ba278 AP_HAL_ChibiOS: BlitzF745 gets littlefs
Correct some flash and IMU SPI speeds for F7
2025-10-04 13:40:12 -05:00
Peter Barker c5245f55b0 AP_HAL_ChibiOS: remove definition of HAL_NO_TIMER_THREAD from -bl files
this is enforce for bootloaders by chibios_hwdef.py
2025-10-02 09:25:02 +10:00
Peter Barker c57d98ea6d AP_HAL_ChibiOS: add define so user can omit AP_Vehicle bindings 2025-10-01 18:05:38 +10:00
Peter Barker dcd98c642b hwdef: correct RAMTROM -> RAMTRON spelling 2025-09-30 21:38:31 -05:00
Daria Cacic 4d3dd588ff AP_HAL_ChibiOS: Orqa H7 QuadCore support added for v1.2.1, first official verison being sold 2025-09-29 21:22:43 +01:00
alexklimaj 46f6c80753 hwdef: arkv6x and ark fpv increase IMU SPI speed to 16MHz 2025-09-29 23:43:49 +10:00
alexklimaj acf74c7cdc hwdef: ARKV6X Extended Range 2025-09-29 23:43:49 +10:00
kozinalexey 0eed9612dc hwdef: Update hwdef.dat
Update hardware configuration
2025-09-29 16:08:49 +10:00
Andy Piper 1faa721558 AP_HAL_ChibiOS: enable analog VTX on Spedix H743 2025-09-26 08:31:10 +10:00
命运的玩笑 5d04b7c6fe hwdef: RadiolinkF405 2025-09-25 20:01:51 +01:00
Jacob Dahl 2fb713ad60 hwdef:ARK_PI6X board support 2025-09-25 08:36:23 +10:00
Michael Cerasulo 490878720f hwdef: AeroCogito-H7Digital 2025-09-24 14:55:39 +01:00
Andy Piper f660d70bc5 AP_HAL_ChibiOS: avoid race in virtual timer for serial input
ensure that serial input timeouts reset the bit state
ensure that serial input timeouts trigger after byte time on BlueJay
2025-09-24 17:44:53 +10:00
Andy Piper 4f4ba47033 AP_HAL_ChibiOS: noop dma_cancel() if no dma stream allocated 2025-09-24 17:44:53 +10:00
Andy Piper 95c7c90046 AP_HAL_ChibiOS: BrahmaF4 updates 2025-09-23 07:55:44 +01:00
Alexey Kozin 1e8180d2d2 hwdef: Added support for F4BY_H743 flight controller 2025-09-23 07:54:15 +10:00
Peter Barker f622ede250 AP_HAL_ChibiOS: remove bad defines of DISABLE_SERIAL_ESC_COMM 2025-09-21 22:35:32 -05:00
Peter Barker 38461a2988 hwdef: remove define of HAL_USE_RTC to its default value 2025-09-21 22:35:32 -05:00
Peter Barker 700ca1607d AP_HAL_ChibiOS: remove unused define HAL_NO_GPIO_IRQ
... and make sure it does't come back.

I can't find where we ever actually used this, it's not been used for many years
2025-09-21 22:35:32 -05:00
Peter Barker 042700491f AP_HAL_ChibiOS: remove use of HAL_DISABLE_LOOP_DELAY 2025-09-21 22:35:32 -05:00