查看: 5059|回复: 0

RT1050 -EVK 开发板上移植 EMWIN+FreeRTOS 问题

[复制链接]
  • TA的每日心情
    郁闷
    2018-5-29 09:32
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]初来乍到

    1

    主题

    5

    帖子

    0

    注册会员

    Rank: 2

    积分
    67
    最后登录
    2020-9-16
    发表于 2018-5-10 17:35:37 | 显示全部楼层 |阅读模式
    KEIL 工程链接时提示错误:Error: L6406E: No Space in execution regions with .ANY selector matching ....
    工程配置使用Linker 中 分散加载文件使用官方提供的
    1. #define m_interrupts_start             0x00000000
    2. #define m_interrupts_size              0x00000400

    3. #define m_text_start                   0x00000400
    4. #define m_text_size                    0x0001FC00

    5. #define m_data_start                   0x80000000
    6. #define m_data_size                    0x01E00000

    7. #define m_ncache_start                 0x81E00000
    8. #define m_ncache_size                  0x00200000

    9. /* Sizes */
    10. #if (defined(__stack_size__))
    11.   #define Stack_Size                   __stack_size__
    12. #else
    13.   #define Stack_Size                   0x0400
    14. #endif

    15. #if (defined(__heap_size__))
    16.   #define Heap_Size                    __heap_size__
    17. #else
    18.   #define Heap_Size                    0x08000
    19. #endif

    20. LR_m_text m_text_start m_text_size {   ; load region size_region
    21.   ER_m_text m_text_start m_text_size { ; load address = execution address
    22.     * (InRoot$Sections)
    23.     .ANY (+RO)
    24.   }
    25.   RW_m_data m_data_start m_data_size-Stack_Size-Heap_Size { ; RW data
    26.     .ANY (+RW +ZI)
    27.     *(m_usb_dma_init_data)
    28.     *(m_usb_dma_noninit_data)
    29.   }
    30.   RW_m_ncache m_ncache_start m_ncache_size { ; ncache RW data
    31.     * (NonCacheable.init)
    32.     * (NonCacheable)
    33.   }
    34.   ARM_LIB_HEAP +0 EMPTY Heap_Size {    ; Heap region growing up
    35.   }
    36.   ARM_LIB_STACK m_data_start+m_data_size EMPTY -Stack_Size { ; Stack region growing down
    37.   }
    38. }

    39. LR_m_interrupts m_interrupts_start m_interrupts_size {
    40.   VECTOR_ROM m_interrupts_start m_interrupts_size { ; load address = execution address
    41.     * (RESET,+FIRST)
    42.   }
    43. }
    复制代码

    我试着将 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

    对于分散加载并不是太懂,各路大神指点指点!


    哎...今天够累的,签到来了~
    回复

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /3 下一条

    Archiver|手机版|小黑屋|恩智浦技术社区

    GMT+8, 2025-7-20 16:45 , Processed in 0.076805 second(s), 19 queries , MemCache On.

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.

    快速回复 返回顶部 返回列表