This commit is contained in:
hathach 2018-06-21 11:29:24 +07:00
parent 2ce43e643b
commit 85c08ee084
1 changed files with 7 additions and 6 deletions

View File

@ -44,21 +44,22 @@
// for checking flash size
#include "dfu_types.h"
#include "uf2/uf2.h"
/*------------------------------------------------------------------*/
/* FLASH Configuration
*------------------------------------------------------------------*/
#define MSC_FLASH_ADDR_START 0xAD000
#define MSC_FLASH_SIZE (256*1024)
#define MSC_FLASH_ADDR_START 0xAD000
#define MSC_FLASH_SIZE (256*1024)
#define MSC_FLASH_BLOCK_SIZE 512
#define MSC_FLASH_BLOCK_NUM (MSC_FLASH_SIZE/MSC_FLASH_BLOCK_SIZE)
VERIFY_STATIC( MSC_FLASH_ADDR_START+MSC_FLASH_SIZE == BOOTLOADER_REGION_START-DFU_APP_DATA_RESERVED, );
#define MSC_UF2_BLOCK_SIZE 512
#define MSC_UF2_BLOCK_NUM UF2_NUM_BLOCKS
// must be 11 bytes padded with space
#define MSC_FLASH_VOL_LABEL "NRF52BOOT "
VERIFY_STATIC( MSC_FLASH_ADDR_START+MSC_FLASH_SIZE == BOOTLOADER_REGION_START-DFU_APP_DATA_RESERVED, );
/*------------------------------------------------------------------*/
/* Note ATTR_WEAK is used when CFG_TUD_MSC = 0
*------------------------------------------------------------------*/