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.

Creating a production ready flash image.

Hi,

I have a DVEVM daVinci board. I've configured the flash to boot up locally (load its own Kernel from flash) and mount itself a RAM Disk (again from flash). The process involved in this was fairly convoluted and for production I really just want a single flash image that our technitians can program the board with. It would contain the Uboot, envirenment variables, Kernel, and filesystem/RAMdisk.

Do you know how I can create such a thing? I have a JTAG emulator. Ideally I'd like to save my NOR flash as a binary file, and have the technicians reload it, the same way as Uboot is reloaded. I've tried using the 'Save Memory' feature in Code Composer Studio 3.3, but it doesn't work (random data).

What do you think?

Will.

  • If you are using the NOR flash for everything than you should be able to read it out directly with CCS, though CCS generates text files of values as opposed to a binary, on the other hand if you are using NAND flash than making a contiguous image like this is more troublesome as CCS is not aware of how to properly address NAND flash. This being said, for NAND you would have to write an application to manage reading the data out of NAND in a contiguous image, or more likely modify an existing flash writing utility to read out the values instead of just writing them.

  • I'm using NOR flash, and I can see the data fine in the 'Memory' window of CCS. Like I said, its the 'Save Memory' feature that seems to spew out random stuff.How would you usually get memory contents out of CCS?

    On the Memory Window I select the 'Physical View' to see the NOR Flash area. There's no such option of the Save Memory tool, but then it doesn't appear to be downloading program memory either ???

  • Will Berry said:
    How would you usually get memory contents out of CCS?

    Usually you would use the File -> Data -> Save... menu to extract data from a target, though this does regretably not save a raw binary, at least not in CCS 3.3, but rather various textual formats of data types or COFF. I understand that in CCSv4 you can deal with raw binary files though I have not yet tried that myself.

    Will Berry said:
    On the Memory Window I select the 'Physical View' to see the NOR Flash area. There's no such option of the Save Memory tool, but then it doesn't appear to be downloading program memory either ???

    I am not sure where the physical view part is coming from, if you go to View -> Memory CCS will open up a memory view window that will let you put in an address to view values at. The ability to save values from memory is actually seperate from the memory view window, and though the File -> Data -> Save... capability does not use a raw binary format, the values it collects should be the same as what you see in the memory view window, at least it has worked that way for me on my end.