This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Accessing External Memory Devices

Hey all,

I am using uVision 3 and a Phytec 2294 board.

I have an external memory device connected to the phytec expansion board. The external device is using /CS0, although from talking to phytec, I am not sure if that is quite right.

I have set up the external memory space in the project options like so:
Start: 0x80000000 Size: 0x4

When I define a variable like :

#define volatile var x __at 0x8000000

and step through my code, any write/read to that variable doesnt seem to take place at the right addresses.

Can anyone give a clue as to what I may have missed?
Thanks

Doug

Parents
  • Dan,

    Actually, through some research, putting a value in that dialog does more harm than good.

    If I specify a range in there, I get :

    *** ERROR L107: ADDRESS SPACE OVERFLOW
        SPACE:   DATA
        SEGMENT: STACK
        LENGTH:  00000490H
    *** WARNING L23: UNRESOLVED EXTERNAL SYMBOLS
    *** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
        SYMBOL:  ?C?INIT
        ADDRESS: 0000010CH
    Program Size: data=1172 const=0 code=304
    Target not created
    

    If I leave it out, it compiles/links correctly.

    From the looks of my startup assembly file, it is running code from 0x00000000, im not sure if that is the right place to be starting from to do what I need to do or if it even matters.

    It doesnt appear that no matter what I do in the IDE, that it will even map the right addresses in the simulator.

    Doug

Reply
  • Dan,

    Actually, through some research, putting a value in that dialog does more harm than good.

    If I specify a range in there, I get :

    *** ERROR L107: ADDRESS SPACE OVERFLOW
        SPACE:   DATA
        SEGMENT: STACK
        LENGTH:  00000490H
    *** WARNING L23: UNRESOLVED EXTERNAL SYMBOLS
    *** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
        SYMBOL:  ?C?INIT
        ADDRESS: 0000010CH
    Program Size: data=1172 const=0 code=304
    Target not created
    

    If I leave it out, it compiles/links correctly.

    From the looks of my startup assembly file, it is running code from 0x00000000, im not sure if that is the right place to be starting from to do what I need to do or if it even matters.

    It doesnt appear that no matter what I do in the IDE, that it will even map the right addresses in the simulator.

    Doug

Children