DSPRelated.com
Forums

DSK6713 Accessing a valid address

Started by miha...@yahoo.com April 22, 2014
First of all hello. I'm new here.

I am using the DSK 6713 and I have to access a valid address to get a value from there on which to do some bit operations. My question is how should i choose this random address to get the value from.

_____________________________________
mihai,

I would suggest accessing one of the clocks, like the system clock.

That would give you the most random value,
especially as RAM tends to powerup to the same value(s) on a repeatable basis.

R. Williams

---------- Original Message -----------
From: m...@yahoo.com
To: c...
Sent: Tue, 22 Apr 2014 09:51:16 -0400
Subject: [c6x] DSK6713 Accessing a valid address

> First of all hello. I'm new here.
>
> I am using the DSK 6713 and I have to access a valid address to get a
> value from there on which to do some bit operations. My question is
> how should i choose this random address to get the value from.
------- End of Original Message -------

_____________________________________
the 6711 has internal memory from 0-0x2FFFF and external memory beginning
at 0x80000000. You can use any valid memory address that is outside of the
memory space used by your program.

mikedunn
On Tue, Apr 22, 2014 at 8:51 AM, wrote:

> First of all hello. I'm new here.
>
> I am using the DSK 6713 and I have to access a valid address to get a
> value from there on which to do some bit operations. My question is how
> should i choose this random address to get the value from.
>
>

--
www.dsprelated.com/blogs-1/nf/Mike_Dunn.php
That's what i went with. I chose one from 000 0000 – 0002 FFFF and said it was from that range. Didn't manage to use the clock, i'm still only learning.

_____________________________________
Have a look at the DSK documentation to find memory addressmost probably 0x8000 0000

> From: m...@yahoo.com
> To: c...
> Date: Tue, 22 Apr 2014 10:22:36 -0400
> Subject: [c6x] DSK6713 Accessing a valid address
>
> Hello
>
> I need to access a value from memory and do some operations to the value. Question is how do i choose a valid address on the DSK6713 so that it brings back a good int.
>
>
> _____________________________________
mihai,

Int's are on a 4 byte boundary.
So...
--chose an address within the memory map of the RAM.
--chose an address that is not within the currently specified L1/L2 memory ranges
--The Least Significant 2 bits of the address should be 0

Note:
non-aligned integer memory fetches are possible, but are a real CPU cycle waster.

code could look similar to this:
int memValue;
const *memAddress = ???;

int main( int argc, char *argv[] )
{
memValue = *memAddress;
}

R. Williams
---------- Original Message -----------
From: m...@yahoo.com
To: c...
Sent: Tue, 22 Apr 2014 10:22:36 -0400
Subject: [c6x] DSK6713 Accessing a valid address

> Hello
>
> I need to access a value from memory and do some operations to the
> value. Question is how do i choose a valid address on the DSK6713 so
> that it brings back a good int.
------- End of Original Message -------

_____________________________________