[FL-2269] Core2 OTA (#1144)
* C2OTA: wip * Update Cube to 1.13.3 * Fixed prio * Functional Core2 updater * Removed hardware CRC usage; code cleanup & linter fixes * Moved hardcoded stack params to copro.mk * Fixing CI bundling of core2 fw * Removed last traces of hardcoded radio stack * OB processing draft * Python scripts cleanup * Support for comments in ob data * Sacrificed SD card icon in favor of faster update. Waiting for Storage fix * Additional handling for OB mismatched values * Description for new furi_hal apis; spelling fixes * Rework of OB write, WIP * Properly restarting OB verification loop * Split update_task_workers.c * Checking OBs after enabling post-update mode * Moved OB verification before flashing * Removed ob.data for custom stacks * Fixed progress calculation for OB * Removed unnecessary OB mask cast Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
1
assets/.gitignore
vendored
1
assets/.gitignore
vendored
@@ -1 +1,2 @@
|
||||
/headers
|
||||
/core2_firmware
|
||||
|
@@ -1,6 +1,7 @@
|
||||
PROJECT_ROOT = $(abspath $(dir $(abspath $(firstword $(MAKEFILE_LIST))))..)
|
||||
|
||||
include $(PROJECT_ROOT)/assets/assets.mk
|
||||
include $(PROJECT_ROOT)/assets/copro.mk
|
||||
|
||||
.PHONY: all
|
||||
all: icons protobuf dolphin manifest
|
||||
@@ -35,7 +36,13 @@ manifest:
|
||||
.PHONY: dolphin
|
||||
dolphin: $(DOLPHIN_EXTERNAL_OUTPUT_DIR)
|
||||
|
||||
.PHONY: copro_bundle
|
||||
copro_bundle:
|
||||
@mkdir -p $(COPRO_BUNDLE_DIR)
|
||||
@$(ASSETS_COMPILER) copro $(COPRO_CUBE_DIR) $(COPRO_BUNDLE_DIR) $(COPRO_MCU_FAMILY) --cube_ver=$(COPRO_CUBE_VERSION) --stack_type=$(COPRO_STACK_TYPE) --stack_file=$(COPRO_STACK_BIN) --stack_addr=$(COPRO_STACK_ADDR)
|
||||
|
||||
clean:
|
||||
@echo "\tCLEAN\t"
|
||||
@$(RM) $(ASSETS_COMPILED_DIR)/*
|
||||
@$(RM) -rf $(COPRO_BUNDLE_DIR)
|
||||
@$(RM) -rf $(DOLPHIN_EXTERNAL_OUTPUT_DIR)
|
||||
|
12
assets/copro.mk
Normal file
12
assets/copro.mk
Normal file
@@ -0,0 +1,12 @@
|
||||
COPRO_CUBE_VERSION := 1.13.3
|
||||
COPRO_MCU_FAMILY := STM32WB5x
|
||||
COPRO_STACK_BIN := stm32wb5x_BLE_Stack_light_fw.bin
|
||||
# See __STACK_TYPE_CODES in scripts/flipper/assets/coprobin.py
|
||||
COPRO_STACK_TYPE := ble_light
|
||||
# Keep 0 for auto, or put a value from release_notes for chosen stack
|
||||
COPRO_STACK_ADDR := 0
|
||||
|
||||
COPRO_BUNDLE_DIR := $(ASSETS_DIR)/core2_firmware
|
||||
COPRO_CUBE_DIR := $(PROJECT_ROOT)/lib/STM32CubeWB
|
||||
COPRO_FIRMWARE_DIR := $(COPRO_CUBE_DIR)/Projects/STM32WB_Copro_Wireless_Binaries/$(COPRO_MCU_FAMILY)
|
||||
COPRO_STACK_BIN_PATH := $(COPRO_FIRMWARE_DIR)/$(COPRO_STACK_BIN)
|
Reference in New Issue
Block a user