Hi all,
- I need to Configure the interface GPMC to DSP is possible in AM3352 or not.
- If possible, Please specify the steps, how to configure, i read the document of all configuration GPMC and external memory peripherals present in the AM3352 datasheet.
In Code ******************
1st Dought
/**
* \brief This function sets the chip select mask address or size.\n
*
* \param baseAddr Memory address of GPMC.\n
*
* \param csNum Chip Select Number.\n
* This can take one of the following values :\n
* GPMC_CHIP_SELECT_0 -- For Chip Select 0.\n
* GPMC_CHIP_SELECT_1 -- For Chip Select 1.\n
* GPMC_CHIP_SELECT_2 -- For Chip Select 2.\n
* GPMC_CHIP_SELECT_3 -- For Chip Select 3.\n
* GPMC_CHIP_SELECT_4 -- For Chip Select 4.\n
* GPMC_CHIP_SELECT_5 -- For Chip Select 5.\n
* GPMC_CHIP_SELECT_6 -- For Chip Select 6.\n
* GPMC_CHIP_SELECT_7 -- For Chip Select 7.\n
*
* \param addrMask Address Mask to set. \n
* This can take one of the following values :\n
* GPMC_CS_SIZE_256MB -- For Chip-select size of 256 MB.\n
* GPMC_CS_SIZE_128MB -- For Chip-select size of 128 MB.\n
* GPMC_CS_SIZE_64MB -- For Chip-select size of 64 MB.\n
* GPMC_CS_SIZE_32MB -- For Chip-select size of 32 MB.\n
* GPMC_CS_SIZE_16MB -- For Chip-select size of 16 MB.\n
*
* \return None.\n
*
*/
void GPMCMaskAddrSet(unsigned int baseAddr, unsigned int csNum,
unsigned int addrMask)
{
HWREG(baseAddr + GPMC_CONFIG7(csNum)) &= (~GPMC_CONFIG7_0_MASKADDRESS);
HWREG(baseAddr + GPMC_CONFIG7(csNum)) |= ((addrMask <<
GPMC_CONFIG7_0_MASKADDRESS_SHIFT)
& GPMC_CONFIG7_0_MASKADDRESS);
}
- In the CS configuration time must mentioned the CS mask address setting and Base address, i give the Base address 0x2F and how to give CS mask address of external device of DSP processor (this is a processor not a NAND and NOR flash).
- How to give the size of CS to connected on external peripheral for DSP?
- How to mentioned third argument for DSP processor?
2nd dought:-
/**
* \brief This function configs the timing parameters for WE# and OE# signal.\n
*
* \param baseAddr Memory address of GPMC.\n
*
* \param csNum Chip Select Number.\n
* This can take one of the following values :\n
* GPMC_CHIP_SELECT_0 -- For Chip Select 0.\n
* GPMC_CHIP_SELECT_1 -- For Chip Select 1.\n
* GPMC_CHIP_SELECT_2 -- For Chip Select 2.\n
* GPMC_CHIP_SELECT_3 -- For Chip Select 3.\n
* GPMC_CHIP_SELECT_4 -- For Chip Select 4.\n
* GPMC_CHIP_SELECT_5 -- For Chip Select 5.\n
* GPMC_CHIP_SELECT_6 -- For Chip Select 6.\n
* GPMC_CHIP_SELECT_7 -- For Chip Select 7.\n
*
* \param conf Configuration value for WE# and OE# signal timing
* Parameters. Use the GPMC_WE_OE_TIMING_CONFIG macro to
* get the value of conf. \n
*
* \return None.\n
*
*/
void GPMCWEAndOETimingConfig(unsigned int baseAddr, unsigned int csNum,
unsigned int conf)
{
HWREG(baseAddr + GPMC_CONFIG4(csNum)) = conf;
}
- Here, the third argument is MACRO, i used that macro i am getting compilation error.
- Please specify how to use third argument of above WE and OE function.?
Thanks in advance,
Vamsi.