Other Parts Discussed in Thread: OMAP3530
Hi, I'm in hard time for using I2C , SPI protocol in DSP side of OMAP3530 EVM.
I used the driver code of ITBOK provided in mistralsolution.com, and I could find that the driver code worked well when I tested LEDs on or off using gpio.
First, I configured the pin mux setting for gpio (at the address 0x4800216C, 0x48002170), and then I initialized the gpio pin output enable (at the addr. 0x49056034), and the last, I set the gpio output data (1 or 0) (at 0x4905 603C). So I found the LEDs were on or off. It works well.
However, when I try the same action for the I2C, or SPI protocol, I couldn't get a right result.
The following is what I did for I2C controlling:
1. I2C3 pin configuration mux setting
2. Clear the I2C status register
3. Setting the SCL clock for 400kbps. I tried to set the value to the I2C_PSC_OFFSET, SCLL, SCLH register (at addr. 0x48060030, 0x48060034, 0x48060038), but I couldn't modify the value of this address. It seems to deny the external access to the memory address. What can I do for that? In OMAP3530 Technical Reference Manual, the address space of L4_Core and L4_Periperal is about 0x48000000, 0x49000000, and I modified the $DSPLINK\config\all\CFG_OMAP3530_SHMEM.c for adding the L4_CORE and L4_Periperal memory region to the LINKCFG_memTable.