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.
Tool/software: Linux
Hi Sir,
My customer built a custom am3358 board and designed in Samsung K4B2G1646F-BMK0 DDR3-DRAM.
I'm following the procedure as processors.wiki.ti.com/.../AM335x_DDR_PHY_register_configuration_for_DDR3_using_Software_Leveling
I have completed the DDR3 software leveling and got the OPTIMUM numbers, and have tested DDR3 by "AM335x DDR3 Tests" Function.
My DDR3 Config
#define CMD_PHY_CTRL_SLAVE_RATIO (0x80)
#define CMD_PHY_INVERT_CLKOUT (0x00)
#define DATA_PHY_RD_DQS_SLAVE_RATIO 0x39
#define DATA_PHY_FIFO_WE_SLAVE_RATIO 0x98 //RD DQS GATE
#define DATA_PHY_WR_DQS_SLAVE_RATIO 0x35
#define DATA_PHY_WR_DATA_SLAVE_RATIO 0x74 //WRITED ATA
#define DDR_IOCTRL_VALUE (0x18B)
#define ALLOPP_DDR3_READ_LATENCY 0x000007 //RD_Latency = (CL + 2) - 1
#define ALLOPP_DDR3_SDRAM_TIMING1 0x0AAAD4DB
#define ALLOPP_DDR3_SDRAM_TIMING2 0x26437FDA
#define ALLOPP_DDR3_SDRAM_TIMING3 0x501F83FF
#define ALLOPP_DDR3_SDRAM_CONFIG 0x61C052B2
#define ALLOPP_DDR3_REF_CTRL 0x00000C30
#define ALLOPP_DDR3_ZQ_CONFIG 0x50074BE4
But, when I set DDR3 Params to u-boot, then burn am335x nor flash, I figure out some problems.
1) when powered on, DDR3 init error,
U-Boot 2016.05 (Dec 24 2018 - 17:51:36 +0800)
initcall: 080155f0
U-Boot code: 08000000 -> 0807D6E8 BSS: -> 080CD51C
initcall: 080153ec
initcall: 08015634
Watchdog enabled
initcall: 08015450
initcall: 08015650
I2C: ready
initcall: 0801561c
DRAM: initcall: 08001834
initcall: 08015450
initcall: 08015450
initcall: 08015450
initcall: 08015890
Monitor len: 000CD51C
Ram size: 00000000
Ram top: 80000000
initcall: 08015414
initcall: 08015598
TLB table from 7fff0000 to 7fff4000
initcall: 080157d4
initcall: 0801554c
Reserving 821k for U-Boot at: 7ff22000
initcall: 0801551c
Reserving 16512k for malloc() at: 7ef02000
initcall: 08015770
2) when reset, DDR3 init success
U-Boot 2016.05 (Dec 24 2018 - 17:51:36 +0800)
initcall: 080155f0
U-Boot code: 08000000 -> 0807D6E8 BSS: -> 080CD51C
initcall: 080153ec
initcall: 08015634
Watchdog enabled
initcall: 08015450
initcall: 08015650
I2C: ready
initcall: 0801561c
DRAM: initcall: 08001834
initcall: 08015450
initcall: 08015450
initcall: 08015450
initcall: 08015890
Monitor len: 000CD51C
Ram size: 10000000
Ram top: 90000000
initcall: 08015414
initcall: 08015598
TLB table from 8fff0000 to 8fff4000
initcall: 080157d4
initcall: 0801554c
Reserving 821k for U-Boot at: 8ff22000
initcall: 0801551c
Reserving 16512k for malloc() at: 8ef02000
initcall: 08015770
Reserving 80 Bytes for Board Info at: 8ef01fb0
initcall: 0801542c
initcall: 080154e8
Reserving 216 Bytes for Global Data at: 8ef01ed8
initcall: 0801547c
initcall: 080157c4
initcall: 0801590c
initcall: 08015868
initcall: 080157e0
RAM Configuration:
Bank #0: 80000000 256 MiB
DRAM: 256 MiB
initcall: 08015460
New Stack Pointer is: 8ef01eb0
initcall: 08015450
initcall: 0801572c
initcall: 080156c0
Relocation Offset is: 87f22000
Relocating to 8ff22000, new gd at 8ef01ed8, sp at 8ef01eb0
initcall: 8ff37b44
initcall: 8ff37984
initcall: 08015b2c (relocated to 8ff37b2c)
dram_bank_mmu_setup: bank: 0
Please give me some ideas.
Regards,
David