Skip to content

openlunar/fc-bootloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Title: Flight Computer Bootloader
Author: OpenLunar Foundation
Date: 2020-01-16
Copyright: Copyright © 2020 OpenLunar
Version: 0

C/C++ CI

Flight Computer bootloader developed for the SAMRH71 and SAMV71.

Build

Dependencies

Note: Currently the development environment is Linux only.

  • Python 3 (see tools/requirements.txt)
  • ARM tool chain (version used during development: arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2017-q4-major) 7.2.1 20170904 (release) [ARM/embedded-7-branch revision 255204])
  • meson
  • opneocd

Configuration

To support multiple targets and various configurations (development / debug / production) this project uses Kconfig. To configure the build for a specific board:

# <board> = (e.g.) samv71_xult_ek or samrh71_ek
$ meson <build-dir> --cross-file tools/meson/gcc-arm-cortex-m7.txt -Dboard=<board>

Currently supported targets:

Compile

$ ninja -C <build-dir>
# or
$ cd <build-dir>
$ ninja

This will generate bin/bootloader.elf.

Deploy

The method of loading the binary onto the target depends on the specific board and debug connection. Below are examples for the two evaluation boards.

SAMV71 Xplained Ultra

This example uses gdb to load code via openocd over the eDBG interface.

# In one terminal (tab)
$ openocd -f interface/cmsis-dap.cfg -f board/atmel_samv71_xplained_ultra.cfg

# In another terminal (tab)
$ arm-none-eabi-gdb bin/bootloader.elf
(gdb) tar ext :3333
(gdb) load
(gdb) quit

The MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Flight computer bootloader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published