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.

[参考译文] AM2612:无法刷写 Zephyr mcelf_XIP 映像

Guru**** 2873850 points

Other Parts Discussed in Thread: UNIFLASH

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1629047/am2612-cannot-flash-zephyr-mcelf_xip-image

器件型号: AM2612
Thread 中讨论的其他器件: UNIFLASH

我正在尝试 从最新的 REL.AM261X-4.2.0-ti-26.00.00.00 Zephyr 版本中刷写 SAMPLE_XIP_APP。 我遵循了电路板 自述文件中的步骤列表 、但在运行 uart_uniflash 脚本时收到以下错误。

C:\ti\ind_comms_sdk_am261x_10_02_00_17\mcu_plus_sdk\tools\boot>python uart_uniflash.py -p COM11 --cfg="C:\Development\git\buad\dl100_prime\communication_board\build\zephyr-arm-zephyr-eabi-armv7-debug\bin\ssi\uart_uniflash_sample_xip.cfg"

Parsing config file ...
Parsing config file ... SUCCESS. Found 5 command(s) !!!

Executing command 1 of 5 ...
Found flash writer ... sending sbl_prebuilt/am261x-lp/sbl_uart_uniflash.release.tiimage

Sent flashwriter sbl_prebuilt/am261x-lp/sbl_uart_uniflash.release.tiimage of size 51833 bytes in 6.82s.

Executing command 2 of 5 ...
Command arguments : --operation=flash-phy-tuning-data
Sent flash-phy-tuning-data in 3.58s.                                                                                                                                                                            
[STATUS] SUCCESS !!!

Executing command 3 of 5 ...
Command arguments : --file=sbl_prebuilt/am261x-lp/sbl_ospi.release.tiimage --operation=flash --flash-offset=0x0
Sent sbl_prebuilt/am261x-lp/sbl_ospi.release.tiimage of size 224732 bytes in 23.0s.
[STATUS] SUCCESS !!!

Executing command 4 of 5 ...
Command arguments : --file=../../../../../Development/zephyr/zephyrproject/zephyr/samples/boards/ti/am261x_lp/sample_xip_app/build/zephyr_final.mcelf --operation=flash-sector-write --flash-offset=0x81000     
Sent ../../../../../Development/zephyr/zephyrproject/zephyr/samples/boards/ti/am261x_lp/sample_xip_app/build/zephyr_final.mcelf of size 215148 bytes in 22.17s.                                                 
[STATUS] SUCCESS !!!

Executing command 5 of 5 ...
Command arguments : --file=../../../../../Development/zephyr/zephyrproject/zephyr/samples/boards/ti/am261x_lp/sample_xip_app/build/zephyr_final.mcelf_xip --operation=flash-xip
Sent ../../../../../Development/zephyr/zephyrproject/zephyr/samples/boards/ti/am261x_lp/sample_xip_app/build/zephyr_final.mcelf_xip of size 16672 bytes in 4.52s.                                               
[STATUS] ERROR: Flashing failed !!!

All commands from config file are executed !!!

构建示例时、我不确定应该使用哪个 MCU+ SDK 版本、因为它未在自述文件中列出。  我假设这是 v10.02.00、因为 v11_00_29 中没有这个名称的 sbl_ospi.release.tiimage 文件。  我还验证了我的 AM261X LaunchPad 设置为 UART 引导模式。  如果重要、我将使用此 LaunchPad 的新硬件版本(即集成以太网端口)。

我尝试刷写我自己的示例应用、其中 CONFIG_XIP 为活动状态和未激活状态、但每次都出现相同的错误。  尝试写入 XIP 映像时的刷写过程始终失败。  

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

    我发现了我的问题。  上述标签版本中的文档与最新的 v11 MCU+ SDK 不匹配。  引导加载程序文件名需要为 sbl_ospi_morple_elf、XIP 映像刷写参数需要为 flash-mcelf-xIP。  请更正文档、以匹配预期的 MCU+ SDK 版本。

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

    很高兴听到您发现了这个问题。

    我将采取措施纠正此问题。