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.

[参考译文] CCS/66AK2L06:未配置 DFE GPIO 引脚

Guru**** 2595800 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/646845/ccs-66ak2l06-dfe-gpio-pins-not-configured

器件型号:66AK2L06

工具/软件:Code Composer Studio

我尝试将 DFE_GPIO 引脚配置为 GPIO

1.设置 pinmux 寄存器


volatile uint32_t *芯片 PinContrl_2=(volatile uint32_t *) 0x02620698; KICK0 = KICK0_UNLOCK; KICK1 = KICKKKK1_UNLOCK; UINT32_t 值=*芯片 PinContrl_2;//chip_PIN_CONTRAL_0; FFFFf ("在设置之前、"0x_2 =*控制0x_0X_PIN_0X";* 控制0x_0X_INTRL = 0x_INTRL_0X_INTRL =*控制0x_INTRL_0X_INTRL 寄存器= 0x_INTRL

2.初始化 GPIO

#define GPIO_CLOCK 引脚48 
CSL_GpioHandle ghGpio = NULL;

ghGpio = CSL_GPIO_open (0);
CSL_GPIO_setPinDirOutput (ghGpio、GPIO_clock_PIN);

CSL_GPIO_setPinDirInput (ghGpio、 GPIO_Cock_PIN);
CSL_GPIO_setRisingEdgeDetect (ghGpio、GPIO_Cock_PIN);
CSL_GPIO_setFallingEdgeDetect (ghGpio、GPIO_Cock_PIN);
CSL_GPIO_bankInterruptEnable (ghGpio、1);

printf ("0x%x\n"、ghGpio->Bank_Registers[1].DIR); 

我看到、GPIO DIR 寄存器始终处于输入状态。

时钟和电源 DFE 域处于"打开"状态

EMIF_GPIO 引脚配置正常、DFE_GPIO 不工作