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.

Solved a quirky NOR Flash access issue on LogicPD AM1808evm kit

Other Parts Discussed in Thread: AM1808

We are using the LogicPD kit for the AM1808 processor for early development.

We plan to boot from NOR Flash in our target (U-boot, u-boot env and uImage+cpio.gz in NOR Flash).

We found that when attempting to write a file to the NOR Flash greater than 512K in size (uImage+cpio.gz is about 6.4MB), that the data wraps-around at a 512K boundary.

This morning I stumbled across the root cause!  If there is an SD card even sitting in (not pushed in all the way, but just sitting in) the MMC slot, it somehow causes the "512K wrap-around issue.  I suspect there is some code that looks for the presence of the SD card (whether or not it's pushed in all the way) and then asserts a 512K block size for the MTD partition of the SD card, but I have not confirmed that.

So far I have learned that when attempting to access the NOR Flash on the User Interface board of the AM1808evm kit, the SD card must be completely removed from the MMC slot.

The documentation does not mention this helpful fact.  I found the hard way that with the SD card mounted (pushed in all the way in the MMC slot) you cannot write to the NOR Flash at all (apparently a Pin mux conflict).  Now I find that for proper NOR Flash access the SD card must be completely removed from the MMC slot.

I am posting this to (hopefully) save other developers from wasting the time we did before accidentally stumbling across the root cause of the NOR Flash "512K wrap-around" issue on the LogicPD AM1808evm development kit.

Happy Penguins everyone!