DB48X-on-DM42/tools/adjust_crc
Christophe de Dinechin b9f5803fa8 Add build steps to adjust CRC for QSPI file
This is lifted from the WP43 project.
The idea is to be able to move "heavy" and rarely moving data, like fonts, into
the QSPI, so that we have more room for the main program in Flash.

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
2023-06-21 16:39:45 +02:00

8 lines
126 B
Bash
Executable file

#!/bin/bash
crcfix="$1"
qspi="$2"
sz=$(cat $qspi | wc -c)
echo -n -e '\x00\x00\x00\x00' >> $qspi
$crcfix $qspi $sz 000CFED6