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.

[参考译文] PROCESSOR-SDK-J7200:PROCESSOR-SDK-J7200

Guru**** 2539500 points
Other Parts Discussed in Thread: UNIFLASH

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1033603/processor-sdk-j7200-processor-sdk-j7200

器件型号:PROCESSOR-SDK-J7200
主题中讨论的其他器件:UNIFLASH

您好!

环境:

J7200 + NorFlsah (MT35X)

UART 通道:WKUP_UART0

SDK:TI-processor-sdk-rtos-j7200-evm-07_03_00_07

当我们尝试使用 uniflash_6.4.0将闪存编程器下载到 j7200板、 然后使用此编程器下载我们希望使用 WKUP_UART0对闪存器件或闪存器件的代码时。 当我们下载 uniflash_6.4.0\processors\FlashWriter\j7200_evm\uart_j7200_evm_flash_programmer_release.tiimage 和 sysFirmWare 时、似乎可以、之后我们下载了我们自己期望的代码。 它失败了

它使我们感到困惑,我们不知道为什么?  我们需要帮助。

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

    您好!

    请遵循以下文档并按照所述的相同命令操作。 我看到您正在使用一些超出所需的额外参数。 这可能会造成问题。

    文档- https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/07_00_00_11/exports/docs/pdk_jacinto_07_00_00/docs/userguide/board/uniflash.html#getting-started-with-uniflash

    常见问题解答- e2e.ti.com/.../faq-tda4vm-segmentation-fault-while-flashing-using-uniflash

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

    您好!

    我们的测试环境是 Windows 10。 您向我展示的日志位于 Linux 中。 我将测试您提供的日志。

    对于我们的应用,我们希望通过 UART 进行设置,因此第一步,在电路板通电后,我已经将闪存编程器下载到电路板上(驱动程序 OSPI 接口和 UART 通道,我们希望从中下载代码)。

    编程器下载完成后、它可以支持我们通过 Opsi 接口将代码下载到 norflash。 因此,为此目的,我给出的命令是对的? 还有其他原因吗?

    D 3 (OSPI)

    -o 0 (偏移)

    -I 5 (客户图像。)

    我不知道为什么它总是指示"Configuration Failed"(配置失败)

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

    您好!

    [引用 userid="497654" URL"~/support/processors-group/processors/f/processors-forum/1033603/processor-sdk-j7200-processor-sdk-j7200/3821786 #3821786"]因此,电路板通电后的第一步,我已经将闪存编程器下载到电路板上

    您处于哪种引导模式? 加载闪存编程器时、您必须处于 UART 引导模式。 有关 DIP 开关设置、请参阅此文档。

    我使用了来自最新 SDK 的以下命令、对我来说没问题(闪烁 LED 诊断)。 您能否确认相同。

    dslite.bat --mode processors -c COM18 -f C:\ti\uniflash_6.4.0\processors\FlashWriter\j721e_evm\uart_j721e_evm_flash_programmer_release.tiimage -i 0
    
    dslite.bat --mode processors -c COM18 -f C:\ti\ti-processor-sdk-rtos-j721e-evm-08_00_00_12\pdk_jacinto_08_00_00_37\packages\ti\boot\sbl\binary\j721e_evm\ospi\bin\sbl_ospi_img_mcu1_0_release.tiimage -d 3 -o 0
    
    dslite.bat --mode processors -c COM18 -f C:\ti\ti-processor-sdk-rtos-j721e-evm-08_00_00_12\pdk_jacinto_08_00_00_37\packages\ti\drv\sciclient\soc\V1\tifs.bin -d 3 -o 80000
    
    dslite.bat --mode processors -c COM18  -f C:\ti\ti-processor-sdk-rtos-j721e-evm-08_00_00_12\pdk_jacinto_08_00_00_37\packages\ti\board\src\flash\nor\ospi\nor_spi_patterns.bin -d 3 -o 3FE0000
    
    dslite.bat --mode processors -c COM18 -f C:\ti\ti-processor-sdk-rtos-j721e-evm-08_00_00_12\pdk_jacinto_08_00_00_37\packages\ti\binary\board_diag_led\bin\j721e_evm\board_diag_led_mcu1_0_release.appimage -d 3 -o 100000
    

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

    从 UART 模式启动。

    因此、您可以从我的日志中看到闪存编程器可以成功下载。 但 下载我自己的映像时出现问题。

    我看到了来自"ti-processor-sdk-rtos-j7200-evm-07_03_00_07\pdk_j7200_07_03_00_29\packages/ti\board\utils\uniflash\hostt\source "的源代码、ProcessorSDKSerialFlash.cpp

    其中有一个报告为“配置失败!”的代码,如下所示:

    int SerialPort::connect( wchar_t*设备,unsigned int 波特率,int hwFlowCtrl,int rawMode )

       if (!(GetCommState (serialPortHandle、&DCB)))
       {
          COUT <<"GetComm Failed!"(Cout <<GetComm 失败!) << endl;
          返回 ERR_COMSTAT;
       }

       db.baudrate =波特率;
       DCB.奇偶校验=无校验;
       dCB.stopbits = ONESTOPBIT;
       DCB ByteSize = 8;
       DCB.fParity = 0;
       DCB.XoffChar = 19;
       DCB.XonChar = 17;
       dCB.fOutxCtsFlow = hwFlowCtrl;
       DCB。fOutxDsrFlow = 0;
       db.fDtrControl = 0;
       DCB。fDrSensitivity = 0;
       DCB.fTXContinuueOnXoff = 0;
       db.frtsControl = hwFlowCtrl;
       DCB.XonLim = 0;
       DCB.XoffLim = 0;

       #ifdef 调试
       Cout << endl <<"Configuring COM Port!"(配置 COM 端口!) << endl;
       #endif
       if (!SetCommState (serialPortHandle、&DCB))
       {
          ERROR=ERR_COMSTAT;
          Cout << endl <<"Configuration failed!"(Cout << endl <<配置失败!) << endl;
       }

    在我的计算机中、上面的代码未能设置我的 PC 串行端口。 我不知道为什么。  我是否有任何方法来测试该代码。 或者、我们有任何版本可提供更多调试信息来查找发生了什么情况?

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

    大家好、我已经尝试过您所展示的内容、但仍然失败了。

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

    您好!  

    您能否尝试使用我在最新 SDK 中给出的命令、即8.0

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

    您好!

    我已经使用 J721_EVM 尝试过它(SDK,即8.0),它可以正常工作。

    但我们期望它在我们的电路板(J7200)中会出现问题、但它仍然无法正常工作。 "配置失败"似乎是 PC 串行端口 端驱动程序故障。 计算机端报告故障、无需 等待电路板的任何反馈。

    是否可以告诉我如何调试软件 uniflash_6.4.0以测试计算机发生的情况?

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

    您好!

    我在内部检查了您的用例、发现它适用于具有 SDK8.0和 Uniflash 1.4.0的 J7200 EVM。 下面是我们遵循的步骤:

    Uniflash OSPI J7200的命令:

    dslite.bat --mode processors -c COM51 -f C:\ti\uniflash_6.4.0\processors\FlashWriter\j7200_evm\uart_j7200_evm_flash_programmer_release.tiimage -i 0
    
    dslite.bat --mode processors -c COM51 -f path_to_\sbl_ospi_img_mcu1_0_release.tiimage -d 3 -o 0
    
    dslite.bat --mode processors -c COM51 -f path_to_\tifs.bin -d 3 -o 80000
    
    dslite.bat --mode processors -c COM51  -f path_to_\nor_spi_patterns.bin -d 3 -o 3FC0000
    
    dslite.bat --mode processors -c COM51 -f path_to_\board_diag_led_mcu1_0_release.appimage -d 3 -o 100000
    

    命令提示符:

    C:\ti\uniflash_6.4.0>dslite.bat --mode processors -c COM51 -f C:\ti\uniflash_6.4.0\processors\FlashWriter\j7200_evm\uart_j7200_evm_flash_programmer_release.tiimage -i 0
    Executing the following command:
    > C:\ti\uniflash_6.4.0\processors\ProcessorSDKSerialFlash.exe -c COM51 -f C:\ti\uniflash_6.4.0\processors\FlashWriter\j7200_evm\uart_j7200_evm_flash_programmer_release.tiimage -i 0
    
    For more details and examples, please refer to the UniFlash Quick Start guide.
    
    The file extension is .tiimage
    
    ----------------------------------------------------------------------------
    ProcessorSDKSerialFlash CLI Tool
    Copyright (C) 2017-2021 Texas Instruments Incorporated - http://www.ti.com/
    Version 1.5.0.0
    ----------------------------------------------------------------------------
    Downloading Flash Programmer..
    
    Transferring File of size 263135 bytes
    File Transfer complete!
    
    Enabling System firmware transfer!!!
    Header Transfer complete
    Transferring System Firmware..
    Transferring File of size 258976 bytes
    File Transfer complete!
    
    C:\ti\uniflash_6.4.0>dslite.bat --mode processors -c COM51 -f C:\ti\uniflash_6.4.0\j7200_ospi_uniflash_binaries\sbl_ospi_img_mcu1_0_release.tiimage -d 3 -o 0
    Executing the following command:
    > C:\ti\uniflash_6.4.0\processors\ProcessorSDKSerialFlash.exe -c COM51 -f C:\ti\uniflash_6.4.0\j7200_ospi_uniflash_binaries\sbl_ospi_img_mcu1_0_release.tiimage -d 3 -o 0
    
    For more details and examples, please refer to the UniFlash Quick Start guide.
    
    The file extension is .tiimage
    
    ----------------------------------------------------------------------------
    ProcessorSDKSerialFlash CLI Tool
    Copyright (C) 2017-2021 Texas Instruments Incorporated - http://www.ti.com/
    Version 1.5.0.0
    ----------------------------------------------------------------------------
    Transferring the Image to Flash Programmer..
    
    Transferring Header Information..
    Header Transfer Complete!
    
    Flashing Image of size 255636 bytes
    Flash Programming Success!
    
    C:\ti\uniflash_6.4.0>dslite.bat --mode processors -c COM51 -f C:\ti\uniflash_6.4.0\j7200_ospi_uniflash_binaries\tifs.bin -d 3 -o 80000
    Executing the following command:
    > C:\ti\uniflash_6.4.0\processors\ProcessorSDKSerialFlash.exe -c COM51 -f C:\ti\uniflash_6.4.0\j7200_ospi_uniflash_binaries\tifs.bin -d 3 -o 80000
    
    For more details and examples, please refer to the UniFlash Quick Start guide.
    
    The file extension is .bin
    
    ----------------------------------------------------------------------------
    ProcessorSDKSerialFlash CLI Tool
    Copyright (C) 2017-2021 Texas Instruments Incorporated - http://www.ti.com/
    Version 1.5.0.0
    ----------------------------------------------------------------------------
    Transferring the Image to Flash Programmer..
    
    Transferring Header Information..
    Header Transfer Complete!
    
    Flashing Image of size 258976 bytes
    Flash Programming Success!
    
    C:\ti\uniflash_6.4.0>dslite.bat --mode processors -c COM51  -f C:\ti\uniflash_6.4.0\j7200_ospi_uniflash_binaries\nor_spi_patterns.bin -d 3 -o 3FC0000
    Executing the following command:
    > C:\ti\uniflash_6.4.0\processors\ProcessorSDKSerialFlash.exe -c COM51  -f C:\ti\uniflash_6.4.0\j7200_ospi_uniflash_binaries\nor_spi_patterns.bin -d 3 -o 3FC0000
    
    For more details and examples, please refer to the UniFlash Quick Start guide.
    
    The file extension is .bin
    
    ----------------------------------------------------------------------------
    ProcessorSDKSerialFlash CLI Tool
    Copyright (C) 2017-2021 Texas Instruments Incorporated - http://www.ti.com/
    Version 1.5.0.0
    ----------------------------------------------------------------------------
    Transferring the Image to Flash Programmer..
    
    Transferring Header Information..
    Header Transfer Complete!
    
    Flashing Image of size 128 bytes
    Flash Programming Success!
    
    C:\ti\uniflash_6.4.0>dslite.bat --mode processors -c COM51 -f C:\ti\uniflash_6.4.0\j7200_ospi_uniflash_binaries\board_diag_led_mcu1_0_release.appimage -d 3 -o 100000
    Executing the following command:
    > C:\ti\uniflash_6.4.0\processors\ProcessorSDKSerialFlash.exe -c COM51 -f C:\ti\uniflash_6.4.0\j7200_ospi_uniflash_binaries\board_diag_led_mcu1_0_release.appimage -d 3 -o 100000
    
    For more details and examples, please refer to the UniFlash Quick Start guide.
    
    The file extension is .appimage
    
    ----------------------------------------------------------------------------
    ProcessorSDKSerialFlash CLI Tool
    Copyright (C) 2017-2021 Texas Instruments Incorporated - http://www.ti.com/
    Version 1.5.0.0
    ----------------------------------------------------------------------------
    Transferring the Image to Flash Programmer..
    
    Transferring Header Information..
    Header Transfer Complete!
    
    Flashing Image of size 120520 bytes
    Flash Programming Success!
    
    C:\ti\uniflash_6.4.0>
    

    xSPI 的 DIP 开关设置:

    • SW8:10000010
    • SW9:00110000
    • SW3:0111001010

    R5 MCU_UART 转储:

    SBL Revision: 01.00.10.01 (Aug 12 2021 - 10:18:02)
    TIFS  ver: 21.5.0--v2021.05 (Terrific Llam
    
    *********************************************
    *                 LED Test                  *
    *********************************************
    
    Testing LED
    Blinking LEDs...
    Press 'y' to verify pass, 'r' to blink again,
    or any other character to indicate failure: 
    

    二进制文件的 PFA。

    e2e.ti.com/.../j7200_5F00_ospi_5F00_flash_5F00_binaries.zip