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.

[参考译文] AM2432:AM2432 UART 在 OSPI 闪存中进行刷写

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1442230/am2432-am2432-uart-flashing-in-ospi-flash

器件型号:AM2432
主题中讨论的其他器件: UNIFLASH

工具与软件:

尊敬的 TI 团队:

我们有基于 AM2432的定制电路板。  

我们希望通过 UART 来刷写 hello world 应用。

以下是我们正在执行的步骤:

1.通过 OSPI Read_write SDK 代码检查 SPI 闪存——结果——"所有测试都通过"

2. MCU 现在是 UART 引导通过命令提示符加载 hello world 代码--  

#首先指向 sbl_uart_uniflash 二进制文件,其作为服务器来刷写一个或多个文件
--flash-writer=sbl_prebuilt/am243x-lp/sbl_uart_uniflash.release.hs_fs.tiimage

#现在根据需要将一个或多个文件发送到闪存或闪存验证。 文件的发送顺序无关紧要#对 OSPI PHY 调优攻击向量进行编程
--operation=flash-phy-tuning-data

#发送 bootloader 时、请确保闪存偏移量为0x0。 ROM 期望引导加载程序位于偏移量0x0处
--file=sbl_prebuilt/am243x-lp/sbl_ospi.debug.hs_fs.tiimage --operation=flash --flash-offset=0x0

#发送应用程序映像时、请确保以偏移0x80000 (默认值)或引导加载程序配置的任何偏移刷写
--file=C:/ti/hello_world_am243x-lp_r5fss0-0_freertos_ti-arm-clang.appimage.hs_fs --operation=flash --flash-offset=0x80000

3.应用硬复位并通过命令提示符 run-- python uart_uniflash.py -p COM16 --cfg=sbl_prebuilt/am243x-lp/ default_sbl_null.cfg

3.通过 CCS 启动目标配置并连接目标 R5_0_0

4.加载 GEL 文件以更改引导模式、并选择"解锁引导重置"、然后选择"SPI Boot"、然后选择"热重置"

5.理论上、MCU 必须从 闪存引导并将应用程序加载到 RAM 中、然后执行 hello world 以打印"Hello world"但无法打印任何内容

请尽早告知

此致、

Santosh

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

    尊敬的 Santosh:

    Unknown 说:
    3. 通过命令提示符 run-- python uart_uniflash.py -p COM16 --cfg=sbl_prebuilt/am243x-lp/default_sbl_null.cfg

    这在 UART 引导模式下发生。

    [报价用户 id="593266" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1442230/am2432-am2432-uart-flashing-in-ospi-flash "]

    3.通过 CCS 启动目标配置并连接目标 R5_0_0

    4.加载 GEL 文件以更改引导模式、并选择"解锁引导重置"、然后选择"SPI Boot"、然后选择"热重置"

    5.理论上、MCU 必须从 闪存引导并将应用程序加载到 RAM 中、然后执行 hello world 以打印"Hello world"但无法打印任何内容

    [报价]

    在不更改引导模式的情况下、您要进行下面的3个步骤。

    您是否可以切换到 OSPI 引导模式/SPI 引导模式并从步骤3中进行尝试。

    此致、

    Vaibhav