Export flash + option-byte internals to apps
Enable all furi_hal_flash_* functions: geometry, free-page info, raw program/erase/dword-write, and option-byte read/set/apply. Lets an app read and modify internal flash directly (research use). Guarded by EXPORT_FLASH (default 1); build with EXPORT_FLASH=0 to leave disabled. 17 symbols exported; firmware links and the app builds.
This commit is contained in:
@@ -182,6 +182,11 @@ symbol costs one API-table entry.
|
||||
temperature, remaining/full/design capacity, health, charge state) are
|
||||
already exported by stock firmware. This build also enables
|
||||
`furi_hal_power_insomnia_level`; `furi_hal_power_init` stays disabled.
|
||||
* **Flash + option-byte internals** (`furi_hal_flash_*`): flash geometry,
|
||||
free-page info, and raw program / erase / dword-write / option-byte access.
|
||||
An app can read and modify internal flash directly. **This can brick the
|
||||
device or wipe storage.** Enabled here for research; build with
|
||||
`EXPORT_FLASH=0 ./build.sh` to leave these disabled.
|
||||
|
||||
`build.sh` also widens the GAP roles the firmware initialises
|
||||
(`GAP_PERIPHERAL_ROLE | GAP_CENTRAL_ROLE | GAP_OBSERVER_ROLE`) in
|
||||
|
||||
Reference in New Issue
Block a user