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.

[参考译文] TDA4VH-Q1:Keywriter UART 更改为 WKUP_UART0_TXD

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1593596/tda4vh-q1-keywriter-uart-change-to-wkup_uart0_txd

器件型号: TDA4VH-Q1

您好的团队、

   我正尝试将 Keywriter 应用中的 UART Print 更改为 WKUP_UART0_TXD、 为此、我将代码更新到下面。 但我看不到任何打印件。 您能在这方面提供帮助吗?

int main()
{
    // int32_t status = CSL_EFAIL;
    // uint32_t debug_response  = 0U;
    // uint32_t *keywriter_cert = &keywr_end + 1U;
    UART_HwAttrs uart_cfg;

    /* padconfig unlock */
    mmr_unlock(WKUP_CTRL_BASE, 7);
    /* pinmux for R5 logs */
    //HW_WR_REG32(BOARD_MCU_UART_TX_PINMUX_ADDR, PIN_OUTPUT | PIN_MODE(0));
    /* pinmux for M3 logs */
    HW_WR_REG32(WKUP_UART_TXD_MUX_ADDR, PIN_OUTPUT | PIN_MODE(0));

    UART_socGetInitCfg(KEYWRITER_BOARD_UART_INSTANCE, &uart_cfg);
#if defined(SBL_COMBINED_BOOT)
    uart_cfg.frequency       = SBL_SYSFW_UART_MODULE_INPUT_CLK;
#else
    uart_cfg.frequency       = BOARD_UART_CLK_WKUP;//SBL_ROM_UART_MODULE_INPUT_CLK;
#endif
    uart_cfg.enableInterrupt = UFALSE;
    UART_socSetInitCfg(KEYWRITER_BOARD_UART_INSTANCE, &uart_cfg);
    UART_stdioInit(KEYWRITER_BOARD_UART_INSTANCE);

    UART_printf("%s (%s - %s)\n", OTP_VERSION_STR, __DATE__, __TIME__);

#if defined(SBL_COMBINED_BOOT)
    // OTP_sciClientCombinedBootInit();
    UART_printf("Combined Boot Mode\n");
#else
    // OTP_SciClientInit();
    UART_printf("Legacy Boot Mode\n");
#endif

    /*OTP_VppEn();

    UART_printf("Key programming sequence initialted\n");
    UART_printf("Taking OTP certificate from 0x%x\n",
                (uint32_t *)keywriter_cert);
    status = Sciclient_otpProcessKeyCfg((uint32_t *)keywriter_cert,
                                        SCICLIENT_SERVICE_WAIT_FOREVER,
                                        &debug_response);

    if (CSL_PASS != status)
    {
        UART_printf("Sciclient_otpProcessKeyCfg returns: %d\n", status);
    }

    UART_printf("Debug response: 0x%x\n", debug_response);*/

    UART_printf("Key programming sequence completed\n");

    //asm volatile (" wfi");

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

    您好、

    这似乎是重复的线程、我们将继续为新线程提供支持。

    立即关闭此主题...

    谢谢、

    Neehar