Hi
I tried Option 3&2 of DDR3 stress tester with i.MX7D-Sabre.
Option 3(U-Boot) worked correctly but Option 2(JTAG) didn't display anything, I don't know why.
i.MX6/7 DDR Stress Test Tool V3.00
https://community.nxp.com/docs/DOC-105652
i.MX7D DRAM Register Programming Aid
https://community.nxp.com/docs/DOC-152468
Option 3 U-Boot: ddr-test-uboot-jtag-mx7d.bin
Option 2 DDR Stress Tester: JTAG Interface ddr-test-uboot-jtag-mx7d.elf
Here is my commands of SEGGER J-Link Jtag.
What was wrong with my setting or commands?
C:\Program Files (x86)\SEGGER\JLink_V630j>JLink.exe -device MCIMX7D7_A7_0 -CommandFile C:\jtag_init_jlink.txt
...
...
Writing 33FFFFFF -> 30000000
Writing 10000000 -> 30389800
Writing 10000001 -> 30389880
....
....
Writing 00000000 -> 30384130
Writing 00000178 -> 30340020
Writing 00000002 -> 30384130
Script processing completed.
Type "connect" to establish a target connection, '?' for help
J-Link>mem 30330120,10 /* IOMUX GPIO->UART */
30330120 = 05 00 00 00 05 00 00 00 00 00 00 00 05 00 00 00
J-Link>mem 30890080,1 /* UART1 enable */
30890080 = 01
J-Link>mem 30384940, 1 /* CCM clock gate */
30384940 = 02
J-Link>loadbin C:\Users\160703\Desktop\mx7d_ddr_cal_jtag\ddr-test-uboot-jtag-mx7d.bin 910000
Halting CPU for downloading file.
Downloading file [C:\Users\160703\Desktop\mx7d_ddr_cal_jtag\ddr-test-uboot-jtag-mx7d.bin]...
O.K.
J-Link>setpc 910000 /* Option2 image */
J-Link>g /* display no characters on debug port(uart1) */
J-Link>
J-Link>
J-Link>loadfile C:\Users\160703\Desktop\mx7d_ddr_cal_jtag\ddr-test-uboot-jtag-mx7d.hex 910000
Downloading file [C:\Users\160703\Desktop\mx7d_ddr_cal_jtag\ddr-test-uboot-jtag-mx7d.hex]...
O.K.
J-Link>SetPC 910000 /* converted Option3 image */
J-Link>g /* display no characters on debug port(uart1) */
J-Link>
Can anyone help me?
BTW elf file converted to ihex on the imx7d-sabre linux as following.
$ cp /run/media/mmcblk0p1/ddr*.elf .
$ objcopy -O ihex ddr-test-uboot-jtag-mx7d.elf /run/media/mmcblk0p1/ddr-test-uboot-jtag-mx7d.hex