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.

I need to get some data into a particular location in SPI flash memory.

Other Parts Discussed in Thread: OMAP-L138

I’m using CCS v 4.2 for development. I need to get some data into a particular location in SPI flash memory. This flash memory won’t be loaded into RAM by the boot loader; it will be read by the application itself. I’m using sfh_OMAP-L138.exe over a serial line to flash the memory. How do I go about creating the data and then using sfh_OMAP-L138.exe to put it in the right location in flash memory?

  • You can use the -appFlashBlock and give the block number where you want to flash the data. For example to flash "program.out" to block 10, you can do

    sfh_OMAP-L139.exe -flash_noubl program.out -appFlashBlock 10

    Jeff

  • jc-ti said:
    You can use the -appFlashBlock

    I tried doing that before and had no luck getting it into flash.  I'll try it again.  Does it place a header in front of the data like it does if you download an application image file?

    How do you go about creating the data file that you want to evenutally place in flash? 

  • If you use the -flash_noubl option it does not place any headers.

    For the file itself, what kind of data is it? It should just be in a raw binary format.

    Jeff

  • jc-ti said:

    For the file itself, what kind of data is it? It should just be in a raw binary format.

    It's just a data structure my application will use.  Some lengths and values.  I'll need to be able to make it look like integers in flash.  I've never had to create an image file other than what gets output by standard TI tools.  I'm not sure what tool would allow me to create an image file that had arbitrary data in it.