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-J784S4:通过 UART 刷写 OSPI 失败

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

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1489742/processor-sdk-j784s4-flashing-ospi-via-uart-fails

部件号:PROCESSOR-SDK-J784S4
Thread 中讨论的其他器件:TDA4VHUNIFLASH

工具/软件:

尊敬的 TI:

我们正在开发 TDA4VH 定制电路板、并已从 OSPI (Micron 闪存)启用了 SBL 引导、如您在相关票证中所示。

通过以太网刷写时、SBL 本身会正常引导。

可在以下位置找到 OSPI 的更改: /cfs-file/__key/communityserver-discussions-components-files/791/8105.0001_2D00_Adapting_2D00_rtos_2D00_sdk_2D00_for_2D00_OSPI_2D00_SBL_2D00_flashing.patch.txt

关于 uniflash 中的 OSPI 更改、以下更改(包含 ospi.h 和将 OSPI_FLASH 定义更改为 Micron):

+++ b/packages/ti/board/utils/uniflash/target/src/ospi/ospi.h
@@ -47,8 +47,9 @@ extern "C" {
 #include <ti/drv/spi/soc/SPI_soc.h>
 #include <ti/board/src/flash/include/board_flash.h>
 
-#if defined(j7200_evm) || defined(am64x_evm) || defined(j721s2_evm) || defined(j784s4_evm) || defined(j742s2_evm)
+#if defined(j7200_evm) || defined(am64x_evm) || defined(j721s2_evm) || defined(j742s2_evm)
 #include <ti/board/src/flash/nor/ospi/nor_xspi.h>
+#include <ti/board/src/flash/nor/ospi/nor_ospi.h>
 #else
 #include <ti/board/src/flash/nor/ospi/nor_ospi.h>
 #endif
@@ -79,7 +80,7 @@ extern "C" {
 
 #if defined(SOC_AM65XX) || defined(j721e_evm)
 #define OSPI_FLASH_ID   BOARD_FLASH_ID_MT35XU512ABA1G12
-#elif defined(j7200_evm) || defined (am64x_evm) || defined(j721s2_evm) || defined(j784s4_evm) || defined(j742s2_evm)
+#elif defined(j7200_evm) || defined (am64x_evm) || defined(j721s2_evm) || defined(j742s2_evm)
 #define OSPI_FLASH_ID   BOARD_FLASH_ID_S28HS512T
 #else
 #define OSPI_FLASH_ID   BOARD_FLASH_ID_MT35XU256ABA1G12

我们在刷写过程中看到了日志。 它超时。

尽管如此、我们在 j784s4_EVM 板上进行了相同的测试、但我们具有相同的行为、因此我们怀疑这与我们的 OSPI 变化无关。

sudo /home/milena/ti/uniflash_9.0.0/dslite.sh --mode processors -c /dev/ttyUSB0 -f /home/stanisic/uart_j784s4_evm_flash_programmer_release.tiimage  -i 0
Executing the following command:
> ./ProcessorSDKSerialFlash -c /dev/ttyUSB0 -f /home/stanisic/uart_j784s4_evm_flash_programmer_release.tiimage -i 0

For more details and examples, please refer to the UniFlash Quick Start guide.


----------------------------------------------------------------------------
ProcessorSDKSerialFlash CLI Tool
Copyright (C) 2017-2023 Texas Instruments Incorporated - http://www.ti.com/
Version 1.10.0.0
----------------------------------------------------------------------------
Downloading Flash Programmer..
Opening Port Successful!

Transferring File of size 334118 bytes
File Transfer complete!
stanisic@RTRKW845-LIN:~$ sudo /home/milena/ti/uniflash_9.0.0/dslite.sh --mode processors -c /dev/ttyUSB0 -f /tftpboot/tiboot3.bin -d 3 -o 0Executing the following command:
> ./ProcessorSDKSerialFlash -c /dev/ttyUSB0 -f /tftpboot/tiboot3.bin -d 3 -o 0

For more details and examples, please refer to the UniFlash Quick Start guide.


----------------------------------------------------------------------------
ProcessorSDKSerialFlash CLI Tool
Copyright (C) 2017-2023 Texas Instruments Incorporated - http://www.ti.com/
Version 1.10.0.0
----------------------------------------------------------------------------
Transferring the Image to Flash Programmer..
Opening Port Successful!

Transferring Header Information..
Header Transfer Complete!
Opening Port Successful!


Failure:Unknown response from target! Please check the connection!

此致、

Milena