Skip to content

Commit

Permalink
stm32f103xb : Increase bootloader size to 48KB
Browse files Browse the repository at this point in the history
Increase the bootloader size to 48K so it fits and has room to grow.
  • Loading branch information
c1728p9 authored and brianesquilona committed Oct 29, 2018
1 parent 91daf85 commit fc676b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions source/board/stm32f103xb_bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ target_cfg_t target_device = {
// Assume memory is regions are same size. Flash algo should ignore requests
// when variable sized sectors exist
// .sector_cnt = ((.flash_end - .flash_start) / .sector_size);
.sector_cnt = ((KB(128) - KB(32)) / 0x400),
.flash_start = 0x08000000 + KB(32),
.sector_cnt = ((KB(128) - KB(48)) / 0x400),
.flash_start = 0x08000000 + KB(48),
.flash_end = 0x08000000 + KB(128),
.ram_start = 0x20000000,
.ram_end = 0x20005000
Expand Down
12 changes: 6 additions & 6 deletions source/hic_hal/stm32/stm32f103xb/daplink_addr.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@
/* ROM sizes */

#define DAPLINK_ROM_BL_START 0x08000000
#define DAPLINK_ROM_BL_SIZE 0x00007C00
#define DAPLINK_ROM_BL_SIZE 0x0000BC00

#define DAPLINK_ROM_CONFIG_ADMIN_START 0x08007C00
#define DAPLINK_ROM_CONFIG_ADMIN_START 0x0800BC00
#define DAPLINK_ROM_CONFIG_ADMIN_SIZE 0x00000400

#define DAPLINK_ROM_IF_START 0x08008000
#define DAPLINK_ROM_IF_SIZE 0x00017000
#define DAPLINK_ROM_IF_START 0x0800C000
#define DAPLINK_ROM_IF_SIZE 0x00013C00

#define DAPLINK_ROM_CONFIG_USER_START 0x0801F000
#define DAPLINK_ROM_CONFIG_USER_SIZE 0x00001000
#define DAPLINK_ROM_CONFIG_USER_START 0x0801FC00
#define DAPLINK_ROM_CONFIG_USER_SIZE 0x00000400

/* RAM sizes */

Expand Down

0 comments on commit fc676b3

Please sign in to comment.