We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75baff8 commit 1681e8eCopy full SHA for 1681e8e
loader/main.c
@@ -196,7 +196,7 @@ static int loader(const struct shell *sh) {
196
while (!sketch_valid) {
197
__asm__("bkpt");
198
// poll the first bytes, if filled try to use them for booting
199
- sketch_hdr = (struct sketch_header_v1 *)(ram_firmware + 7);
+ memcpy(sketch_hdr.bytes, ram_firmware, sizeof(sketch_hdr));
200
if (sketch_hdr.ver == 0x1 && sketch_hdr.magic == 0x2341) {
201
// Found valid data, use it for booting
202
base_addr = (uintptr_t)ram_firmware;
0 commit comments