主题中讨论的其他器件: UNIFLASH、 SysConfig
我们当前正在 尝试一个简单的 LED 闪烁程序、它使用 PRU 中的 GPO;但是、我们无法连接到 PRU 内核、如下图所示。 内核卡在"Connecting: in Reset"状态。

根据 [FAQ] AM64x/AM24x:如何使用 Code Composer Studio (CCS)连接到 PRU_ICSSG?、连接到 DMSC 内核似乎对于连接到 PRU 内核很重要。 但是、当我们尝试启动目标配置并手动连接到该内核时、我们的 LP-AM243模型似乎难以连接到 DMSC_Cortex_M3_0内核。
DMSC_Cortex_M3_0: Error connecting to the target: (Error -1170 @ 0x0) Unable to access the DAP. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 9.13.0.00201)基于 LP-AM243:DAP 访问 Sitara 器件(am263x、amd243x)备用内核时出现 CCS 调试问题、我们似乎需要在连接内核之前初始化 SOC。 我们根据 SOC 初始化运行了 SOC 初始化脚本和闪存 SOC 初始化二进制指令。 我们能够从脚本本身成功地从 R5内核获得正确的日志、但没有从 DMSC_Cortex_M3_0获得正确的控制台窗口响应。
[MAIN_Cortex_R5_0_0] DMSC Firmware Version 9.0.7--v09.00.07 (Kool Koala) DMSC Firmware revision 0x9 DMSC ABI revision 3.1 [SCICLIENT] ABI check PASSED [SCICLIENT] Board Configuration with Debug enabled ... [SCICLIENT] Common Board Configuration PASSED [SCICLIENT] PM Board Configuration PASSED [SCICLIENT] RM Board Configuration PASSED [SCICLIENT] Security Board Configuration PASSED DMSC Firmware Version 9.0.7--v09.00.07 (Kool Koala) DMSC Firmware revision 0x9 DMSC ABI revision 3.1 Starting SOC Initialization ... Resetting self cluster ...
Initializing ... (Completed) js:> loadJSFile "C:\ti\mcu_plus_sdk_am243x_09_00_00_35\tools\ccs_load\am243x\load_dmsc_hsfs.js" Connecting to MCU Cortex_R5_0! Writing While(1) for R5F Running the board configuration initialization from R5! Happy Debugging!! js:>
我们还确保按照说明刷写 SOC 初始化二进制文件、并获得了成功的结果。
C:\ti\mcu_plus_sdk_am243x_09_00_00_35\tools\boot>python uart_uniflash.py -p COM8 --cfg=sbl_prebuilt/am243x-lp/default_sbl_null.cfg Parsing config file ... Parsing config file ... SUCCESS. Found 2 command(s) !!! Executing command 1 of 2 ... Found flash writer ... sending sbl_prebuilt/am243x-lp/sbl_uart_uniflash.release.hs_fs.tiimage Sent flashwriter sbl_prebuilt/am243x-lp/sbl_uart_uniflash.release.hs_fs.tiimage of size 296773 bytes in 26.59s. Executing command 2 of 2 ... Command arguments : --file=sbl_prebuilt/am243x-lp/sbl_null.release.hs_fs.tiimage --operation=flash --flash-offset=0x0 Sent sbl_prebuilt/am243x-lp/sbl_null.release.hs_fs.tiimage of size 260828 bytes in 24.68s. [STATUS] SUCCESS !!! All commands from config file are executed !!!
Starting NULL Bootloader ... DMSC Firmware Version 9.0.7--v09.00.07 (Kool Koala) DMSC Firmware revision 0x9 DMSC ABI revision 3.1 INFO: Bootloader_runCpu:155: CPU r5f1-0 is initialized to 800000000 Hz !!! INFO: Bootloader_runCpu:155: CPU r5f1-1 is initialized to 800000000 Hz !!! INFO: Bootloader_runCpu:155: CPU m4f0-0 is initialized to 400000000 Hz !!! INFO: Bootloader_loadSelfCpu:207: CPU r5f0-0 is initialized to 800000000 Hz !!! INFO: Bootloader_loadSelfCpu:207: CPU r5f0-1 is initialized to 800000000 Hz !!! INFO: Bootloader_runSelfCpu:217: All done, reseting self ...
同样、我们的主要目标是通过来自 PRU 的 GPO 使 LED 闪烁。 我们不知道这是软件问题还是硬件问题。 如果有任何帮助,我们将不胜感激!