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.

Starter Ware Flash Writer Not Running on AM335X EVM from SD/MMC

I've compied the Starter Ware 2.00.00.06 Flash Write files and created a CCS project for the AM335xEVM.  I used an existing link cmd file from one of the pre-existing example projects and was able to build the binary and put on SD/MMC card.  The application boots from the SD/MMC file but does not detect the Winbond SPI Flash device properly as shown below.  I also had to comment-out the getPlatform call to get it to run.

1:  Is there a version of the Flash Writer code and CCS project for the AM335x EVM that will run on a SD/MMC card ???

2:  It appears like there is an issue with the reading of the ID from the SPI Flash...appears to be off by one byte... Any thoughts on this issue ???

3:  The version of the Flash Write appears to be hard-coded to support the Winbond Flash.  Is this correct and is there a more generic version ???

Here is the output of the code running from SD/MMC with the ID Error....I believe the ID should read  EF 40 17   ( NOT  FF EF 40)

Copying application image from MMC/SD card to RAM
Jumping to StarterWare Application...

Programming Flash Application Started
SF: Got idcode ff ef 40
Checking if Winbond flash writer can be used..
No known Serial Flash found

     

  • Hi,

    I would like to answer to your queries 1 an 3.  

    Q1. Unfortunately there is no such example for StarterWare

    Q3.There is no generic version.

    Regards,

    Sujith

  • Hi,

    I've taken the delivered SPI Flash Writer code and built it to run on an SD/MMC card.   I'm getting very different results when built  with the Debug configuration verses the Release configuration.  The Debug SD/MMC build seems to work very reliable running from SD/MMC and can program the 335X SPI Flash with a MLO and application.   The Release build does NOT run reliably and stops at random points in the program.  As mentioned in my previous post , data read from the SPI Flash device , such as the manufacturers ID , is no read correctly...... It reads the ID as  FF EF 40 but the correct ID is actually  EF 40 17.  Also the program sometimes will lock-up during a read/program/erase cycle.  

    I've checked the configuration and appear to be consistant / accurate unless I missed something.....My guess is that there could be some sort of timing issue with the released SPI Writer driver when build for a Release configuration.

    1: Has there been any reports of this and any fixes available ???

    2:  Is there any configuration settings I should specifically look at that may be the root cause of this erratic program behavior for the Release configuration ???

    3:  Do you have any suggeston on what to try and where since you are more fimiliar with this low-level driver ???

    Thanks