Skip to content

Commit

Permalink
build: fix hex file generation (mck1117#281)
Browse files Browse the repository at this point in the history
Now hex file contains OpenBLT crc for main FW.
So flashed hex should start main FW now.

Co-authored-by: Andrey Gusakov <[email protected]>
  • Loading branch information
rusefillc and dron0gus authored Jan 24, 2025
1 parent 40d264b commit f183155
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/boards/build_f1_board.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ if [ $USE_OPENBLT = "yes" ]; then
echo ""
echo "Invoking hex2dfu for composite OpenBLT+Wideband image (for DFU util)"
$HEX2DFU -i ${OPENBLT_HEX} -i build/wideband.hex -C 0x1C -o ${DELIVER_DIR}/wideband.dfu -b ${DELIVER_DIR}/wideband.bin
echo "Combining two hex files into composite hex file"
$SREC_CAT ${OPENBLT_HEX} -Intel build/wideband.hex -Intel -o ${DELIVER_DIR}/wideband.hex -Intel
echo "Creating composite hex file"
$SREC_CAT build/wideband.hex -binary -offset 0x20000000 -o ${DELIVER_DIR}/wideband.hex -Intel
else
echo "Bin for raw flashing"
cp build/wideband.bin ${DELIVER_DIR}
Expand Down

0 comments on commit f183155

Please sign in to comment.