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.

Access memory region 0x60000000 through 0x9FFFFFFF

Other Parts Discussed in Thread: CC2538

Hi, all

According to:
CC2538 System-on-Chip Solution for 2.4-GHz IEEE 802.15.4 and ZigBee®/ZigBee IP® Applications, Table 4-2 Memory Access Behavior
The CC2538 can access memory region from 0x60000000 through 0x9FFFFFFF.
But we don't know how to do this.
Do you have any sample code for access these memory region?
Thank you for your great support
-Regard, Mark
  • Hi,
    that region is reserved for execution from external memory access, and not for the internal SRAM. We don't recommend using it, as we recommend code is executed from the code region in internal flash.
    Thanks,
    TheDarkSide
  • Hi,

    Yes, we know that region is reserved for external memory,
    because we want to execution from external memory access, so that we need to access these region,

    For now on, we can read/write external sram from SSI interface, but we don't know how to access 0x60000000~0x9FFFFFFF

    We know how to declare shown as below:
    ----------------------------------------------------------------------------------------------------------------------------------
    _Pragma("location=\"EXSRAM\"") <--- EXSRAM symbol declare in cc2538.icf file
    int exsram;

    int main(void)
    {
    exsram = 1; <-- when we add this line, cc2538 will crash
    return 0;
    }
    -----------------------------------------------------------------------------------------------------------------------------------

    Do you have any comment for this operation?
    Thank you for your help.
  • Hi, we want to put the variable to external sram(microchip 23k256), we can declare variable use #pragma location, but we don't know how to initialize sram controller in ResetIsr, Is anyone know about this??