can not download firmware to the emmc, what is the problem?

Refer to the development board, design my card,which power supply scheme is exactly the same.But i can not download firmware to the emmc.The first card printing information is like the first picture,and the second card is like the second picture,what is the problem? Is TK1 or DDR or EMMC or others not operation properly?

---------------------------------the first card-----------------------------------------------------------
*** Flashing target device started. ***
./nvflash --bct PM375_Hynix_2GB_H5TC4G63AFR_H5TC4G63CFR_RDA_924MHz.cfg --setbct --configfile flash.cfg --create --bl fastboot.bin --odmdata 0x6009C000 --go
Nvflash 4.13.0000 started
BR_CID: 0x34001001740de10324000000090702c0
rcm version 0X400001
Skipping BoardID read at miniloader level
System Information:
chip name: unknown
chip id: 0x40 major: 1 minor: 1
chip sku: 0x0
chip uid: 0x00000001740de10324000000090702c0
macrovision: disabled
hdcp: disabled
jtag: disabled
sbk burned: false
board id: 0
warranty fuse: 0
dk burned: false
boot device: emmc
operating mode: 3
device config strap: 0
device config fuse: 0
sdram config strap: 0

RCM communication completed
BCT sent successfully
sending file: tegra124-jetson_tk1-pm375-000-c00-00.dtb

----------------------the second card----------------------------------------------
*** GPT Parameters ***
Device Sector Size ------- 512
device size -------------- 15766388736
bootpart size ------------ 8388608
userpart size ------------ 15758000128
Erase Block Size --------- 2097152
FS Buffer size ----------- 4096
Partition Config file ---- flash.cfg
Visible partition flag — GP1
Primary GPT output ------- PPT->ppt.img
Secondary GPT output ----- GPT->gpt.img
Target device name ------- none

*** PARTITION LAYOUT(20 partitions) ***
[ BCT] BH 0 16383 8.0MiB
[ PPT] UH 0 4095 2.0MiB ppt.img
[ PT] UH 4096 8191 2.0MiB
[ EBT] UH 8192 16383 4.0MiB u-boot.bin
[ LNX] UH 16384 49151 16.0MiB
[ SOS] UH 49152 61439 6.0MiB
[ NVC] UH 61440 65535 2.0MiB
[ MPB] UH 65536 77823 6.0MiB
[ MBP] UH 77824 90111 6.0MiB
[ GP1] UH 90112 94207 2.0MiB
[ APP] UV 94208 29454335 14336.0MiB system.img
[ DTB] UV 29454336 29462527 4.0MiB tegra124-jetson_tk1-pm375-000-c00-00.dtb
[ EFI] UV 29462528 29593599 64.0MiB
[ USP] UV 29593600 29601791 4.0MiB
[ TP1] UV 29601792 29609983 4.0MiB
[ TP2] UV 29609984 29618175 4.0MiB
[ TP3] UV 29618176 29626367 4.0MiB
[ WB0] UV 29626368 29630463 2.0MiB
[ UDA] UV 29630464 30773247 558.0MiB
[ GPT] UH 30773248 30777343 2.0MiB gpt.img
copying flasher(/Platform/TK1/TK1/Linux_for_Tegra_tk1/bootloader/ardbeg/fastboot.bin)… done.
Existing flashapp(/Platform/TK1/TK1/Linux_for_Tegra_tk1/bootloader/nvflash) reused.
*** Flashing target device started. ***
./nvflash --bct PM375_Hynix_2GB_H5TC4G63AFR_H5TC4G63CFR_RDA_924MHz.cfg --setbct --configfile flash.cfg --create --bl fastboot.bin --odmdata 0x6009C000 --go

What’s the symptom? It’s stuck there?

Yes,it is stuck.

Could you check the log from the UART.

I haven’t worked with a serial port for debugging, can you provide the serial port debug relevant information and links? Tks

You should be able get more information from google.

FYI, serial port settings would just be speed 115200, 8N1. You can use CTS/RTS flow control, or none.

Serial port print as follows.What is the error code respectively? Sdram layout is completely copy the DEMO board, and my SDRAM chip is H5TC4G63CFR.I use PM375_Hynix_2GB_H5TC4G63AFR_H5TC4G63CFR_RDA_792MHz and PM375_Hynix_2GB_H5TC4G63AFR_H5TC4G63CFR_RDA_924MHz to configuration to get the print information is the same.
Do you have any Suggestions?If I want to reduce the clock frequency to test of sdram controller, which parameters i should change?thanks

[0000.000] [TegraBoot] (version UNDEF_BUILD)
[0000.003] Reset reason: power on reset
[0000.007] Processing in recovery mode
[0000.010] Established communication link with host
[0001.085] Downloaded bct successfully
[0001.095] No Battery Present
[0001.099] Sdram initialization failed with 0x0
[0001.103] sdram init failed with error 0x3 in DownloadFile func at 1118 line

Please reference to below topic to run the nvtest.

https://devtalk.nvidia.com/default/topic/841202

I run runmats and found it is fail.
And then i used another file Hynix_2GB_H5TC4G63AFR - RDA_300MHz,it is stuck there.
What’s the problem?
Thank you for your answer.

---------------------------792MHz--------------------------------------------------------------
E:\fast disk\song\TK1\nvtest_tk1>nvhost.exe --avp --sdram Hynix_2GB_H5TC4G63AFR-
RDA_792MHz.cfg --skip-reset --chip t124 mats.axf
nvhost: ========================================
nvhost: Found --chip parameter
nvhost: …success! Found t124
nvhost: ========================================
nvblserver: Loading “mats.axg” via usb:…
Done.
WARNING: Ignoring auto-detect due to --chip parameter

…Now connected to target using usb

target_stdout: Initializing SDRAM controller.
target_stdout: Init PLLM: M=1, N=66, P=0, Misc1=1879048192, Misc2=0,StableTime=2
733140
target_stdout: Memory size = 0x00000400
target_stdout: SDRAM Subtest Start
target_stdout: SDRAM Subtest PASS
target_stdout: SDRAM Subtest Start
target_stdout: SDRAM Subtest PASS
target_stdout: SDRAM Subtest Start
target_stdout: SDRAM Subtest PASS
target_stdout: SDRAM Subtest Start
target_stdout: SDRAM Subtest PASS
target_stdout: SDRAM test PASSED
target_stdout: NvBootSdramQueryTotalSize() returned 0
target_stdout: [fail: SubtestInitSdramController at /share/git-dev/git-t124-mai
n/tests/diags/mats/mats.c:360]
target_stdout: [fail: SubtestInitSdramController]
target_stdout: Memory is not initialized. Aborting.
target_stdout: [pass: SubtestCheckPatLength]
target_stdout: ---------------
target_stdout: total subtests: 2
target_stdout: total failures: 1
target_stdout:
target_exit(1)
nvhost: QUIT
error: the test application failed

E:\fast disk\song\TK1\nvtest_tk1>pause
Please press any key to continue . . .

----------------------------300MHz-------------------------------------------
E:\fast disk\song\TK1\nvtest_tk1>nvhost.exe --avp --sdram Hynix_2GB_H5TC4G63AFR-
RDA_300MHz.cfg --skip-reset --chip t124 mats.axf
nvhost: ========================================
nvhost: Found --chip parameter
nvhost: …success! Found t124
nvhost: ========================================
nvblserver: Loading “mats.axg” via usb:…
Done.
WARNING: Ignoring auto-detect due to --chip parameter

…Now connected to target using usb

target_stdout: Initializing SDRAM controller.
target_stdout: Init PLLM: M=1, N=50, P=0, Misc1=1879048192, Misc2=0,StableTime=2
750121

What’s your RAM CODE setting? It should be as below:

[b]H5TC4G63CFR-RDA: RAM_CODE[1:0] - 10

  • RAM_CODE1 (GPIO_PG5) pull-up installed & pull-down not installed
  • RAM_CODE0 (GPIO_PG4) pull-down installed & pull-up not installed[/b]

The RAM CODE is 10.
I have a question, test file using the Hynix_2GB_H5TC4G63AFR-RDA_792MHz.cfg, but the DDR PHY is H5TC4G63CFR-RDA, it is no problem, right?

There could be problem, that’s why to use the RAM CODE to select corresponding config. Seems you’d better to compare with reference board to find out if any possible risks related to this.

I use H5TC4G63CFR-RDA.Can I still use the to test my DDR circuit?

Sure, you can do the test with relevant config.

When i use the file Hynix_2GB_H5TC4G63AFR - RDA_300MHz,it is failed even in DEMO.What is the problem?

It is print like this.

E:\fast disk\song\TK1\nvtest_tk1>nvhost.exe --avp --sdram Hynix_2GB_H5TC4G63AFR-
RDA_300MHz.cfg --skip-reset --chip t124 mats.axf
nvhost: ========================================
nvhost: Found --chip parameter
nvhost: …success! Found t124
nvhost: ========================================
nvblserver: Loading “mats.axg” via usb:…
Done.
WARNING: Ignoring auto-detect due to --chip parameter

…Now connected to target using usb

target_stdout: Initializing SDRAM controller.
target_stdout: Init PLLM: M=1, N=50, P=0, Misc1=1879048192, Misc2=0,StableTime=2
750121

If you are not using PM375_Hynix_2GB_H5TC4G63AFR_H5TC4G63CFR_RDA_924MHz.cfg, you need to check if the RAM_CODE setting is corresponding to the prefix number in each line of CFG file.

When i using PM375_Hynix_2GB_H5TC4G63AFR_H5TC4G63CFR_RDA_924MHz.cfg,it is OK on DEMO;
When i use Hynix_2GB_H5TC4G63AFR - RDA_300MHz,it is failed, even is on DEMO.what is the problem?

As previous said, did you check if the RAM_CODE setting is corresponding to the prefix number in each line of CFG file?

Yes ,it is.