cmvr_head/README.md

13 lines
597 B
Markdown
Raw Normal View History

为了暂时使用芯片上超出128k 的flash 当作config 文件的存储区,修改了
libraries/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Include/stm32h750xx.h
#define FLASH_END (0x0801FFFFUL) /*!< FLASH end address
#define FLASH_END (0x0803FFFFUL) /*!< FLASH end address
并在libraries/HAL_Drivers/drivers/drv_flash/drv_flash_h7.c 中添加了
const struct fal_flash_dev stm32_onchip_flash_256k = { "onchip_flash_256k", 0x08000000, (256 * 1024), (128 * 1024), {NULL, fal_flash_read_128k, fal_flash_write_128k, fal_flash_erase_128k},256 };