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.

Cannot set IBANKPOS bit(SDCR;DDR2/mDDR Memory Controller Register) in SD card boot sequence.

hi~ all~

my test board is almost same as dm355 evm except memory. 

first, i tried to boot with sd card. it works good.

but  RAM test was failed.

my test board should be set IBANKPOS bit as '1' because SDRAM in my test board has a bit  difference with that in DM355 EVM.

IBANKPOS is bit26 in SDRAM Configuration Register (SDCR)

so i tried to change IBANKPOS bit to '1' in device.c like below codes(dm355_sd_boot-4\DM35x_FlashAndBootUtils_1_10_sd\DM35x\Common\src\device.c in dm355_sd_boot-4.tgz.tar)

 

Uint32 DEVICE_DDR2Init()

{

. . .

 

 

                DDR->SDBCR =  /*0x00008000*/0x04008000  | //[test  here is  IBANKPOS....

                (DDR_NM << 14)      |

                (DDR_CL << 9)       |

                (DDR_IBANK << 4)    | 

                (DDR_PAGESIZE <<0); 

               DDR->SDBCR2 =  0x00000004;//[test

 

. . .

                DDR->SDBCR =  /*0x00000000*/0x04000000 |//test here is  IBANKPOS....

                (DDR_NM << 14)      |

                (DDR_CL << 9)       |

                (DDR_IBANK << 4)    |

                (DDR_PAGESIZE <<0);

                trvx(DDR->SDBCR); //[test   Print IBANKPOS.. but you cannot see this bit as log in terminal

}

is there anybody who knows some clue about this problem. please help.. :-)

if  somebody should use different sdram, where is the location that can be modified in case of sd boot?