NXP LPC 外部flash IAP APP修改点
原创
©著作权归作者所有:来自51CTO博客作者wx638ef1cfb1448的原创作品,请联系作者获取转载授权,否则将追究法律责任
增加m_bootloader_offset 为偏移20KB,此20KB存放bootloader,偏移20KB开始存放APP。
LPC54XXX_SPIFI_flash.scf
*/
#define m_bootloader_offset (20*1024) /*20KB 32KB for bootloader. */
/* USB BDT size */
#define usb_bdt_size 0x0
/* Sizes */
#if (defined(__stack_size__))
#define Stack_Size __stack_size__
#else
#define Stack_Size 0x0400
#endif
#if (defined(__heap_size__))
#define Heap_Size __heap_size__
#else
#define Heap_Size 0x0400
#endif
#if (defined(XIP_IMAGE))
#define m_interrupts_start 0x10000000+m_bootloader_offset
#define m_interrupts_size 0x000001CC
#else
#define m_interrupts_start 0x00000000
#define m_interrupts_size 0x000001CC
#endif
#if (defined(XIP_IMAGE))
#define m_text_start 0x100001CC+m_bootloader_offset
#define m_text_size 0x00FFFE34-m_bootloader_offset
#else
#define m_text_start 0x000001CC
#define m_text_size 0x0002FE34
#endif