Commit 7955f13e authored by Rahix's avatar Rahix
Browse files

Merge 'change(epicardium): Increase size to 576 kb'

See merge request card10/firmware!431
parents 88fd915e 52d44b89
......@@ -6,12 +6,12 @@ BIN1="$2"
BIN2="$3"
BINOUT="$4"
if [ "$(stat -c "%s" "${BIN1}")" -gt 458752 ]; then
if [ "$(stat -c "%s" "${BIN1}")" -gt 589824 ]; then
echo "$0: ${BIN1} is too big to fit!" >&2
exit 1
fi
objcopy -I binary -O binary --pad-to=458752 --gap-fill=255 "${BIN1}" "$BINOUT"
objcopy -I binary -O binary --pad-to=589824 --gap-fill=255 "${BIN1}" "$BINOUT"
cat "$BIN2" >>"$BINOUT"
"$PYTHON" "$(dirname "$0")/crc_patch.py" "$BINOUT"
......@@ -15,7 +15,7 @@
#include <stdbool.h>
#include <stdbool.h>
#define PYCARDIUM_IVT (void *)0x10080000
#define PYCARDIUM_IVT (void *)0x100a0000
#define BLOCK_WAIT pdMS_TO_TICKS(1000)
/*
* Loading an empty filename into Pycardium will drop straight into the
......
......@@ -40,7 +40,7 @@ STACK_SIZE = 0x1000;
/* If used, they should be adjusted for the external Flash/RAM size */
MEMORY {
SPIX (rx) : ORIGIN = 0x08000000, LENGTH = 128M
FLASH (rx) : ORIGIN = 0x10010000, LENGTH = 448k
FLASH (rx) : ORIGIN = 0x10010000, LENGTH = 576k
SRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 256k
SPID (r) : ORIGIN = 0x80000000, LENGTH = 512M
}
......
......@@ -40,7 +40,7 @@ STACK_SIZE = 0x2000;
/* If used, they should be adjusted for the external Flash/RAM size */
MEMORY {
SPIX (rx) : ORIGIN = 0x08000000, LENGTH = 128M
FLASH (rx) : ORIGIN = 0x10080000, LENGTH = 512k
FLASH (rx) : ORIGIN = 0x100a0000, LENGTH = 384k
SRAM (rwx) : ORIGIN = 0x20040000, LENGTH = 256k
SPID (r) : ORIGIN = 0x80000000, LENGTH = 512M
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment