yangjie 发表于 2019-4-28 09:38
可以的,记得楼主发帖子问过了嘛(https://www.rt-thread.org/qa/thread-10970-1-1.html),使用STM32新BSP ...
#ifndef _FAL_CFG_H_
#define _FAL_CFG_H_
#include
#include
#define NOR_FLASH_DEV_NAME "norflash0"
/* ===================== Flash device Configuration ========================= */
extern const struct fal_flash_dev stm32_onchip_flash;
/* flash device table */
#define FAL_FLASH_DEV_TABLE \
{ \
&stm32_onchip_flash, \
}
/* ====================== Partition Configuration ========================== */
#ifdef FAL_PART_HAS_TABLE_CFG
/* partition table */
#define FAL_PART_TABLE \
{ \
{FAL_PART_MAGIC_WORD, "app", "onchip_flash", 0, 64*1024, 0},\
{FAL_PART_MAGIC_WORD, "para", "onchip_flash", 64*1024, 10*1024, 0},\
}
#endif /* FAL_PART_HAS_TABLE_CFG */
#endif /* _FAL_CFG_H_ */