flipperzero-firmware/bootloader
あく cf591ef7eb
[FL-1911] FuriHal: i2c refactoring (#847)
* Project: fix release build, replace asserts with checks.
* FuriHal: i2c refactoring, new bus access model, flexible bus gpio configuration.
* FuriHal: set i2c pins to high on detach.
* FuriHal: more i2c bus events, put bus under reset when not used, move bus enable/disable routine to bus handler.
* FuriHal: fix i2c deadlock in power api, add external i2c handle.
2021-11-28 21:28:19 +03:00
..
src Implement bootloader #137 (#142) 2020-10-01 02:05:04 +03:00
targets [FL-1911] FuriHal: i2c refactoring (#847) 2021-11-28 21:28:19 +03:00
Makefile Simpler build, less dependencies (#827) 2021-11-18 11:46:47 +03:00
ReadMe.md Git: set git attributes to automatically manage line endings. (#771) 2021-10-18 01:54:19 +03:00

Flipper bootloader

What it does?

  • Hardware initialization
  • Boot process LED indicators
  • Firmware update
  • Errata crutches
  • Recovery mode

Targets

| Name | Bootloader | Firmware | Reset | DFU | | | Address | Address | Combo | Combo |

| f7 | 0x08000000 | 0x00008000 | L+Back | L+Back, hold L |

Also there is a ST bootloader combo available on empty device: L+Ok+Back, release Back,Left. Target independend code and headers in src and target/include folders.

Building

With dev docker image:

docker-compose exec dev make -C bootloader

With toolchain installed in path:

make -C bootloader

Build Options

  • DEBUG - 0/1 - enable or disable debug build. Default is 1.
  • TARGET - string - target to build. Default is f4.

Flashing

Using SWD (STLink):

make -C bootloader flash

Or use DFU (USB):

make -C bootloader upload

Debug

Using SWD (STLink):

make -C bootloader debug