Thread 中讨论的其他器件:UNIFLASH
工具/软件:
大家好:
目前、我正在尝试使用 FreeRTOS 在 AM62x 的 A53 内核上实现多核 (AMP) 设置的闪存引导。 应用在 Debug Build 中成功运行时、将无法从闪存正确引导。
我遵循的步骤:
以下是我在使用 FreeRTOS 在 AM62x A53 内核上尝试闪存引导多核 (AMP) HelloWorld 应用程序时遵循的具体步骤:
-
构建 Core 0 应用程序
已构建hello_world_am62x-sk_a53ss0-0_freertos_gcc-aarch64
。 -
构建 Core 1 应用程序
已构建hello_world_am62x-sk_a53ss0-1_freertos_gcc-aarch64
。 -
生成 AMP AppImage
使用该multicoreImageGen.js
工具生成组合的 AMP 应用图像:C:\ti\sysconfig_1.20.0\nodejs\node C:\ti\mcu_plus_sdk_am62x_10_01_00_33\tools\boot\multicoreImageGen\multicoreImageGen.js --devID 55 --out ./hello_world_multi.appimage C:\Users\0123456\workspace_v12\hello_world_am62x-sk_a53ss0-0_freertos_gcc-aarch64\Debug\hello_world_am62x-sk_a53ss0-0_freertos_gcc-aarch64.rprc@0 C:\Users\0123456\workspace_v12\hello_world_am62x-sk_a53ss0-1_freertos_gcc-aarch64\Debug\hello_world_am62x-sk_a53ss0-1_freertos_gcc-aarch64.rprc@1
- 转换为
hs_fs
格式
使用appimage_x509_cert_gen.py
脚本对应用映像签名:python C:\ti\mcu_plus_sdk_am62x_10_01_00_33\tools\boot\signing\appimage_x509_cert_gen.py --bin C:\Users\0123456\Downloads\hello_world_multi.appimage --authtype 1 --key C:\ti\mcu_plus_sdk_am62x_10_01_00_33\tools\boot\signing\rom_degenerateKey.pem --out C:\Users\0123456\Downloads\hello_world_multi.appimage.hs_fs
- AM62x 的闪存
将已签名的映像刷写到器件中:--file=C:/Users/0123456/Downloads/hello_world_multi.appimage.hs_fs --operation=flash --flash-offset=0xC00000
python uart_uniflash.py -p COM35 --cfg=sbl_prebuilt/am62x-sk/hello_world_sbl_ospi_hs_fs.cfg
- 启动设备
- 观察到的错误日志
引导时、将打印以下错误信息:
SYSFW Firmware Version 10.1.8--v10.01.08 (Fiery Fox) SYSFW Firmware revision 0xa SYSFW ABI revision 4.0 WARNING: Bootloader_verifyMulticoreImage:619: Failed to authenticate and copy on the go, reading the image to DDR. Some tests have failed!!
我遵循以下参考资料中的指导:
多核图像生成器
https://software-dl.ti.com/mcu-plus-sdk/esd/AM62X/09_00_00_19/exports/docs/api_guide_am62x/TOOLS_BOOT.html
应用映像签名
https://software-dl.ti.com/mcu-plus-sdk/esd/AM64X/09_00_00_31/exports/docs/api_guide_am64x/HSFS_MIGRATION_GUIDE.html#:~:text=between%20both%20cases.-,Appimage%20Signing,-Signing%20for%20the
我的目标是通过闪存引导在 AMP 模式下运行简单的 HelloWorld 应用、例如 a53ss0-0 和 a53ss0-1。 是否有人成功完成此操作、或者是否可以分享正确的程序或任何提示?
任何帮助或指导都将非常感谢!
提前感谢。