2021-10-17 22:54:19 +00:00
|
|
|
# Flipper firmware
|
2020-10-07 09:37:43 +00:00
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
What it does?
|
2020-10-07 09:37:43 +00:00
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
- [x] RTOS
|
|
|
|
- [x] FuriHAL
|
|
|
|
- [x] FuriCore
|
|
|
|
- [x] Services
|
|
|
|
- [x] Applications
|
2020-10-07 09:37:43 +00:00
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
# Targets
|
2020-10-07 09:37:43 +00:00
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
| Name | Bootloader | Firmware | Reset | DFU |
|
|
|
|
| | Address | Address | Combo | Combo |
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
| f7 | 0x08000000 | 0x00008000 | L+Back | L+Back, hold L |
|
2020-10-07 09:37:43 +00:00
|
|
|
|
2021-10-17 22:54:19 +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 `target/include` folders.
|
2020-10-07 09:37:43 +00:00
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
# Building
|
2020-10-07 09:37:43 +00:00
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
## With dev docker image:
|
2020-10-07 09:37:43 +00:00
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
`docker-compose exec dev make -C firmware`
|
2020-12-28 05:52:35 +00:00
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
## With toolchain installed in path:
|
2020-10-07 09:37:43 +00:00
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
`make -C firmware`
|
2020-10-07 09:37:43 +00:00
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
## Build Options
|
2020-10-07 09:37:43 +00:00
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
- `DEBUG` - 0/1 - enable or disable debug build. Default is 1.
|
|
|
|
- `TARGET` - string - target to build. Default is `f7`.
|
2020-10-07 09:37:43 +00:00
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
# Flashing
|
2020-10-07 09:37:43 +00:00
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
Using SWD (STLink):
|
2020-10-07 09:37:43 +00:00
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
`make -C firmware flash`
|
2020-10-07 09:37:43 +00:00
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
Or use DFU (USB):
|
2020-10-07 09:37:43 +00:00
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
`make -C firmware upload`
|
2020-10-07 09:37:43 +00:00
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
# Debug
|
2020-10-07 09:37:43 +00:00
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
Using SWD (STLink):
|
2020-10-07 09:37:43 +00:00
|
|
|
|
2021-10-17 22:54:19 +00:00
|
|
|
`make -C firmware debug`
|