2020-10-01 02:05:04 +03:00
|
|
|
# Flipper bootloader
|
|
|
|
|
|
|
|
What it does?
|
|
|
|
|
|
|
|
- [+] Hardware initialization
|
2020-12-28 08:52:35 +03:00
|
|
|
- [+] Boot process LED indicators
|
2020-10-01 02:05:04 +03:00
|
|
|
- [+] Firmware update
|
2020-12-28 08:52:35 +03:00
|
|
|
- [ ] Firmware CRC check
|
2020-10-01 02:05:04 +03:00
|
|
|
- [ ] Interactive UI
|
|
|
|
- [ ] FS check
|
|
|
|
- [ ] Recovery mode
|
2020-12-28 08:52:35 +03:00
|
|
|
- [ ] Errata crutches
|
2020-10-01 02:05:04 +03:00
|
|
|
|
|
|
|
# Targets
|
|
|
|
|
2020-12-28 08:52:35 +03:00
|
|
|
| Name | Bootloader | Firmware | Reset | DFU |
|
|
|
|
| | Address | Address | Combo | Combo |
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
| f4 | 0x08000000 | 0x00008000 | L+Back | L+Back, hold L |
|
2020-10-01 02:05:04 +03:00
|
|
|
|
2020-12-28 08:52:35 +03:00
|
|
|
Also there is a ST bootloader combo available on empty device: L+Ok+Back, release Back,Left.
|
2020-10-01 02:05:04 +03:00
|
|
|
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:
|
|
|
|
|
2020-12-28 08:52:35 +03:00
|
|
|
`make -C bootloader `
|
2020-10-01 02:05:04 +03:00
|
|
|
|
|
|
|
## Build Options
|
|
|
|
|
|
|
|
- `DEBUG` - 0/1 - enable or disable debug build. Default is 1.
|
2020-12-28 08:52:35 +03:00
|
|
|
- `TARGET` - string - target to build. Default is `f4`.
|
2020-10-01 02:05:04 +03:00
|
|
|
|
|
|
|
# Flashing
|
|
|
|
|
|
|
|
Using stlink(st-flash):
|
|
|
|
|
2020-12-28 08:52:35 +03:00
|
|
|
`make -C bootloader flash`
|
|
|
|
|
|
|
|
Or use ST bootloader:
|
|
|
|
|
|
|
|
`make -C bootloader upload`
|
2020-10-01 02:05:04 +03:00
|
|
|
|
|
|
|
# Debug
|
|
|
|
|
|
|
|
Using stlink (st-util + gdb):
|
|
|
|
|
2020-12-28 08:52:35 +03:00
|
|
|
`make -C bootloader debug`
|