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.

SPI_FLASH Reading always same address PD logic L138 board

Hi

Having a problem with reading the SPI flash with the PD logic L-138 board. It seems that what ever address I try to reach into it always reading from the same location all the time. Its the same piece of code as per what the CD came with and no changes expect on the init where I removed the 5us delay which doesnt seem to be doing much.

Also I like to know if it might be possible to use a file like sound.wav on the CCS project and read it directly without having to burn it into the flash first? How would I go about doing something like that?

Samuel

  • Samuel,

    There are several examples of testing the SPI flash that we provide in our software. For low level drivers, you can take a look at the Starterware package. for a simple read write test. Linux, BIOS SDK packages also come with OS level drivers for SPI. For boot image flashing we provide flashing utilities. It isn`t entirely clear what you are trying to achieve in your project. could you elaborate.

    If you are simply trying to write a wave file to flash. you can use the SPI writer program from the Serial Flash and boot utilties to do that after converting it into binary format. If the objective is to read an file then this is possible in development environment using file operations that allow you to read a file over the emulator. If you are using some encoded format you will need to decode the data before you can use it in your application.

    Regards,

    Rahul