- used the RENAMECLASSE control at the top of my 'Debug.c' file and allocated some XRAM memory as follows
#pragma RENAMECLASS(SDATA = XRAM)
#pragma NOINIT
static int sdata Temp[20];
The resulting .m66 file looks encouraging ...
START STOP LENGTH TYPE RTYP ALIGN TGR GRP COMB CLASS SECTION NAME
=====================================================================================
00C000H 00C027H 000028H DATA REL WORD --- 2 PUBL XRAM ?SD?DEBUG
But it doesn't work - the XRAM is not accessible. Any ideas anyone ??
I don't have any trouble with XRAM at addres 0xE000. I only have trouble accessing the XRAM at 0xC000.
Read-Only
Author Brad Holeman
Posted 6-Dec-2004 17:40 GMT
Toolset C166
RE: C167CS - can't access XRAM @0xC000
Brad Holeman
I would double check to make sure that you are indeed enabling all of XRAM.
MOV XPERCON,#0C03H ; Enable CAN 1 and CAN 2 Xbus peripherals
; Enable XRAM 2 KByte memory
; Enable XRAM 6 KByte memory
NOP
NOP
MOV SYSCON,#8184H ; Stack size = 512 words
; Internal rom starts at 00'0000
; Segmentation enabled
; Internal rom disabled
; BHE pin enabled
; Clock out pin enabled
; WR is write low, BHE is write high
; Xbus peripherals are enabled
; Xbus accesses are not visible on external bus
; Xbus peripherals not accessable on external bus
Additionally try this in your linker file,
SDATA0 (C000H-D7FFH, E000H-E7FFH)
Read-Only
Author Brad Holeman
Posted 6-Dec-2004 19:32 GMT
Toolset C166
RE: C167CS - can't access XRAM @0xC000
Brad Holeman
Hari,
The above works for sure because we are using with our C167CS.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.