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.

[参考译文] 编译器/TMS320F28377S:hex2000创建具有段宽度对齐问题的文件

Guru**** 2482225 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/791895/compiler-tms320f28377s-hex2000-create-file-with-section-width-align-problems

器件型号:TMS320F28377S

工具/软件:TI C/C++编译器

我使用该命令生成升级文件:

"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.1.LTS/bin/hex2000 "f05a.out"-boot -sci8 -a -o "f05a.txt"-map f05a.txt.map -memwidth=16 --romwidth=16

但映射文件为:

秘书长的报告

输入文件名:
输出格式:ASCII 十六进制

物理内存参数
默认数据宽度:16.
默认存储器宽度:8 (LS->MS)
默认输出宽度:8.

引导加载程序参数
表类型:串行端口(SCI 8位模式)
入口点:0x000a5365


输出转换图
--------------------------------------------------
00000000..003fff Page=0存储器宽度=8 ROM 宽度=8
--------------------------------------------------
输出文件:f05a.txt [B0..B7]

内容:00000000.0003e091引导表
.cinit:dest=00082030 size=0000106c width=00000002
binit:dest=000830c0 size=0000000a width=00000002
.text:dest=00090000 size=0001a5ac width=00000002
.TI.ramfunc:dest=00084000 size=0000002d width=00000002
econst:dest=00088000 size=00003968 width=00000002
switch:dest=00084040 size=00000042 width=00000002
text:ti_catalog_c2800_initF2837x_flashfuncs:dest=00082004 size=00000027 width=00000002
ti_catalog_c2800_initF2837x_begin:dest=00082000 size=00000002 width=00000002

--------------------------------------------------
000000000000.003fff Page=1内存宽度=8 ROM 宽度=8“*默认页1”
--------------------------------------------------
无内容

我的问题是:

所有段的宽度为2、但是在对闪存进行编程时会产生错误、因为地址与2对齐。 如何更改它?

//
//一次对4个字进行编程,64位
//
oReturnCheck = fapi_issueProgrammingCommand ((UINT32 *) BlockHeader.DestAddr、
微型缓冲器、
sizeof (miniBuffer)、
0、
0、
Fapi_AutoEccGeneration);

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    为什么要给 memwidth 和 romwidth? 是否有您要尝试解决的特定需求。

    您能否尝试以下基本命令:hex2000 -boot -a -sci8 <.out filename>-o