AnsweredAssumed Answered

CW download  uboot failed

Question asked by wei yang on Aug 31, 2015
Latest reply on Sep 14, 2015 by lunminliang

Dear all

     I am new to CW, at present i use 10.4.0 .I use it download uboot. but always failed .

     I want to use boot from  nandflash , i modify  ${ProjDirPath}/CFG/8309SOM_init_core.tcl

 

        # CS0 - 8MB NOR FLASH

        # BR0 base address at 0xff800000, port size 16 bit, GPCM, valid

        mem [IMMR 0x5008] = 0xff801001 

        # OR0 8MB flash size, 15 w.s., timing relaxed

        #writemem.l 0xe0005004 0xff806ff7

        mem [IMMR 0x500c] = 0xff806ff7

        # CS1 - NAND Flash 32 KB

        # BR1 base address at 0xF0000000, port size 8 bit, FCM, valid

        mem [IMMR 0x5000] = 0xf0000c21

        # OR1 32KB size

        #writemem.l 0xe000500c 0xFFFF8796

        mem [IMMR 0x5004] = 0xFFFF8796

       

       # CS0 - 8MB NAND FLASH

       # BR0 base address at 0xff800000, port size 16 bit, GPCM, valid

       mem [IMMR 0x5000] = 0xff801001 

       # OR0 8MB flash size, 15 w.s., timing relaxed

       #writemem.l 0xe0005004 0xff806ff7

       mem [IMMR 0x5004] = 0xff806ff7

       # CS1 - NOR Flash 32 KB

       # BR1 base address at 0xF0000000, port size 8 bit, FCM, valid

       mem [IMMR 0x5008] = 0xf0000c21

       # OR1 32KB size

       #writemem.l 0xe000500c 0xFFFF8796

       mem [IMMR 0x500c] = 0xFFFF8796

 

       I  download  and debug  it   ,find OR0 register  value is

         

        I    think  OR0 is 0xffff07ae, reference  the MPC8309RM.pdf

        I dont know how to solve it ,who can give me some advise .

Thanks

yang wei .........

Outcomes