Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nav Board Update #99

Open
wants to merge 48 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
98f64d3
Add blink task and rename sensor_v2 to nav
NoahSprenger Mar 19, 2024
675e473
WIP: Test pinout compatibility.
NoahSprenger Jul 8, 2024
0303498
Fix: MCAN moved as STM32 introduces new CAN library causing symbol is…
NoahSprenger Jul 8, 2024
e3a0dca
Update sbg-rs crate.
NoahSprenger Jul 20, 2024
c138692
Update Cargo.toml mavlink
Jul 20, 2024
0d627fe
WIP: Fix Mavlink, Add baro (untested).
NoahSprenger Jul 23, 2024
47ee89b
WIP: Out of scope.
NoahSprenger Jul 26, 2024
8a84b44
...
NoahSprenger Aug 4, 2024
d88316d
sync
NoahSprenger Aug 5, 2024
8185265
Add command CAN to link board, auto crlf.
NoahSprenger Aug 6, 2024
6589618
WIP: SBG.
NoahSprenger Aug 6, 2024
8624b35
Modify compiler ops, and add launch config.
NoahSprenger Aug 7, 2024
7678ebb
WIP: Works, but needs cleaning.
NoahSprenger Aug 7, 2024
64b0e8b
Add NAV CAN-FD netowrks and implement channels for message passing.
NoahSprenger Aug 8, 2024
9aa7256
WIP: Abort mailbox to prevent blocking forever on CAN.
NoahSprenger Aug 9, 2024
60ef78f
WIP: Fix nominal bit timing.
NoahSprenger Aug 9, 2024
3bc62e3
Add CAN-FD to NAV board.
NoahSprenger Aug 9, 2024
634a981
Update messages crate feature flags.
NoahSprenger Aug 10, 2024
c22dbe2
Remove redundant feature flag.
NoahSprenger Aug 10, 2024
e875aae
Remove failing mavlink code.
NoahSprenger Aug 10, 2024
958b963
WIP
NoahSprenger Aug 11, 2024
62a21a6
Increase CPU and CAN speed.
NoahSprenger Aug 11, 2024
78c063d
Add command reading and sending.
NoahSprenger Aug 11, 2024
6f9ef1f
WIP
NoahSprenger Aug 12, 2024
21d169a
Add recovery sensing and cleanup.
NoahSprenger Aug 12, 2024
7f1dc91
Please work GPS :)
NoahSprenger Aug 13, 2024
b8e1cb1
Add GPS board.
NoahSprenger Aug 13, 2024
4522231
WIP
NoahSprenger Aug 14, 2024
c920181
WIP
NoahSprenger Aug 14, 2024
1313ecf
WIP
NoahSprenger Aug 15, 2024
563fa09
WIP
NoahSprenger Aug 16, 2024
54adb71
WIP
NoahSprenger Aug 17, 2024
d05fcba
Add reset reason message and convert nav to a link board.
NoahSprenger Aug 17, 2024
8b8dd24
Change timestamp to ticks from SysTick 2ms granularity.
NoahSprenger Aug 17, 2024
8180fe7
Add GPS nav message type
NoahSprenger Aug 17, 2024
9911e0f
Add online message and refactor gps board.
NoahSprenger Aug 19, 2024
8879740
WIP: GPS and Link fushion.
NoahSprenger Aug 19, 2024
bed3a92
WIP: Weird link board.
NoahSprenger Aug 20, 2024
34f3cfc
WIP: Fix baud rate.
NoahSprenger Aug 20, 2024
5f3492f
Remove buggy message receiving and fix* timing of recovery algorithm.
NoahSprenger Aug 20, 2024
f4bc78a
WIP
NoahSprenger Aug 21, 2024
f31c25f
Go over recovery algorithm
NoahSprenger Aug 21, 2024
15e3b44
Go over recovery algorithm
NoahSprenger Aug 21, 2024
c08a2d2
?
NoahSprenger Aug 21, 2024
8268798
Post comp update.
NoahSprenger Aug 25, 2024
d275eea
Remove unused boards.
NoahSprenger Aug 25, 2024
edabe7e
Update lock
NoahSprenger Sep 14, 2024
6bea4be
Merge branch 'master' into nav
NoahSprenger Sep 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .cargo/config → .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
# This runner needs to be parametric so we can pass in the chip name
runner = "probe-rs run --chip ATSAME51J20A --protocol swd"
rustflags = [
"-C", "link-arg=-Tlink.x",
"-C", "link-arg=-Tdefmt.x",
]
[env]
DEFMT_LOG="info"
[build]
target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
# This runner needs to be parametric so we can pass in the chip name
runner = "probe-rs run --chip STM32H733VGTx --protocol swd"
#runner = "probe-rs run --chip ATSAME51J18A --protocol swd"
rustflags = [
"-C", "link-arg=-Tlink.x",
"-C", "link-arg=-Tdefmt.x",
]

[env]
DEFMT_LOG="info"

[build]
target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)
15 changes: 7 additions & 8 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ COPY --from=toolchain /toolchain /toolchain

ENV PATH="${PATH}:/toolchain/bin"
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y && apt-get install -y cmake pkg-config libusb-1.0-0-dev libftdi1-dev libudev-dev libssl-dev

# Necessary system packages
RUN apt-get update && apt-get install -y cmake pkg-config libusb-1.0-0-dev libftdi1-dev libudev-dev libssl-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Install Rust crates
RUN cargo install probe-rs --features cli \
&& cargo install cargo-make
# Install ARM GCC deps
RUN mkdir -p toolchain && \
curl -L "https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz" \
| tar --strip-components=1 -xJ -C toolchain && \
cargo install --locked [email protected] --features cli
ENV PATH="${PATH}:/toolchain/bin"
1 change: 0 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
},
"remoteUser": "root",
"runArgs": ["--privileged"]

}
2 changes: 2 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[core]
autocrlf = true
127 changes: 127 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,133 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "probe-rs-debug",
"request": "launch",
"name": "Probe-rs Debug Recovery",
"chip": "ATSAME51J18A",
"coreConfigs": [
{
"programBinary": "${workspaceFolder}/target/thumbv7em-none-eabihf/release/recovery",
}
]
},
{
"type": "probe-rs-debug",
"request": "attach",
"name": "Probe-rs attach nav (Debug)",
"chip": "STM32H733VGTx",
"coreConfigs": [
{
"programBinary": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/nav",
}
]
},
{
"type": "probe-rs-debug",
"request": "attach",
"name": "Probe-rs attach recovery (Release)",
"chip": "ATSAME51J18A",
"coreConfigs": [
{
"programBinary": "${workspaceFolder}/target/thumbv7em-none-eabihf/release/recovery",
}
]
},
{
"type": "probe-rs-debug",
"request": "attach",
"name": "Probe-rs attach com (Release)",
"chip": "ATSAME51J18A",
"coreConfigs": [
{
"programBinary": "${workspaceFolder}/target/thumbv7em-none-eabihf/release/communication",
}
]
},
{
"type": "probe-rs-debug",
"request": "launch",
"name": "Probe-rs Debug Link (Release)",
"chip": "ATSAME51J18A",
"flashingConfig": {
"flashingEnabled": true,
"haltAfterReset": false,
"formatOptions": {
//!MODIFY (or remove). Valid values are: 'bin', 'hex', 'elf'(default), 'idf'
"binaryFormat": "elf"
}
},
"coreConfigs": [
{
"programBinary": "${workspaceFolder}/target/thumbv7em-none-eabihf/release/communication",
}
]
},
{
"type": "probe-rs-debug",
"request": "launch",
"name": "Probe-rs Debug nav (Debug)",
"chip": "STM32H733VGTx",
"wireProtocol": "Swd",
"flashingConfig": {

"haltAfterReset": true,
// "flashingEnabled": true,

},
"coreConfigs": [
{
"programBinary": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/nav",
}
]
},
{
"type": "probe-rs-debug",
"request": "attach",
"name": "Probe-rs attach Release nav",
"chip": "STM32H733VGTx",
"wireProtocol": "Swd",
"coreConfigs": [
{
"programBinary": "${workspaceFolder}/target/thumbv7em-none-eabihf/release/nav",
// "rttEnabled": true,
// "coreIndex": 0,
}
]
},
{
"type": "probe-rs-debug",
"request": "attach",
"name": "Probe-rs attach Release simple example",
"chip": "STM32H733VGTx",
"wireProtocol": "Swd",
"coreConfigs": [
{
"programBinary": "${workspaceFolder}/target/thumbv7em-none-eabihf/release/simple_example",
"rttEnabled": true,
"coreIndex": 0,
}
]
},
{
"type": "probe-rs-debug",
"request": "launch",
"name": "Probe-rs Release nav",
"chip": "STM32H733VGTx",
"wireProtocol": "Swd",
"flashingConfig": {
"haltAfterReset": true,
"flashingEnabled": true,
},
"coreConfigs": [
{
"programBinary": "${workspaceFolder}/target/thumbv7em-none-eabihf/release/nav",
"rttEnabled": true,
"coreIndex": 0,
}
]
},
{
"type": "cortex-debug",
"request": "launch",
Expand Down
Loading
Loading