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.

AM623: Keywriter application drive GPIO failed

Part Number: AM623

Hi TI-expert,

In out design, we need pull GPIO high to drive Vpp for Keywriter.

We use GPIO1_49 to verify the ability of "Keywriter drive GPIO".

However it didn't work, could you help to check this problem?

#define GPIO_LED_BASE_ADDR CSL_GPIO1_BASE
#define GPIO_LED_PIN 49
    gpioBaseAddr = (uint32_t) AddrTranslateP_getLocalAddr(GPIO_LED_BASE_ADDR);
    gpioPinNum = GPIO_LED_PIN;
    GPIO_setDirMode(gpioBaseAddr, gpioPinNum, GPIO_DIRECTION_OUTPUT);
    while(i++<10)
    {
        DebugP_log("gpio1_49 high\r\n");
        GPIO_pinWriteHigh(gpioBaseAddr, gpioPinNum);
        ClockP_sleep(2);
        DebugP_log("gpio1_49 low\r\n");
        GPIO_pinWriteLow(gpioBaseAddr, gpioPinNum);
        ClockP_sleep(2);
    }

Best regards,

Andy

  • After add pinmux setting in example.syscfg, this problem solved.

    const gpio        = scripting.addModule("/drivers/gpio/gpio", {}, false);
    const gpio1       = gpio.addInstance();
    gpio1.pinDir                   = "OUTPUT";
    gpio1.$name                    = "GPIO_LED";
    gpio1.GPIO.$assign            = "GPIO1";
    gpio1.GPIO.gpioPin.$assign    = "ball.C17";