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.

[参考译文] AM5728:未通过 Code omposer Studio 加载 AM5728 U-Boot?

Guru**** 2549170 points
Other Parts Discussed in Thread: AM5728

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1299476/am5728-not-loading-am5728-u-boot-through-code-omposer-studio

器件型号:AM5728

您好!

AM5728电路板和 AM5728 SDK 使用。 我的引导选项是1.QSPI、然后是2。 SD 卡。 实际上、我想要擦除 QSPI、然后仅从 SD 卡引导(不会在 QSPI 默认无用代码?)。

我使用了以下命令通过 Code Composer Studio 加载有效的 U-boot 代码。

我正在通过 CCSv8使用以下步骤

1)从 am5728.ccxml 启动所选配置、并加载和测试器件名称:GPEVM_AM572X 的配置

2) 2) CPU 复位、然后 PC=0x00030000

3) Tools--> Load Memory -> u-boot-spl.bin (0x40300000)--> Type Size (32位)--> Finish

4)运行-->加载符号--> u-boot-spl(未提供任何地址)-->确定

5)检查反汇编器和内存浏览器数据是否存在。

6) 6)将程序计数器更改为0x40300000

7)运行代码。

在 Beagle 板中、它将停止(##ERROR ##请重置板###)

但在我们的定制板中未显示任何内容、它将在0x0000000c PRUSS1_GP 寄存器中运行和停止。

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

    您好 Ramachandra:

    我们不确定您在使用 CCS 加载 U-boot 的上述步骤中参考的是哪些文档。 您能向我们提供此信息吗? 此外、您将使用哪个 PSDK Linux 版本来编写 u-boot 二进制文件?  

    此外、您可以查看 https://software-dl.ti.com/processor-sdk-linux/esd/AM57X/08_02_01_00/exports/docs/linux/Foundational_Components /工具/ Code_Composer_Studio.html 文档。

    谢谢

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

    您好 Praveen:

    我使用这种方法 https://www.ti.com/video/3874225955001 通过 CCS 加载 u-boot、我加载了一些我正在连接的输出的 GEL 文件。

    目前附有3板 DSS 输出文件。

    我在下面的链接中使用了 GEL 文件。

    https://git.ti.com/cgit/sitara-dss-files/am57xx-dss-files/tree/am57xx-boot.dss

    输出:

    /*****************************************Board 6 AM5728:*****************************************/
    CTRL_CORE_BOOTSTRAP = 0x00008127
      * sysboot15 = 1, internal pulldown permanently disabled (recommended for eMMC boot)
      * XIP/NAND BOOTDEVICESIZE = 8-bit
      * XIP/NAND MUXCS0DEVICE = Non-muxed
      * XIP/NAND BOOTWAITEN, wait pin not monitored
      * SPEEDSELECT = 20 MHz
      * QSPI offset = 64KB
      * QSPI_4 -> SD -> USB
    
    Current tracing vector, word 1 = 0x0000807f
      * Bit  0: [Boot] Passed the public reset vector
      * Bit  1: [Boot] Entered main function
      * Bit  2: [Boot] Running after the cold reset
      * Bit  3: [Boot] Main booting routine entered
      * Bit  4: [Memory boot] Memory booting started
      * Bit  5: [Peripheral boot] Peripheral booting started
      * Bit  6: [Boot] Booting loop reached last device
      * Bit 15: [Peripheral boot] Peripheral booting failed
    
    Current tracing vector, word 2 = 0x0000f010
      * Bit  4: [USB] USB connected
      * Bit 12: [Memory boot] Memory booting trial (first block)
      * Bit 13: [Memory boot] Memory booting trial (second block)
      * Bit 14: [Memory boot] Memory booting trial (third block)
      * Bit 15: [Memory boot] Memory booting trial (fourth block)
    
    Current tracing vector, word 3 = 0x00200820
      * Bit  5: [Memory boot] Memory booting device SD
      * Bit 11: [Memory boot] Memory booting device QSPI_4
      * Bit 21: [Peripheral boot] Peripheral booting device USB
    
    Current tracing vector, word 4 = 0x00000000
    
    Cold reset tracing vector, word 1 = 0x00000000
    
    Cold reset tracing vector, word 2 = 0x00000000
    
    Cold reset tracing vector, word 3 = 0x00000000
    
    Cold reset tracing vector, word 4 = 0x00000000
    
    Current copy of the PRM_RSTST register (reset reasons) = 0x00000001
      * Bit 0 : GLOBAL_COLD_RST
    
    PRM_RSTST = 0x00000001
      * Bit 0 : GLOBAL_COLD_RST
    
    Cortex A15 Program Counter = 0x0003dde4
    
    /*****************************************Board 5 AM5728:*****************************************/
    CTRL_CORE_BOOTSTRAP = 0x00008127
      * sysboot15 = 1, internal pulldown permanently disabled (recommended for eMMC boot)
      * XIP/NAND BOOTDEVICESIZE = 8-bit
      * XIP/NAND MUXCS0DEVICE = Non-muxed
      * XIP/NAND BOOTWAITEN, wait pin not monitored
      * SPEEDSELECT = 20 MHz
      * QSPI offset = 64KB
      * QSPI_4 -> SD -> USB
    
    Current tracing vector, word 1 = 0x0000009f
      * Bit  0: [Boot] Passed the public reset vector
      * Bit  1: [Boot] Entered main function
      * Bit  2: [Boot] Running after the cold reset
      * Bit  3: [Boot] Main booting routine entered
      * Bit  4: [Memory boot] Memory booting started
      * Bit  7: [Boot] GP header found
    
    Current tracing vector, word 2 = 0x00001000
      * Bit 12: [Memory boot] Memory booting trial (first block)
    
    Current tracing vector, word 3 = 0x00000800
      * Bit 11: [Memory boot] Memory booting device QSPI_4
    
    Current tracing vector, word 4 = 0x00000000
    
    Cold reset tracing vector, word 1 = 0x00000000
    
    Cold reset tracing vector, word 2 = 0x00000000
    
    Cold reset tracing vector, word 3 = 0x00000000
    
    Cold reset tracing vector, word 4 = 0x00000000
    
    Current copy of the PRM_RSTST register (reset reasons) = 0x00000001
      * Bit 0 : GLOBAL_COLD_RST
    
    PRM_RSTST = 0x00000001
      * Bit 0 : GLOBAL_COLD_RST
    
    Cortex A15 Program Counter = 0x0003808c
      -> Data abort exception default handler
      -> DFAR = ffefeeee
      -> DFSR = 00000801
    
    /*****************************************Board 2 AM5728:*****************************************/
    
    CTRL_CORE_BOOTSTRAP = 0x00008127
      * sysboot15 = 1, internal pulldown permanently disabled (recommended for eMMC boot)
      * XIP/NAND BOOTDEVICESIZE = 8-bit
      * XIP/NAND MUXCS0DEVICE = Non-muxed
      * XIP/NAND BOOTWAITEN, wait pin not monitored
      * SPEEDSELECT = 20 MHz
      * QSPI offset = 64KB
      * QSPI_4 -> SD -> USB
    
    Current tracing vector, word 1 = 0x0000807f
      * Bit  0: [Boot] Passed the public reset vector
      * Bit  1: [Boot] Entered main function
      * Bit  2: [Boot] Running after the cold reset
      * Bit  3: [Boot] Main booting routine entered
      * Bit  4: [Memory boot] Memory booting started
      * Bit  5: [Peripheral boot] Peripheral booting started
      * Bit  6: [Boot] Booting loop reached last device
      * Bit 15: [Peripheral boot] Peripheral booting failed
    
    Current tracing vector, word 2 = 0x0000f010
      * Bit  4: [USB] USB connected
      * Bit 12: [Memory boot] Memory booting trial (first block)
      * Bit 13: [Memory boot] Memory booting trial (second block)
      * Bit 14: [Memory boot] Memory booting trial (third block)
      * Bit 15: [Memory boot] Memory booting trial (fourth block)
    
    Current tracing vector, word 3 = 0x00200820
      * Bit  5: [Memory boot] Memory booting device SD
      * Bit 11: [Memory boot] Memory booting device QSPI_4
      * Bit 21: [Peripheral boot] Peripheral booting device USB
    
    Current tracing vector, word 4 = 0x00000000
    
    Cold reset tracing vector, word 1 = 0x00000000
    
    Cold reset tracing vector, word 2 = 0x00000000
    
    Cold reset tracing vector, word 3 = 0x00000000
    
    Cold reset tracing vector, word 4 = 0x00000000
    
    Current copy of the PRM_RSTST register (reset reasons) = 0x00000001
      * Bit 0 : GLOBAL_COLD_RST
    
    PRM_RSTST = 0x00000001
      * Bit 0 : GLOBAL_COLD_RST
    
    Cortex A15 Program Counter = 0x00041760
    

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

    您好 Ramachandra:

    感谢您的参考。 我们的域专家将查看并返回此内容。

    此致。

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

    您好 Ramachandra:

    我可以看到的一点 是、可能发生的情况是您使用的是 EVM 目标配置、而不是 SoC 配置。
    EVM 目标配置具有。 初始化电路板并且将与 u-boot 冲突的 GEL 文件。

    尝试使用 SoC 级配置:

    而不是 GPEVM 或 IDK 选项。

    -Josue

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

    您好、Josue:  

    我仅在 目标配置中使用 am5728、并附加快照。

    我不是使用 GEL 文件直接通过 CCS 加载 u-boot 我要使用以下过程加载 u-boot-spl 和 u-boot。

     https://www.ti.com/video/3874225955001

    在 6个电路板中 、只有2个电路板正在处理同一个问题我在上面附上了 DSS 文件的不能正常工作电路板输出

    感谢您、


    此致、

    Ramachandra。

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

    Ramachandra,

    如果我理解正确、您会在6个板中的4个板中看到引导错误、这意味着2个板通过 CCS 加载 u-boot 来成功引导。

    是这样吗?

    该 DSS 脚本用于调试故障电路板发生的情况?
    从该脚本的输出来看、错误似乎并不一致。

    此 u-boot 映像是否能够通过 SD 卡在 AM572x EVM 上运行?

    -Josue

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

    Ramachandra,

    是否所有电路板都通过边界扫描测试?

    两个电路板在软件中正常运行是一个好现象、可能其他电路板的问题与硬件有关。

    不过要确保的是、

    此 u-boot 映像是否可从 SD 卡在 AM572x EVM 上运行?

    这也被证实是正确的吗?

    -Josue

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

    Ramachandra,

    是否所有电路板都通过边界扫描测试?

    两个电路板在软件中正常运行是一个好现象、可能其他电路板的问题与硬件有关。

    不过要确保的是、

    此 u-boot 映像是否可从 SD 卡在 AM572x EVM 上运行?

    这也被证实是正确的吗?

    -Josue