File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ static const uint8_t NUM_CHILDREN = 1;
112112static 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 )
118118static const uint8_t MAX_WRITE_DATA_LEN = MAX_MSG_LEN - 4 ; // cmd, 2xaddr, crc
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ FLASH_APP_OFFSET = $(BL_SIZE)
3939BL_OFFSET = 0
4040endif
4141
42- BL_VERSION = 3
42+ BL_VERSION = 4
4343BOARD_INFO_SIZE = 64
4444
4545CXXFLAGS =
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ The bootloader needs about 2k of flash.
4141To upload the bootloader using avrdude and an usbasp programmer, you can
4242use 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
4646Note that the board info is not included in the bootloader hex file, but
4747must be separately uploaded. The above command does this with a single
@@ -67,7 +67,7 @@ rounded up to full 2k erase pages).
6767To upload the bootloader using openocd and an stlink programmer, you can
6868use 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
7272Note that the board info is not included in the bootloader hex file, but
7373must be separately uploaded. The above command does this with a single
You can’t perform that action at this time.
0 commit comments