在线时间9 小时
UID3373512
注册时间2018-5-7
NXP金币0
TA的每日心情 | 郁闷 2018-5-29 09:32 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]初来乍到
注册会员

- 积分
- 67
- 最后登录
- 2020-9-16
|
KEIL 工程链接时提示错误:Error: L6406E: No Space in execution regions with .ANY selector matching ....
工程配置使用Linker 中 分散加载文件使用官方提供的
- #define m_interrupts_start 0x00000000
- #define m_interrupts_size 0x00000400
- #define m_text_start 0x00000400
- #define m_text_size 0x0001FC00
- #define m_data_start 0x80000000
- #define m_data_size 0x01E00000
- #define m_ncache_start 0x81E00000
- #define m_ncache_size 0x00200000
- /* 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 0x08000
- #endif
- LR_m_text m_text_start m_text_size { ; load region size_region
- ER_m_text m_text_start m_text_size { ; load address = execution address
- * (InRoot$Sections)
- .ANY (+RO)
- }
- RW_m_data m_data_start m_data_size-Stack_Size-Heap_Size { ; RW data
- .ANY (+RW +ZI)
- *(m_usb_dma_init_data)
- *(m_usb_dma_noninit_data)
- }
- RW_m_ncache m_ncache_start m_ncache_size { ; ncache RW data
- * (NonCacheable.init)
- * (NonCacheable)
- }
- ARM_LIB_HEAP +0 EMPTY Heap_Size { ; Heap region growing up
- }
- ARM_LIB_STACK m_data_start+m_data_size EMPTY -Stack_Size { ; Stack region growing down
- }
- }
- LR_m_interrupts m_interrupts_start m_interrupts_size {
- VECTOR_ROM m_interrupts_start m_interrupts_size { ; load address = execution address
- * (RESET,+FIRST)
- }
- }
复制代码
我试着将 m_text_size 改大后能编译通过,编译结果: Program Size: Code=67216 RO-data=208940 RW-data=1180 ZI-data=1862672 .
但是Debug时候,Loading Code 到一半出错了。 。。。 ERROR :CMSIS-DAP-Cortex-M Error , Cannot access target , Shutting down debug session
对于分散加载并不是太懂,各路大神指点指点!
|
|