Microlib & Stdlib内存模型区别

KEIL Undefined symbol __use_two_region_memory

1. Microlib does not support selectable one or two region memory models as the standard library (stdlib) does.

2.Microlib provides only the two region memory model with separate stack and heap regions.

https://www.keil.com/support/man/docs/armclang_lib/armclang_lib_chr1358938938431.htm

__use_two_region_memory

;DEFINE BELOW VAR TO INIT SEPARATE STACK AND HEAP
    ARM_LIB_HEAP    0x00810000-8192 EMPTY 4096-4
    {
    } 
    ARM_LIB_STACK   0x00810000-4096 EMPTY 2048-4
    {
    }
	target_link_options(media PUBLIC
    --debug --strict --no_remove --entry 0 --no_startup
    --map --info totals --debug --list_mapping_symbols
    --symbols
    --scatter ${CMAKE_CURRENT_LIST_DIR}/${SCATFILE}
    --library_type=microlib
)
上一篇:error C2059: 语法错误:“类型”


下一篇:函数防抖与函数节流