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.

Trying to bring up WinCE 7 on a Sitara AM3505 from 8-bit NAND flash

Other Parts Discussed in Thread: AM3505

Hi,

 

I am trying to bring up WinCE 7 on a Sitara AM3505 from 8-bit NAND flash (as opposed to 16-bit on the Logic PD reference board).

 

I started with the TI ARM A8 version 2 BSP, and modified the code to do 8-bit NAND including:

 

    BSP_GPMC_NAND_CONFIG1 set to 0x00000800

 

    In FMD.C:

        Shifting the ECC bytes in by removing 1 'bad block' from the NAND_SPARE_AREA data structure (now offset 1-12 vs 2-13)

        Setting ECCCfg with GPMC_ECC_CONFIG_8BIT instead of GPMC_ECC_CONFIG_16BIT

        Modifying the bad block detection by only looking at the one bad block in NAND_SPARE_AREA

 

I really struggled to get the XLDR to come up until I settled into the changes listed above, but eventually got it to load eboot, and then used eboot to develop an OS image.

 

Now that I've got an OS build in shape, I wanted to burn it into flash so some stand-alone testing could be done.  And now the whole thing is unraveling on me again. 

 

I can download the OS image, but it won't load from flash.  It gets the wrong header info and does the wrong thing.  If I have the bootloader read back the beginning of the burned image, it looks OK.  But dumping further in reveals chunks of unprogrammed memory.

 

Another strange thing is that we seem to have a lot of bad blocks.  I'm not sure why, but even the TI Flash tool (version 1.6) reports bad blocks.  I force erased them all out of frustration so they would all look good, but this doesn't work as I would hope.  I realize I've lost the factory bad block markings, but I've run code that will mark blocks as bad and things still don't work as they should (even when noticing and skipping 'bad' blocks.

 

So - I think I could use some help in untangling my flash situation.  I've got a state now where I can build / download / run an AM35x-nand.raw (XLDR + EBOOT) and do KITL, but can't flash that OS image (without KITL) and successfully boot it up.

 

I've kept all offsets the same - it still reserves 60 MB for the NK.BIN, and mine is only 21MB, so I'm at a loss as to why I can flash some stuff (like the bootloader) but not the OS image.  Any ideas would be greatly appreciated.

 

thanks,

Lynne

 

  • hey,

    even im facing the same problem,,,,r u able to detect the nand's manufacture ID and device id....... the boot gets stuck after below

    Microsoft Windows CE Bootloader Common Library Version 1.4 Built Jul 20 2012 10:20:54

    Texas Instruments Windows CE EBOOT for AM35x, Built Jul 27 2012 at 08:42:48
    EBOOT Version 1.2, BSP 2.00.00.02

    System ready!
    Preparing for download...
    INFO: Predownload....


    pls share the changes u made....