Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

OMAP-L138: Please clarify the settings between boot loader program and gel file to boot from NAND flash

$
0
0

Part Number:OMAP-L138

Dear Team,

I am using TI’s TMDSLCDK OMAP-L138 evaluation board. In that I want to load my application (boot.ais and program.bin) in NAND flash so that program will boot from NAND to run independently after reset at 300 MHz processor speed and 150 MHz DDR2.

So I checked the settings of PLL0, PLL1 and DDR2 defined in the OMAP-L138 gel file and compare it with the NAND boot loader program (comes with the OMAPL138_StarterWare_1_10_04_01) and found the following differences in PLL0 Div3 and DDR2 SDCR

 

PLL0

 

 

OMAP-L138_LCDK.gel file

NAND Bootloader

 

 

 

Clock src

0

0

Multiplier

24

24

Postdiv

1

1

 

Prediv

Not given

0

Plldiv1

0

0

Plldiv3

11

2

Why there is a change and which setting will I put in bootloader program

Plldiv7

5

5

 

PLL1

 

 

OMAP-L138_LCDK.gel file

NAND Bootloader

 

 

 

Multiplier

24

24

Postdiv

1

1

Plldiv1

0

0

Plldiv2

1

1

Plldiv3

2

2

 

DDR2

 

 

OMAP-L138_LCDK.gel file

NAND Boot loader

 

 

 

SDCR

0x00134832

0x0013C832

Change: TIMUNLOCK

1SET

Timing unlock. Controls the write permission settings for the SDRAM Timing 1 Register and SDRAM Timing 2 Register

SDRCR

0x00000492

0x00000492

SDTMR1

0x264A3209

0x264A3209

SDTMR2

0x3C14C722

0x3C14C722

About SDCR change:

 In boot loader program

In DDR2 configuration function “DDRInit” in bl_platform.c of NAND boot loader program, at line number 620 message is that it will clear “timing unlock” and the value of “DDR2_MDDR_SDCR_BOOTUNLOCK” is

#define DDR2_MDDR_SDCR_BOOTUNLOCK (0x00800000u)

 

/* CLEAR TIMINGUNLOCK */

   HWREG(SOC_DDR2_0_CTRL_REGS + DDR2_MDDR_SDCR) &= ~DDR2_MDDR_SDCR_BOOTUNLOCK;

 

In Gel file setting

       In DDR2 configuration function “DEVICE_DDRConfig”

   EMIFDDR_SDCR   &= ~0x00008000; // Clear TIMUNLOCK

 

Pkease suggest us which settings we need to put in boot loader program to boot our application from NAND flash

 

Regards,

Ashish


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>