Skip to main content
Visitor II
August 5, 2004
Question

Problem with XRAM2 mapping

  • August 5, 2004
  • 3 replies
  • 900 views
Posted on August 05, 2004 at 14:03

Problem with XRAM2 mapping

    This topic has been closed for replies.

    3 replies

    stephane2Author
    Visitor II
    July 30, 2004
    Posted on July 30, 2004 at 13:21

    Hello,

    We are currently using a ST10 269 and began porting/adapting SW

    to a 272b.

    We are using Tasking 8 with Hitex Emulator 4.

    Actually we have a start.asm file with XRAM2 declared in D0000 inside the external RAM of 256k ( A0000 - DFFFF).

    In that case the XRAM2 is accessible.

    But XRAM2 is not our external RAM

    and should be outside the external RAM range

    (e.g. 90000 with XEMU0=B930 and XADDRS3=9006) which doesn't work, What is the reason ?

    Here is our configuration and part of the start.asm file :

    In tasking, 2 RAM ranges are defined : 16K in D0000 and 128K in B0000

    MOV R7,0x040D

    MOV XPERCON, R7

    BFLDL SYSCON, 0xFF, 0x0414&0xFF

    BFLDH SYSCON, 0xFF, (0x0414>>

    &0xFF

    MOV R7,0xBD30 ; 16K XRAM2 in D0000

    MOV XEMU0,R7

    MOV ADDRSEL1, 0x1A06 ; External range : 256K from A0000

    .....

    MOV R7,0xD006

    MOV XADRS3, R7 ; 16K XRAM2 in D0000

    @IF( ( 0x040D & 0x07D3 ) * ( 0x0414 & 0x0004 ) )

    @_MOVE ( XPEREMU, 0x040D, R0 ) ; initialize XPEREMU

    @ENDI

    Thanks in advance,

    Stephane.

    Visitor II
    August 3, 2004
    Posted on August 03, 2004 at 06:52

    Hello,

    I think this is due to the emulator. According to the maneer used by the emulator supplier to implement functions, you should configure the emulator using a special menu to remap XRAM2 and not by writing in XADRS3 register.

    The emulator doesn't use the ST10 XRAM but a RAM memory which replaces it. Only ST10 peripherals and CPU are used. So, you should verify with the emulator supplier how to configure it.

    I hope this will help you.

    Najoua
    stephane2Author
    Visitor II
    August 5, 2004
    Posted on August 05, 2004 at 14:03

    Hi,

    We try to write in XADRS3 before enabling XRAM2 in SYSCON and XPERCON registers but it doesn't change anything.

    We try now to have information from our emulator supplier.

    Thank you very much for your help.

    Stephane