CW download  uboot failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CW download  uboot failed

1,054 Views
威杨
Contributor III

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

          70468_70468.pngpastedImage_1.png

        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 .........

Labels (1)
0 Kudos
Reply
3 Replies

758 Views
lunminliang
NXP Employee
NXP Employee

Hello wei yang,

I could not quite understand what you are doing?

You're downloading u-boot binary from CodeWarrior to MPC8309SOM?

You changed the .tcl file from the "black" one to the “red” one? Trying to set OR0 to be 0xff806ff7 but you see it actually got 0xffff8796? And you think it should be 0xffff07ae although you set it to be 0xff806ff7? Looks puzzled.

Are you trying to debug u-boot?

Have a great day,
Lunmin

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

758 Views
威杨
Contributor III

Thanks Lunmin

        I am downloading u-boot binary from CodeWarrior to MPC8309SOM,  the CW project for MPC8309SOM is boot from norflash, but i want boot  it  from   nandflash,so i modify .tcl file from the "black" one to the “red” one, when i download it  which show  read flash ID error , current, only have the problem.

could you give me some advise.

have a nice day,

yang wei

0 Kudos
Reply

758 Views
lunminliang
NXP Employee
NXP Employee

Hello wei yang,

Why you need to download the binary into board?

If you're trying to flash the u-boot image into NAND, use the flash programmer and import the task 8309SOM_NAND.xml.

Regards

Lunmin

0 Kudos
Reply