WIP partition table

This commit is contained in:
Daniel Jobson 2024-08-30 14:58:19 +02:00
parent 8a2ef282e0
commit 3c292a9625
No known key found for this signature in database
GPG key ID: 3707A9DBF4BB8F1A
4 changed files with 170 additions and 3 deletions

View file

@ -7,6 +7,7 @@
#include "assert.h"
#include "blake2s/blake2s.h"
#include "lib.h"
#include "partition_table.h"
#include "proto.h"
#include "state.h"
@ -405,6 +406,7 @@ int main(void)
struct frame_header hdr = {0};
uint8_t cmd[CMDLEN_MAXBYTES] = {0};
enum state state = FW_STATE_INITIAL;
partition_table_t part_table;
print_hw_version();
@ -419,8 +421,12 @@ int main(void)
/*@+mustfreeonly@*/
ctx.use_uss = false;
readbyte();
scramble_ram();
part_table_read(&part_table);
for (;;) {
switch (state) {
case FW_STATE_INITIAL: