This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM8168 裸机调试GPIO作为普通IO输出 ,设置PINCTRLn寄存器设置不成功

Other Parts Discussed in Thread: SYSCONFIG

大家好,新人报道。      本人调试DM8168的GPIO时,将设置值写入寄存器后,查看寄存器值 未成功写入。使用调试环境是CCS 5.5.0。

  1、时钟频率设置使用默认evm816x.gel设置     ( Fin=27MHz晶体)

   2、实现功能是GP1[1]口作为 输出口,输出高低电平。

  3、个人思路:1、设置CM_ALWON_GPIO_1_CLKCTR      *(unsigned int *)0x48141560 = 0x02;  //

                         2、设置GPIO_SYSCONFIG                          *(unsigned int *)0x4804c010 = 0x19;     

                         3、设置GPIO_CTRL                                      *(unsigned int *)0x4804c130 =0x04;  //  

                         4、设置GP1[1]为输出                                      *(unsigned int *)0x4804c134 &= 0xfffffff9;  //

                         5、配置PINCTRL158复用引脚为GP1[1]          *(unsigned int *)0x48140a74 = 0x0a;  //GP1[1] 不可以写入

JTAG调试时,通过查看memory方法,查看相应寄存器内容。发现CM_ALWON_GPIO_1_CLKCTR     、PINCTRL158 写入失败,而其他成功写入。想请教一下,设置这两个寄存器有什么特定要求吗?我的思路是否有不妥的地方,请指正。谢谢