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.

CCS读取多帧bmp文件为.dat文件



1.利用C6678在CCS上如何将多帧bmp图像保存成C6678可识别的.dat文件呢?是每一帧bmp都要加有1651开头的数据格式吗,还是只需要在第一帧加这个格式呢?

2.如何读入多帧.dat文件进行处理呢?是只能直接用load memory读入,image analyzer观察多帧图像吗?

  • 1. CCS的.dat格式可以到CCS Help (Help -> Help Contents -> Code Composer Studio Help -> Views and Editors -> Memory View -> Data File Formats)里查看,一个.dat文件只需文件头一个1651.

    MagicNumber Format StartingAddress PageNum Length [NewFormat]

    MagicNumber—fixed at 1651.
    Format—a number from 1 to 4, indicating the format of the samples in the file. This number represents a data format: (1) hexadecimal, (2) integer, (3) long, (4) float, or (9) Use new scheme
    StartingAddress—starting address of the block that was saved.
    PageNum—page number the block was taken from.
    Length—number of samples in the block.
    NewFormat—Format (9); the new scheme. This is optional when usign the legacy formats 1 - 4

    2. CCS的话,只能通过load memory读入。也可以自己写程序写dat文件。
  • 对上述多帧图像进行Image Analyzer是和一帧图像的一样吗?为什么我的图像只显示一帧。谢谢。
  • Image Analyzer的用法一般是设置断点,在收到一张完整的图像后,refresh显示最新的图像。如果您要连续显示的话,可以尝试下面的Continuous Refresh模式。
    The data can be updated in several ways:
    software-dl.ti.com/.../ccs_debug-image.html