DSPRelated.com
Forums

can CC simulator simulate external memory?

Started by tririverj June 25, 2002
Hello.
I'm a green hand.
I wish to get help from you.
Thanks in advance.

I used CC 4.10.37.
My CMD code is:
-c
-o sample.out
-m sample.map
-stack 200
sample.obj meminit.obj -l rts30.lib

MEMORY
{
RAM0 : org = 0x410000, len = 0x400
RAM1 : org = 0x809C00, len = 0x400
}

SECTIONS
{
.text : {} > RAM0
.bss : {} > RAM0
.data : {} > RAM1
.stack: {} > RAM1
}

When I load the program,the CC display:
Trouble writting target DSP memory
Error number -2140
Error address 410000
But when I replace the RAM0 with "org=0x809800",everything is ok.
Why?
Can CC simulator simulate external memory?

Thanks.



Yes, the simulator can simulate external memory, but have you enabled it (IE
enable memory map)?

Something that is often overlooked is that for a memory space to be
recognized you must a) define it b) close code composer c) restart code
composer. And yes I agree this is a pain.

Other things to consider

- Which simulator are you using? The last one that was being worked on was
for the VC33. This is a valid simulator even if you are simulating a C31
since the VC33 is essentialy a C31, plus the addition of 32K words of on
chip SRAM.

- Memory mapped register can also cause trouble. Basicaly access to
external memory requires the simulation of the bus control register. And
being memory mapped, it must be allocated in the simulators memory map.

Best regards,
Keith Larson
-----------------------------------
At 03:40 PM 6/25/02 -0000, you wrote:
Hello.
I'm a green hand.
I wish to get help from you.
Thanks in advance.

I used CC 4.10.37.
My CMD code is:
-c
-o sample.out
-m sample.map
-stack 200
sample.obj meminit.obj -l rts30.lib

MEMORY
{
RAM0 : org = 0x410000, len = 0x400
RAM1 : org = 0x809C00, len = 0x400
}

SECTIONS
{
.text : {} > RAM0
.bss : {} > RAM0
.data : {} > RAM1
.stack: {} > RAM1
}

When I load the program,the CC display:
Trouble writting target DSP memory
Error number -2140
Error address 410000
But when I replace the RAM0 with "org=0x809800",everything is ok.
Why?
Can CC simulator simulate external memory?

Thanks.
+-----------+
|Keith Larson |
|Member Group Technical Staff |
|Texas Instruments Incorporated |
| |
| 281-274-3288 |
| |
| www.micro.ti.com/~klarson |
|-----------+
| TMS320C3x/C4x/VC33 Applications |
| |
| TMS320VC33 |
| The lowest cost and lowest power 500 uw/mflop |
| floating point DSP on the planet! |
+-----------+