Access symbols defined in the linker script by application

前端 未结 3 2259
一整个雨季
一整个雨季 2020-12-25 13:22

In my linker script file, I have defined two symbols

define symbol _region_RAM_start__     = 0xC0000000;
define symbol _region_RAM_end__       = 0xC00fffff;         


        
3条回答
  •  Happy的楠姐
    2020-12-25 13:47

    Since they are generic address symbols you are trying to access and not necessarily pointers to a specific type, you don't want to declare them unsigned int, rather declare them as

    extern void _region_RAM_START;

    then &_region_RAM_START will have the appropriate type 'void *'.

提交回复
热议问题