This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

请问flash内地址操作的问题



请问一下# pragma location="RAM_PASSWORD"    

与  

extern        uint16_t     _App_Start; // Address of Application start

区别,是不是两种方法都可以对flash内对应的地址进行数值操作呢?

其中在flash内对应的地址如下(.xcl 文件内flash划分)

// RAM Start Address:
-D_RAM_START=200

// Address of RAM Password (2B)

-D_RAM_PASSWORD_ADDR=_RAM_START

// Flash Start Address:
-D_FLASH_START=C000

// Application Start address (after checksum)
-D_App_Start=(_FLASH_START+3)