Hi,
I am testing the GPIOs of 66AK2L06 DSP core0, in our custom board. I could not find EVM example projects for configuring direct GPIOs since example projects mention only GPIOs from FPGA. My reference is example projects in pdk_k2l_4_0_8.
My requirement is to configure GPIO6 and GPIO52. I found that power domain for GPIO peripheral is always on. I tried the following code but could not toggle the GPIOs.
static CSL_GpioHandle hGpio = (CSL_GpioHandle) CSL_GPIO_0_CFG_REGS;
//Set pinmux to GPIO52
CSL_BootCfgUnlockKicker();
*(volatile uint32_t*)(0x02620698) |= 0x00100000;//PINMUXCTRL2
CSL_BootCfgLockKicker();
CSL_GPIO_setPinDirOutput(hGpio, 6);
CSL_GPIO_setPinDirOutput(hGpio, 52);
CSL_GPIO_setOutputData (hGpio, 52);
CSL_GPIO_setOutputData (hGpio, 6);
CSL_GPIO_clearOutputData (hGpio, 52);
CSL_GPIO_clearOutputData (hGpio, 6);
Is there anything else to be done in my code?
Regards
Sreejaya