2026-04-27 13:09:08 +08:00
|
|
|
为了暂时使用芯片上超出128k 的flash 当作config 文件的存储区,修改了
|
|
|
|
|
libraries/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Include/stm32h750xx.h
|
|
|
|
|
的
|
2025-12-24 09:54:51 +08:00
|
|
|
|
2026-04-27 13:09:08 +08:00
|
|
|
#define FLASH_END (0x0801FFFFUL) /*!< FLASH end address
|
2025-12-24 09:54:51 +08:00
|
|
|
|
2026-04-27 13:09:08 +08:00
|
|
|
为
|
2025-12-24 09:54:51 +08:00
|
|
|
|
2026-04-27 13:09:08 +08:00
|
|
|
#define FLASH_END (0x0803FFFFUL) /*!< FLASH end address
|
2025-12-24 09:54:51 +08:00
|
|
|
|
2026-04-27 13:09:08 +08:00
|
|
|
并在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 };
|