Skip to content

Commit 2b99d63

Browse files
bootloader: Bump bootloader version to 4
This also updates BootloaderTest to expect this version.
1 parent 324b076 commit 2b99d63

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

BootloaderTest/Constants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static const uint8_t NUM_CHILDREN = 1;
112112
static const uint8_t EXTRA_INFO[] = {};
113113
#define BOARD_INFO_FILE "board_info/gphopper.h"
114114
#endif
115-
static const uint8_t BOOTLOADER_VERSION = 0x03;
115+
static const uint8_t BOOTLOADER_VERSION = 0x04;
116116

117117
#if defined (USE_I2C)
118118
static const uint8_t MAX_WRITE_DATA_LEN = MAX_MSG_LEN - 4; // cmd, 2xaddr, crc

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ FLASH_APP_OFFSET = $(BL_SIZE)
3939
BL_OFFSET = 0
4040
endif
4141

42-
BL_VERSION = 3
42+
BL_VERSION = 4
4343
BOARD_INFO_SIZE = 64
4444

4545
CXXFLAGS =

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The bootloader needs about 2k of flash.
4141
To upload the bootloader using avrdude and an usbasp programmer, you can
4242
use something like this:
4343

44-
avrdude -p attiny841 -c usbasp -U flash:w:bootloader-v3-interfaceboard.hex -U flash:w:BootloaderTest/board_info/interfaceboard.hex
44+
avrdude -p attiny841 -c usbasp -U flash:w:bootloader-v4-interfaceboard.hex -U flash:w:BootloaderTest/board_info/interfaceboard.hex
4545

4646
Note that the board info is not included in the bootloader hex file, but
4747
must be separately uploaded. The above command does this with a single
@@ -67,7 +67,7 @@ rounded up to full 2k erase pages).
6767
To upload the bootloader using openocd and an stlink programmer, you can
6868
use something like this:
6969

70-
openocd -f interface/stlink.cfg -f target/stm32g0x.cfg -c 'init; reset init; stm32l4x mass_erase 0; flash write_image bootloader-v3-gphopper.hex; flash write_image BootloaderTest/board_info/gphopper.hex; reset run; shutdown'
70+
openocd -f interface/stlink.cfg -f target/stm32g0x.cfg -c 'init; reset init; stm32l4x mass_erase 0; flash write_image bootloader-v4-gphopper.hex; flash write_image BootloaderTest/board_info/gphopper.hex; reset run; shutdown'
7171

7272
Note that the board info is not included in the bootloader hex file, but
7373
must be separately uploaded. The above command does this with a single

0 commit comments

Comments
 (0)