Hi all,
I'm looking for options for locating variables at specific memory address (for external devices mapped via EMIF.) I'm familiar with using a pointer and assigning it the address but I'm looking for something where I can declare a variable and tell the linker where it should be. I found a page at that describes the LOCATION pragma but that seems not to work with CCS 6 and this processor. I can use the DATA_SECTION pragma and corresponding entry in the linker command file, but I'd really prefer to keep everything in one place and in the C/C++ source if possible. I've searched the compiler manual spru514j.pdf for a way to do this but was unable to find anything.
Is there a pragma or keyword that will locate a variable at an absolute address?
Thanks!