Refs #1452. Corrected flash erase size for STM32F07x and STM32F09x with 64kb flash.

git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@944 5dc33758-31d5-4daf-9ae8-b24bf3d40d73
This commit is contained in:
Frank Voorburg 2022-04-08 09:36:50 +00:00
parent 49c80e9ef9
commit 35c581ac22
2 changed files with 562 additions and 565 deletions

View File

@ -47,13 +47,8 @@
/** \brief End address of the bootloader programmable flash. */
#define FLASH_END_ADDRESS (flashLayout[FLASH_TOTAL_SECTORS-1].sector_start + \
flashLayout[FLASH_TOTAL_SECTORS-1].sector_size - 1)
#if (BOOT_NVM_SIZE_KB > 64)
/** \brief Number of bytes to erase per erase operation. */
#define FLASH_ERASE_BLOCK_SIZE (0x800)
#else
/** \brief Number of bytes to erase per erase operation. */
#define FLASH_ERASE_BLOCK_SIZE (0x400)
#endif
#define FLASH_ERASE_BLOCK_SIZE (FLASH_PAGE_SIZE)
/** \brief Offset into the user program's vector table where the checksum is located.
* For this target it is set to the end of the vector table. Note that the
* value can be overriden in blt_conf.h, because the size of the vector table