Skip to content

Commit d943dcb

Browse files
committed
Limit output of binary hex dump to 16k (0x4000) bytes since thats the maximum size which is available for the SNU second stage bootloader. In case of the MKR VIDOR 4000 the necessary FPGA bitstream is injected in the binary image above the usable flash of the MCU by the build system. When using the SNU for the MKR VIDOR 4000 we have to rely on the bitstream being already in place (not a unrealistic assumption, given that the SNU is compiled into a complete Vidor binary + fpga application).
1 parent 6467612 commit d943dcb

File tree

2 files changed

+2
-55623
lines changed

2 files changed

+2
-55623
lines changed

libraries/SNU/extras/NiNaBoot/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ buildSDUBootSketch() {
1515
DESTINATION=$2
1616

1717
$ARDUINO --verify --board $BOARD --preserve-temp-files --pref build.path="$BUILD_PATH" $SKETCH
18-
cat "$BUILD_PATH/$SKETCH_NAME.bin" | xxd -i > $DESTINATION
18+
cat "$BUILD_PATH/$SKETCH_NAME.bin" | xxd -include -len 0x4000 > $DESTINATION
1919
rm -rf "$BUILD_PATH"
2020
}
2121

0 commit comments

Comments
 (0)