2020-09-30 23:05:04 +00:00
|
|
|
# Flipper bootloader
|
|
|
|
|
|
|
|
What it does?
|
|
|
|
|
2021-08-17 10:38:47 +00:00
|
|
|
- [x] Hardware initialization
|
|
|
|
- [x] Boot process LED indicators
|
|
|
|
- [x] Firmware update
|
2021-10-17 22:54:19 +00:00
|
|
|
- [x] Errata crutches
|
2020-09-30 23:05:04 +00:00
|
|
|
- [ ] Recovery mode
|
|
|
|
|
|
|
|
# Targets
|
|
|
|
|
2020-12-28 05:52:35 +00:00
|
|
|
| Name | Bootloader | Firmware | Reset | DFU |
|
|
|
|
| | Address | Address | Combo | Combo |
|
|
|
|
-----------------------------------------------------------------------------
|
2021-10-17 22:54:19 +00:00
|
|
|
| f7 | 0x08000000 | 0x00008000 | L+Back | L+Back, hold L |
|
2020-09-30 23:05:04 +00:00
|
|
|
|
2020-12-28 05:52:35 +00:00
|
|
|
Also there is a ST bootloader combo available on empty device: L+Ok+Back, release Back,Left.
|
2021-11-30 23:53:53 +00:00
|
|
|
Target independent code and headers in `src` and `target/include` folders.
|
2020-09-30 23:05:04 +00:00
|
|
|
|
|
|
|
# Building
|
|
|
|
|
|
|
|
## With dev docker image:
|
|
|
|
|
|
|
|
`docker-compose exec dev make -C bootloader`
|
|
|
|
|
|
|
|
## With toolchain installed in path:
|
|
|
|
|
2020-12-28 05:52:35 +00:00
|
|
|
`make -C bootloader `
|
2020-09-30 23:05:04 +00:00
|
|
|
|
|
|
|
## Build Options
|
|
|
|
|
|
|
|
- `DEBUG` - 0/1 - enable or disable debug build. Default is 1.
|
2020-12-28 05:52:35 +00:00
|
|
|
- `TARGET` - string - target to build. Default is `f4`.
|
2020-09-30 23:05:04 +00:00
|
|
|
|
|
|
|
# Flashing
|
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
Using SWD (STLink):
|
2020-09-30 23:05:04 +00:00
|
|
|
|
2020-12-28 05:52:35 +00:00
|
|
|
`make -C bootloader flash`
|
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
Or use DFU (USB):
|
2020-12-28 05:52:35 +00:00
|
|
|
|
|
|
|
`make -C bootloader upload`
|
2020-09-30 23:05:04 +00:00
|
|
|
|
|
|
|
# Debug
|
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
Using SWD (STLink):
|
2020-09-30 23:05:04 +00:00
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
`make -C bootloader debug`
|