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.

c6678 i2c eeprom boot方法及工具使用方法



ti的各位技术支持好,我想将一个6678小程序放入在i2c eeprom中,然后直接从eeprom中boot这个小程序,一直没有什么头绪,前两天ti个技术工程师建议我参考“C:\ti\mcsdk_2_01_02_06\tools\boot_loader 里的例子”中的例子,我认真查看了下“C:\ti\mcsdk_2_01_02_06\tools\boot_loader\examples”中的例程,没有发现我需要的内容。现在我有如下疑问,想再详细咨询下,还请各位技术支持大神指点:

问题1:我想要烧进i2c eeprom中的小程序需要进行格式转换吗?如果需要,要用哪些工具重新生成镜像文件?最终的镜像文件是什么格式的?

问题2:如果是多核程序(多个.out文件)如何生成镜像文件?

问题3:“C:\ti\mcsdk_2_01_02_06\tools”目录下的“bttbl2hfile”和“hfile2array”是干什么的?这两个工具如何使用,它们的redeme写的太简单了。

请各位大神详细解答,越详细越好。

  • 1. .out =》boot table
    通过hex6x.exe转化
    转化过程需引导文件.rmd,其文件内容为:
    ...:\...\LED_Multicore_Test_maincore0.out (.out 文件所在目录位置)
    -a (output ASCII hex format)
    -boot (select boot mode)
    -e _c_int00 (指定entry point)
    -order L (指定data ordering 是小端)

    ROMS
    {
    ROM1: org = 0x400, length = 0x10000, memwidth =32, romwidth = 32
    Files = {...:\...\LED_Multicore_Test_maincore0.btbl} (指定输出文件名称及位置)
    }

    得到LED_Multicore_Test_maincore0.btbl文件。
    对其他核的运行程序.out文件做相同处理,得到:
    LED_Multicore_Test_maincore0.btbl
    LED_Multicore_Test_Subcore1.btbl
    LED_Multicore_Test_Subcore2.btbl
    LED_Multicore_Test_Subcore3.btbl
    四个文件。

    2. 多个boot table 融合,通过 mergebtbl.exe 转化
    得到多核的boot table文件multicore.btbl

    3. 把boot table 转换成 bootloader要求的格式
    通过bconvert64x.exe 转化,得到multicore.btbl.be

    4. 把.btbl.be文件转化为.btbl.be.i2c文件
    通过b2i2c.exe转化,得到multicore.btbl.be.i2c文件

    5. 把.btbl.be.i2c文件转化为.btbl.be.i2c.ccs
    通过b2ccs.exe转化,得到multicore.btbl.be.i2c.ccs文件


    6. 把.btbl.be.i2c.ccs文件转化为.ccs文件
    通过romparse.exe转化


    7. 将.ccs文件转化为.swap.bin文件
    通过ccs2bin.exe转化:

    得到i2crom.swap.bin文件,

    8 通过MCSDK下的烧写工具将此文件烧进FLASH即可。

  • Thomas Yang1 :

    非常感谢您如此详细的回答,我试一下。

  • Thomas Yang1 :

    出差几天没有弄,昨天回来弄了下,您说的bconvert64x.exe b2i2c.exe b2ccs.exe romparse.exe ccs2bin.exe等工具怎么用?有相关文档吗?