add bootloader to uf2 info file

This commit is contained in:
hathach 2018-06-21 12:28:52 +07:00
parent 56f126e715
commit 9847a37599
2 changed files with 5 additions and 2 deletions

View File

@ -58,7 +58,8 @@ struct TextFile {
const char infoUf2File[] = //
"UF2 Bootloader " UF2_VERSION "\r\n"
"Model: " PRODUCT_NAME "\r\n"
"Board-ID: " BOARD_ID "\r\n";
"Board-ID: " BOARD_ID "\r\n"
"Bootloader: " BOOTLOADER_ID "\r\n";
const char indexFile[] = //
"<!doctype html>\n"

View File

@ -2,7 +2,9 @@
#define PRODUCT_NAME "Adafruit Bluefruit nRF52"
#define BOARD_ID "NRF52-Bluefruit-v0"
#define INDEX_URL "https://www.adafruit.com/product/0000"
#define UF2_NUM_BLOCKS 8000
#define BOOTLOADER_ID MK_DIS_FIRMWARE
#define UF2_NUM_BLOCKS 8000 // at least 4,1 MB for FAT16
#define VOLUME_LABEL "NRF52BOOT "
#define FLASH_SIZE (BOOTLOADER_REGION_START-USER_FLASH_START)