Skip to content
Snippets Groups Projects
Commit 52d44b89 authored by schneider's avatar schneider
Browse files

change(epicardium): Increase size to 576 kb

Pycardium gets a bit smaller now: 384 kb
parent 88fd915e
Branches
No related tags found
No related merge requests found
...@@ -6,12 +6,12 @@ BIN1="$2" ...@@ -6,12 +6,12 @@ BIN1="$2"
BIN2="$3" BIN2="$3"
BINOUT="$4" 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 echo "$0: ${BIN1} is too big to fit!" >&2
exit 1 exit 1
fi 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" cat "$BIN2" >>"$BINOUT"
"$PYTHON" "$(dirname "$0")/crc_patch.py" "$BINOUT" "$PYTHON" "$(dirname "$0")/crc_patch.py" "$BINOUT"
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <stdbool.h> #include <stdbool.h>
#define PYCARDIUM_IVT (void *)0x10080000 #define PYCARDIUM_IVT (void *)0x100a0000
#define BLOCK_WAIT pdMS_TO_TICKS(1000) #define BLOCK_WAIT pdMS_TO_TICKS(1000)
/* /*
* Loading an empty filename into Pycardium will drop straight into the * Loading an empty filename into Pycardium will drop straight into the
......
...@@ -40,7 +40,7 @@ STACK_SIZE = 0x1000; ...@@ -40,7 +40,7 @@ STACK_SIZE = 0x1000;
/* If used, they should be adjusted for the external Flash/RAM size */ /* If used, they should be adjusted for the external Flash/RAM size */
MEMORY { MEMORY {
SPIX (rx) : ORIGIN = 0x08000000, LENGTH = 128M SPIX (rx) : ORIGIN = 0x08000000, LENGTH = 128M
FLASH (rx) : ORIGIN = 0x10010000, LENGTH = 448k FLASH (rx) : ORIGIN = 0x10010000, LENGTH = 576k
SRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 256k SRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 256k
SPID (r) : ORIGIN = 0x80000000, LENGTH = 512M SPID (r) : ORIGIN = 0x80000000, LENGTH = 512M
} }
......
...@@ -40,7 +40,7 @@ STACK_SIZE = 0x2000; ...@@ -40,7 +40,7 @@ STACK_SIZE = 0x2000;
/* If used, they should be adjusted for the external Flash/RAM size */ /* If used, they should be adjusted for the external Flash/RAM size */
MEMORY { MEMORY {
SPIX (rx) : ORIGIN = 0x08000000, LENGTH = 128M SPIX (rx) : ORIGIN = 0x08000000, LENGTH = 128M
FLASH (rx) : ORIGIN = 0x10080000, LENGTH = 512k FLASH (rx) : ORIGIN = 0x100a0000, LENGTH = 384k
SRAM (rwx) : ORIGIN = 0x20040000, LENGTH = 256k SRAM (rwx) : ORIGIN = 0x20040000, LENGTH = 256k
SPID (r) : ORIGIN = 0x80000000, LENGTH = 512M SPID (r) : ORIGIN = 0x80000000, LENGTH = 512M
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment