#define FAL_PART_HAS_TABLE_CFG这个宏定义是在rtconfig.h里面的
FAL_PART_TABLE是在fal_cfg.h里面的
参考下面的分区表,修改为自己需要的就可以了
#ifdef FAL_PART_HAS_TABLE_CFG
/* partition table */
#define FAL_PART_TABLE
{
{FAL_PART_MAGIC_WORD, "bl", "stm32_onchip", 0, 32 * 1024, 0},
{FAL_PART_MAGIC_WORD, "app1", "stm32_onchip", 32 * 1024, 112 * 1024, 0},
{FAL_PART_MAGIC_WORD, "app2", "stm32_onchip", 32 * 1024, 112 * 1024, 0},
{FAL_PART_MAGIC_WORD, "blel", "fram", 0, 4 * 1024, 0},
{FAL_PART_MAGIC_WORD, "appel", "fram", 4 * 1024, 12 * 1024, 0},
}
#endif /* FAL_PART_HAS_TABLE_CFG */
#endi
#define FAL_PART_HAS_TABLE_CFG这个宏定义是在rtconfig.h里面的
FAL_PART_TABLE是在fal_cfg.h里面的
参考下面的分区表,修改为自己需要的就可以了
#ifdef FAL_PART_HAS_TABLE_CFG
/* partition table */
#define FAL_PART_TABLE
{
{FAL_PART_MAGIC_WORD, "bl", "stm32_onchip", 0, 32 * 1024, 0},
{FAL_PART_MAGIC_WORD, "app1", "stm32_onchip", 32 * 1024, 112 * 1024, 0},
{FAL_PART_MAGIC_WORD, "app2", "stm32_onchip", 32 * 1024, 112 * 1024, 0},
{FAL_PART_MAGIC_WORD, "blel", "fram", 0, 4 * 1024, 0},
{FAL_PART_MAGIC_WORD, "appel", "fram", 4 * 1024, 12 * 1024, 0},
}
#endif /* FAL_PART_HAS_TABLE_CFG */
#endi
举报