Skip to content

Commit

Permalink
stm32h743xx_hic: Reduce interface flash size
Browse files Browse the repository at this point in the history
Reduce the reserved space for the interface to 2 sectors so that the
total size becomes 512kB. There are some stm32h743 chips which have only
512kB flash, so this way we can support those. Luckily the even the UDB
IF fits into 2 sectors.
  • Loading branch information
gaborcsapo authored and mbrossard committed Aug 4, 2023
1 parent 8b4b98d commit ef98b1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/hic_hal/stm32/stm32h743xx/daplink_addr.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
/* Device sizes */

#define DAPLINK_ROM_START 0x08000000
#define DAPLINK_ROM_SIZE 0x00100000 // has to be a multiple of the sector size, only bank 1 is used, the datasheet says under table 7 in the notes section that the memory boundary is limited to this on each bank
#define DAPLINK_ROM_SIZE 0x000A0000 // has to be a multiple of the sector size, only bank 1 is used, the datasheet says under table 7 in the notes section that the memory boundary is limited to this on each bank

#define DAPLINK_RAM_START 0x24000000 // Execute from AXI SRAM, because it's powered on by default and the app is quite large due to the sector_buf static variable that is used to hold one sector (128Kb)
#define DAPLINK_RAM_SIZE 0x00080000 // divisible by DAPLINK_MIN_WRITE_SIZE
Expand All @@ -44,9 +44,9 @@
#define DAPLINK_ROM_CONFIG_ADMIN_SIZE 0x00020000 // 1 sector

#define DAPLINK_ROM_IF_START 0x08040000
#define DAPLINK_ROM_IF_SIZE 0x000A0000 // 5 sectors
#define DAPLINK_ROM_IF_SIZE 0x00040000 // 2 sectors

#define DAPLINK_ROM_CONFIG_USER_START 0x080E0000
#define DAPLINK_ROM_CONFIG_USER_START 0x08080000
#define DAPLINK_ROM_CONFIG_USER_SIZE 0x00020000 // 1 sector

/* RAM sizes */
Expand Down

0 comments on commit ef98b1e

Please sign in to comment.