Other Parts Discussed in Thread: DRA829, UNIFLASH
Tool/software:
We are utilizing a custom board with J721E SR1.1 HS-FS on SDK 10.0.0.5. We are attempting to flash OSPI using TRACE32 with the dra82x-ospi-MT35XU512-snor.cmm script, but we are encountering some issues. Are there any prerequisites required to flash the HS version using TRACE32?
We have tested the flashing script on an EVM board with the GP version, and we are able to flash only when bare-metal is enabled. According to the comments in the provided script, bare-metal is only necessary when R5 is not yet booted, but it does not work when disabled.IF COMBIPROBE()||UTRACE()
SYStem.CONFIG.CONNECTOR MIPI34 ; because of converter LA-3782
&use_pll2="yes"
&bare_metal="yes" ; if R5 is not yet booted say yes
&iprobe="no" ; if TRACE32 logic analyzer hooked to r306 on SOM
&program="yes" ; write to flash
IF "&iprobe"=="yes"
(
NAME.RESET
NAME.SET IProbe.00 FREQ
IProbe.CSELect.IProbe FREQ ; display ospi0_clk
IProbe.Timing.IProbe.FREQ
iprobe
iprobe.off
)
IF "&bare_metal"=="yes"
(
; call out to bare metal CMMs to setup clocks
TITLE "TRACE32 for ARM-CM3 - MASTER"
DO "~~/cmm-ti/cmm-dra/cmm-tda4_dra829/x_gel_to_cmm_public/j7es_m3.cmm"
register
DO "~~/cmm-ti/cmm-dra/cmm-tda4_dra829/x_gel_to_cmm_public/J721E.cmm"
wait 1s
)
Regarding our custom board, flashing using UNIFLASH works fine, and we are able to boot. However, flashing using T32 fails. My guess is that due to the locked M3 JTAG on the HS version, there is no option to set clocks via the j7es_m3.cmm script, which is required for bare-metal flashing.
(EVM board with GP: When forcing M3 Power & clock, active registers are visible and changing.)
(Custom board with HS: After forcing, register values go from 0x23000000 to ???)
Based on these observations, is it possible to flash the HS version using T32? Does this process require unlocking the JTAG for M3, or is there another solution to address the non bare-metal flashing issue?