您好!
如何在 K2H EVM 上构建和运行平台测试?
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.
您好!
如何在 K2H EVM 上构建和运行平台测试?
如何在 K2H EVM 上构建和运行平台测试?
先决条件 :
(请在建议的路径中安装 SDK:C:\ti\)
2.下载并安装 CCS 9.3 https://www.ti.com/tool/download/CCSTUDIO/9.3.0.00012
(请在建议的路径中安装:C:\ti\)
3.重新编译 PDK 和 SDK,这反过来将编译所有必要的 CSL 库组件等 请按照以下步骤操作。
[常见问题解答] 66AK2H12:如何为 K2H 重新构建 PROCESSOR-SDK-RTOS-K2H 6.3的 PDK 和 SDK? -处理器论坛-处理器- TI E2E 支持论坛
步骤1:安装后检查 Platform-test 源代码
a) 安装" processor_sdk_rtos_k2hk _6_03_00_106 "软件包(以上步骤)后、Platform-test 源代码将变为可用。
b)"Platform-Lib"是 Platform-test 的依赖项。
c) Platform-test 和 platform-lib 的源代码位于
C:\ti\pdk_k2hk _4_0_16\packages/ti\platform\evmc6657l\platform_test\src
C:\ti\pdk_k2hk _4_0_16\packages/ti\platform\evmc6657l\platform_lib\src
d) 打开位于 C:\ti\pdk_k2hk _4_0_16\packages/ti\platform\evmk2h\platform_lib\src\platform.c 的 platform.c
转至行号:485并注释 SerDes 和 SGMII 的初始化和配置代码
/*
if (p_flags->phy){
configSerDES();
INIT_SGMII (0);
//Init_SGMII (1);
}
*
e)保存并关闭。
步骤2:将"平台测试示例"导入 CCS 9.3并重新编译
请按照随附的视频进行操作、并执行以下步骤以方便使用。
a)将位于"C:\ti\pdk_k2hk _4_0_16\packages/ti\platform\evmk2h\platform_lib"的"Platform-Lib" CCS 工程导入 CCS 并重新编译
b) 将位于"C:\ti\pdk_k2hk _4_0_16\packages/ti\platform\evmk2h\platform_test"的"Platform-Lib" CCS 工程导入 CCS 并重新编译
如果在构建平台库或平台测试时遇到任何错误、请遵循以下常见问题解答中给出的步骤。
[常见问题解答] 66AK2E05:如何在适用于 K2E 的 Processor SDK 6.3中重新解决 PDK 的平台测试示例中的构建错误? -处理器论坛-处理器- TI E2E 支持论坛
步骤3:在 C6657 EVM 上运行"平台测试"
在 evmk2h - board -->中,应将 DIP 开关设置置于"无引导模式" 以连接到 CCS。
即 ---- >DIP SW1:0 1 1 1
连接详细信息:
===================
1.电源线
XDS-仿真器- K2H EVM 板载仿真器的 USB 端口与运行 Windows-10的 PC 之间的小型 USB 电缆
K2H EVM 串行端口与 PC USB 端口之间的迷你 USB
请按照随附的视频进行操作、并执行以下步骤以方便使用。
1.打开 CCS
2.启动 evmk2h 的目标配置文件。 (如果对此不熟悉,请遵循此常见问题解答
[常见问题解答] 66AK2H12:CCS 中 K2H 的目标配置-处理器论坛-处理器- TI E2E 支持论坛
3.执行“连接目标并运行 GEL 文件” (如果对此不熟悉,请遵循以下常见问题解答:
[常见问题解答] 66AK2H12:K2H EVM 中的 GEL 文件加载(DSP 和 ARM 内核)-处理器论坛-处理器- TI E2E 支持论坛
4. 将 platform_test_evmk2h.out 加载到 K2H-EVM 的 core0中--(按照以下视频中的步骤操作)
5.按照下面的视频运行并观察输出消息。
CCS 中的控制台输出消息
===================================
[C66xx_0] p_info->version = 3.00.00.09 p_info->cpu.core_count = 8 p_info->cpu.name = TCI6636K2H p_info->cpu.id = 21 p_info->cpu.revision_id = 0 p_info->cpu.silicon_revision_major = 0 p_info->cpu.silicon_revision_minor = 0 p_info->cpu.megamodule_revision_major = 9 p_info->cpu.megamodule_revision_minor = 3 p_info->cpu.endian = 1 p_info->board_name = TMDXEVM6636K2H p_info->frequency = 983 p_info->board_rev = 0 p_info->led[PLATFORM_USER_LED_CLASS].count = 4 p_info->led[PLATFORM_SYSTEM_LED_CLASS].count = 0 p_info->emac.port_count = 2 EMAC port 0 connected to the PHY. MAC Address = 74:da:ea:55:e4:83 EMAC port 1 connected to the PHY. MAC Address = 74:da:ea:55:e4:83 NAND Device: p_device->device_id = 172 p_device->manufacturer_id = 44 p_device->width = 8 p_device->block_count = 4096 p_device->page_count = 64 p_device->page_size = 2048 p_device->spare_size = 64 p_device->column = 2048 p_device->handle = 11425 p_device->flags = 0 p_device->bboffset = 5 Bad Block Table (only bad block numbers shown): Could not open the NOR device errno = 0x11 EEPROM Device (@ 0x50): p_device->device_id = 80 p_device->manufacturer_id = 1 p_device->width = 8 p_device->block_count = 1 p_device->page_count = 1 p_device->page_size = 65536 p_device->spare_size = 0 p_device->handle = 80 p_device->flags = 0 p_device->bboffset = 0 EEPROM Device (@ 0x51): p_device->device_id = 81 p_device->manufacturer_id = 1 p_device->width = 8 p_device->block_count = 1 p_device->page_count = 1 p_device->page_size = 65536 p_device->spare_size = 0 p_device->handle = 81 p_device->flags = 0 p_device->bboffset = 0 Current core id is 0 User switch 1 state is OFF UART test start Open a serial port console in a PC connected to the board using UART and set its baudrate to 115200 You should see following message --- This is a Platform UART API unit test ... Type 10 characters in serial console Char 0 = 1 Char 1 = Char 2 = 2 Char 3 = 3 Char 4 = 4 Char 5 = 5 Char 6 = 6 Char 7 = 7 Char 8 = 8 Char 9 = 9 UART test complete EEPROM test start test_eeprom: passed EEPROM test complete NAND test start test_nand: passed NAND test complete NOR test start test_nand: Could not open NOR device errno = 0x11 NOR test complete LED test start LED 0 ON LED 0 OFF LED 0 ON LED 1 ON LED 1 OFF LED 1 ON LED 2 ON LED 2 OFF LED 2 ON LED 3 ON LED 3 OFF LED 3 ON LED test complete Internal memory test start Internal memory test (for core 2) passed Internal memory test complete External memory test start External memory test passed External memory test complete Test completed
有关"如何在 K2H EVM 上导入、构建和运行平台测试示例"的视频
================================================================================================================================================
e2e.ti.com/.../K2h_5F00_platformtest.mp4
此致
Shankari G