Add start of pre-loaded app from flash

Based on earlier code by Daniel Jobson <jobson@tillitis.se> now
integrated into the new world order.

Co-authored-by: Mikael Ågren <mikael@tillitis.se>
Co-authored-by: Daniel Jobson <jobson@tillitis.se>
This commit is contained in:
Michael Cardell Widerkrantz 2025-03-13 14:18:38 +01:00 committed by Mikael Ågren
parent 20b008d20e
commit f2b78be4cb
No known key found for this signature in database
GPG key ID: E02DA3D397792C46
7 changed files with 352 additions and 1 deletions

View file

@ -0,0 +1,20 @@
// Copyright (C) 2024 - Tillitis AB
// SPDX-License-Identifier: GPL-2.0-only
#ifndef PRELOAD_APP_H
#define PRELOAD_APP_H
#include "partition_table.h"
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
bool preload_check_valid_app(struct partition_table *part_table);
int preload_load(struct partition_table *part_table);
int preload_store(struct partition_table *part_table, uint32_t offset,
uint8_t *data, size_t size);
int preload_store_finalize(struct partition_table *part_table, bool use_uss,
uint8_t *uss, size_t app_size);
int preload_delete(struct partition_table *part_table);
#endif