sdk里面默认的sbl的app位置是256K。所以你的boot代码不是默认的sbl,所以只烧写默认sbl能启动不说明问题。
/**
* @brief This is offset in flash at which the application metaimage will be stored.
*/
#define SBL_METAIMAGE_OFFSET (256U * 1024U)
SBL代码提供的是源码,里有下面的限制,你可以自行修改。
sbl.h
/**
* @brief This is the maximum size of the application metaimage which the SBL will attempt to flash.
* This define protects against erraneously overwriting the backup default image.
*/
#define SBL_MAX_METAIMAGE_SIZE (1024U * 1024U)