Hi,all.
I am using the DSPLINK 1_65_00_02,after I build and install , I can run the message example.But I can't run the readwrite example.
I found two method from this website:
method1: According to the link http://e2e.ti.com/support/embedded/bios/f/355/t/95736.aspx, it tell me write a small buf through PROC_Write without modify configfile is ok.
methor2: Accoring the link http://processors.wiki.ti.com/index.php/Writing_DSPLink_Application_using_PROC_read_and_write_APIs ,it said we should modify the config file .
If I only want to write a small buf to DSP,Does both the method is ok ?
By the way ,in my board ,linux kernel use 96M ,and the config file is like this:
/** ============================================================================
* @name DRVHANDSHAKEPOLLCOUNT
*
* @desc POLL Count for Driver handshake.
* ============================================================================
*/
#define DRVHANDSHAKEPOLLCOUNT ((Uint32) 0xFFFFFFFu)
/** ============================================================================
* @name RESETCTRLADDR
*
* @desc Indicates the start address of Reset Ctrl memory region.
* last two nibbles must be zero i.e. align to 256 boundary.
* ============================================================================
*/
#define RSTENTRYID 0u
#define RESETCTRLADDR 0x87E00000u
#define RESETCTRLSIZE 0x80u
/** ============================================================================
* @name CODEMEMORYADDR/CODEMEMORYSIZE
*
* @desc Indicates startaddress/size for dsplink code region.
* ============================================================================
*/
#define CODEENTRYID 1u
#define CODEMEMORYADDR (RESETCTRLADDR + RESETCTRLSIZE)
#define CODEMEMORYSIZE 0xFFF80u
/** ============================================================================
* @name SHAREDENTRYID/SHAREDMEMORYADDR/SHAREDMEMORYSIZE
*
* @desc Indicates startaddress/size for dsplink shared memory region.
* ============================================================================
*/
#define SHAREDENTRYID0 2u
#define SHAREDMEMORYADDR0 (CODEMEMORYADDR + CODEMEMORYSIZE)
#define SHAREDMEMORYSIZE0 0x5000u
/** ============================================================================
* @name SHAREDENTRYID/SHAREDMEMORYADDR/SHAREDMEMORYSIZE
*
* @desc Indicates startaddress/size for dsplink shared memory region.
* ============================================================================
*/
#define SHAREDENTRYID1 3u
#define SHAREDMEMORYADDR1 (SHAREDMEMORYADDR0 + SHAREDMEMORYSIZE0)
#define SHAREDMEMORYSIZE1 0x2B000u
/** ============================================================================
* @name POOLMEMORYADDR/POOLMEMORYSIZE
*
* @desc Indicates startaddress/size for dsplink POOL memory region.
* ============================================================================
*/
#define POOLENTRYID 4u
#define POOLMEMORYADDR (SHAREDMEMORYADDR1 + SHAREDMEMORYSIZE1)
#define POOLMEMORYSIZE 0x000D0000u
If I don't want modify the config file ,in the command
readwritegpp readwrite.out <DSP Address> <buffersize> <Number of iteraions> <DSP ID>
which value should I use for DSP Address?