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

F0 bootloader overhaul #97

Merged
merged 2 commits into from
May 23, 2024
Merged

F0 bootloader overhaul #97

merged 2 commits into from
May 23, 2024

Conversation

ThirteenFish
Copy link
Contributor

This adds misc toolchain improvements and a completely overhauled F0 bootloader.

This replaces the outdated arm-none-eabi-gdb with gdb-multiarch, which
modern distros package instead. This also adds a udev rule and systemd
service which will automatically create a vulan0 network device when the
adapter is plugged in. Place 99-vulcan.rule in /etc/udev/rules.d and
slcand@.service in /etc/systemd/system. The rules for both will then
have to be reloaded: `udevadm control --reload` and `systemctl
daemon-reload`.
This overhauls the F0 bootloader and associated tooling. The original
bootloader's command can IDs were incompatible with CANopen's address
assignment and so the instigator for this patch was to reassign them to
the reserved unused addresses in CANopen's protocol. While I was there
I've fixed a number of other issues too:
- Fixed linker scripts and memory layout.
- Fixed memory region addressing, using linker defined symbols instead
  of ints.
- Improved compatibility with the protocol that this bootloader is based
  on, AN3154
- Fixed a number of buffer overflows and off-by-one errors in the
  protocol
- Rearranged the metadata section to not have 1kb of empty space in
  every image. This speeds up bootloader image write time.
- Enabled CRC hardware acceleration.
- Added a python based unit test suite
- Overhauled the python write script to be used as a library as well
- Fixed type issues
- Reduced oresat common dependencies
@ThirteenFish ThirteenFish merged commit ccb5b04 into master May 23, 2024
1 check passed
@ryanpdx ryanpdx deleted the f0-bootloader branch June 2, 2024 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant