解决 Error L6915E 问题


出现以下错误:
Error: L6915E: Library reports error: The semihosting __user_initial_stackheap cannot reliably set up a usable heap region if scatter loading is in use
 
__user_initial_stackheap应该是一个初始化堆栈的函数,这个函数被__user_setup_stackheap取代,我们需要自己重新定义这个函数来解决这个问题,或者在scatter file中定义一个ARM_LIB_HEAP或ARM_LIB_STACK域。
然后打开test.scf,在里面加上一个段:
ARM_LIB_STACKHEAP 0x0 EMPTY 0 {}
例如:

; *************************************************************
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************

LR_ROM1 0x20008000 0x02000000 ;load region size_region
{
ER_ROM1 0x20008000 0x00FF8000 ;load address = execution address
{
*.o (RESET, +First)
.ANY (+RO +RW +ZI)
}
RW_RAM1 0x21000000 0x01000000
{
.ANY( +ZI)
}
ARM_LIB_STACKHEAP 0x0 EMPTY 0 {}
}


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM