Repository navigation
Hakoniwa sensor device registers as a Devicetree model (Erbium), Hakoniwa link and in-process - #83
Merged
Merged
Conversation
…or-registers) Ported from the EXDEV glue, behaviour unchanged: latch at the sample's time, data-ready pulse, committed motor outputs to hil_actuator, test vehicle, trace format. The same plugin library (Hakoniwa link or in-process aircraft) registers it next to hakoniwa,sensor-device. boards/erbium/erbium-hakoniwa.dts places it at 0x20000000, PLIC 5. Test vehicle on PX4 aifoundry_erbium_hakoniwa, 3e9 clocks: the trace (3899 sensor/GPS/actuator lines, exact float bits) and the firmware console are identical to the C path with the EXDEV device. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes the Hakoniwa sensor device of the RISC-V Erbium board a Devicetree node instead of a memory.txt
DEV(EXDEV) device.What changed
hakoniwa,sensor-registers(board/common/src/hako_sensor_registers_model.c), ported from the EXDEV glue with its behaviour unchanged:hakoniwa,sensor-device. Both the Hakoniwa link build and the in-process aircraft build (HAKO_SENSOR_DEVICE_BUILD_INPROC) therefore carry it.boards/erbium/erbium-hakoniwa.dtsplaces the node at 0x20000000 with PLIC source 5.erbium.dtbis unchanged.hako-sensor-registers(test vehicle). A deliberately broken interrupt pulse makes it fail.Checks
Test vehicle on PX4
aifoundry_erbium_hakoniwa, 3e9 clocks, against the C path with the EXDEV device:Hakoniwa x500 take-off to 2.5 m, headless, 3 runs each:
All runs PASS, holding 2.48-2.51 m. With the viewer at real time, 3 runs of the Devicetree plugin also passed.
ctest passes on macOS and on Ubuntu 24.04 (566/566).
Found on the way (not changed here): the core's EXDEV loader keeps a pointer into the MPU region table, and the Devicetree models reallocate that table. A
DEVcombined with a Devicetree can therefore read freed memory. athrill-target-riscv now refuses that combination.🤖 Generated with Claude Code