AnsweredAssumed Answered

How to define variable to external RAM?I am using K60 MQX4.1 CW10.4 GCC compiler.

Question asked by W XY on Oct 20, 2014
Latest reply on May 8, 2015 by gorakk

How to define variable to external RAM?I am using K60 MQX4.1 CW10.4 GCC compiler.

intflash.ld add

exram       (RW): ORIGIN = 0xA0000000, LENGTH = 0x00040000

and

.my_mram :

    {

. = ALIGN (0x4);

*(.vectors_exram)

. = ALIGN (0x4);

    } > exram

 

And then in my programs

__attribute__((section(".vectors_exram"))) uint8 test[100];

this is error!。

What do I do?

thanks

Outcomes