GithubHelp home page GithubHelp logo

4ms / smr-bootloader Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 1.57 MB

Audio bootloader for the SMR project

License: MIT License

Makefile 0.12% C++ 0.73% C 98.09% Objective-C 0.15% Assembly 0.92%

smr-bootloader's Introduction

smr-bootloader

Audio bootloader for the Spectral Multiband Resonator

The core of this bootloader is from the stm-audio-bootloader from pichenettes. The bootloader.cc file has been modified, and interface/driver files have been added for use with the hardware UI of the Spectral Multiband Resonator (SMR).

The SMR project is located here

This bootloader works with SMR code that's less than 480kB in size. The reason for this limit is because the audio file is flashed into the upper sectors first (kStartReceiveAddress), and then copied over to the execution sectors (kStartExecutionAddress) only once all data has been received.

Setting up your environment

Set up the environment exactly as you would in the SMR project

Compiling

To compile, simply run:

make

This creates bootloader.bin and bootloader.elf files in the build/ directory


To flash the bin file to your SMR hardware using an st-link programmer:

make flash

This will program the first sector with the bootloader (0x08000000). Note that in the stock SMR, the second sector (0x08004000) is used for system settings, so the bootloader must fit into the first 16kB sector or else the SMR code will need to be altered to prevent over-writing the bootloader.


To combine the bootloader with the SMR application code into one bin file:

make combo

This requires ../SMR/build/main.bin to be already present. A new file combo.bin will be created.


To flash combo.bin using an st-link programmer:

make combo_flash

smr-bootloader's People

Watchers

James Cloos avatar 4ms Company avatar

Forkers

whimsicalraps

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.