parent
f35977e84f
commit
19be061693
34
ReadMe.md
34
ReadMe.md
@ -73,26 +73,26 @@ One liner: `./flash_core1_main.sh`
|
|||||||
## Compile bootloader
|
## Compile bootloader
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker-compose exec dev make -j$(nproc) -C bootloader TARGET=f6
|
docker-compose exec dev make -j$(nproc) -C bootloader
|
||||||
```
|
```
|
||||||
|
|
||||||
Bootloader compilation results:
|
Bootloader compilation results:
|
||||||
* `bootloader/.obj/f6/bootloader.elf`
|
* `bootloader/.obj/f7/bootloader.elf`
|
||||||
* `bootloader/.obj/f6/bootloader.hex`
|
* `bootloader/.obj/f7/bootloader.hex`
|
||||||
* `bootloader/.obj/f6/bootloader.bin`
|
* `bootloader/.obj/f7/bootloader.bin`
|
||||||
* **`bootloader/.obj/f6/bootloader.dfu`** - should be used to flash
|
* **`bootloader/.obj/f7/bootloader.dfu`** - should be used to flash
|
||||||
|
|
||||||
## Compile firmware
|
## Compile firmware
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker-compose exec dev make -j$(nproc) -C firmware TARGET=f6
|
docker-compose exec dev make -j$(nproc) -C firmware
|
||||||
```
|
```
|
||||||
|
|
||||||
Firmware compilation results:
|
Firmware compilation results:
|
||||||
* `firmware/.obj/f6/firmware.elf`
|
* `firmware/.obj/f7/firmware.elf`
|
||||||
* `firmware/.obj/f6/firmware.hex`
|
* `firmware/.obj/f7/firmware.hex`
|
||||||
* `firmware/.obj/f6/firmware.bin`
|
* `firmware/.obj/f7/firmware.bin`
|
||||||
* **`firmware/.obj/f6/firmware.dfu`** - should be used to flash
|
* **`firmware/.obj/f7/firmware.dfu`** - should be used to flash
|
||||||
|
|
||||||
## Concatenate bootloader and firmware
|
## Concatenate bootloader and firmware
|
||||||
|
|
||||||
@ -103,19 +103,19 @@ That's exactly how we generate our `full` builds.
|
|||||||
1. Concatenate HEX files:
|
1. Concatenate HEX files:
|
||||||
```sh
|
```sh
|
||||||
docker-compose exec dev srec_cat \
|
docker-compose exec dev srec_cat \
|
||||||
bootloader/.obj/f6/bootloader.hex -Intel \
|
bootloader/.obj/f7/bootloader.hex -Intel \
|
||||||
firmware/.obj/f6/firmware.hex -Intel \
|
firmware/.obj/f7/firmware.hex -Intel \
|
||||||
-o firmware/.obj/f6/full.hex -Intel
|
-o firmware/.obj/f7/full.hex -Intel
|
||||||
```
|
```
|
||||||
2. Convert HEX to DFU:
|
2. Convert HEX to DFU:
|
||||||
```sh
|
```sh
|
||||||
docker-compose exec dev hex2dfu \
|
docker-compose exec dev hex2dfu \
|
||||||
-i firmware/.obj/f6/full.hex \
|
-i firmware/.obj/f7/full.hex \
|
||||||
-o firmware/.obj/f6/full.dfu \
|
-o firmware/.obj/f7/full.dfu \
|
||||||
-l "Flipper Zero F6"
|
-l "Flipper Zero F7"
|
||||||
```
|
```
|
||||||
|
|
||||||
Finally, you will have **`firmware/.obj/f6/full.dfu`** file that can be distributed and flashed.
|
Finally, you will have **`firmware/.obj/f7/full.dfu`** file that can be distributed and flashed.
|
||||||
|
|
||||||
# Links
|
# Links
|
||||||
* Discord: [flipp.dev/discord](https://flipp.dev/discord)
|
* Discord: [flipp.dev/discord](https://flipp.dev/discord)
|
||||||
|
Loading…
Reference in New Issue
Block a user