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.

关于CMD文件



是不是每建立一个DSP工程,都要新建一个CMD文件?

   我自己建立了一个工程28335文件,复制官方实例文件中的CMD文件,官方文件夹中给的CMD文件很多,具体怎么使用啊?比如说官方实例文件夹中的:

28335_RAM_lnk.cmd

F28335.cmd

DSP2833x_Headers_BIOS.cmd

DSP2833x_Headers_nonBIOS.cmd

  • 如果您只是烧写到RAM中仿真,掉电就丢失:

    1) 28335_RAM_lnk.cmd

    2) DSP2833x_Headers_nonBIOS.cmd

    如果你要烧写到Flash中,掉电不丢失:

    1) F28335.cmd

    2) DSP2833x_Headers_nonBIOS.cmd

    前两者都是针对无BIOS的情况,这也是一般的情况。 如果用到BIOS,另当别论。

  • 可是我复制DSP2833x_Headers_nonBIOS.cmd到我的工程,也包含了其他一些头文件,老是遇到一些错误和报警,比如:

    Severity and Description Path Resource Location Creation Time Id

    errors encountered during linking; "can_tx.out" not built can_tx line 0 1339982114005 1373

    no valid memory range(NULL) available for placement of ".text" can_tx line 0 1339982114001 1362

    placement fails for object ".adc_cal", size 0x7 (page 0).  Available ranges: can_tx line 0 1339982114004 1370

    placement fails for object ".cinit", size 0x16 (page 0).  Available ranges: can_tx line 0 1339982114003 1368

    placement fails for object ".econst", size 0x100 (page 0).  Available ranges: can_tx line 0 1339982114002 1365

    placement fails for object ".reset", size 0x2 (page 0).  Available ranges: can_tx line 0 1339982114004 1371

    placement fails for object ".text", size 0xf32 (page 0) can_tx line 0 1339982114001 1363

    placement fails for object "codestart", size 0x2 (page 0).  Available ranges: can_tx line 0 1339982114004 1372

    placement fails for object "csm_rsvd", size 0x76 (page 0).  Available ranges: can_tx line 0 1339982114003 1366

    placement fails for object "csmpasswds", size 0x8 (page 0).  Available ranges: can_tx line 0 1339982114003 1369

    placement fails for object "ramfuncs", size 0x1f (page 0).  Available ranges: can_tx line 0 1339982114003 1367

    run placement fails for object ".stack", size 0x300 (page 1).  Available ranges: DEV_EMU      size: 0x180        unused: 0xb0         max hole: 0xb0 FLASH_REGS   size: 0x60         unused: 0x58         max hole: 0x58 CSM          size: 0x10         unused: 0x0          max hole: 0x0 ADC_MIRROR   size: 0x10         unused: 0x0          max hole: 0x0 XINTF        size: 0x20         unused: 0x2          max hole: 0x2 CPU_TIMER0   size: 0x8          unused: 0x0          max hole: 0x0 CPU_TIMER1   size: 0x8          unused: 0x0          max hole: 0x0 CPU_TIMER2   size: 0x8          unused: 0x0          max hole: 0x0 PIE_CTRL     size: 0x20         unused: 0x6          max hole: 0x6 PIE_VECT     size: 0x100        unused: 0x0          max hole: 0x0 DMA          size: 0x200        unused: 0x120        max hole: 0x120 MCBSPA       size: 0x40         unused: 0x1b         max hole: 0x1b MCBSPB       size: 0x40         unused: 0x1b         max hole: 0x1b ECANA        size: 0x40         unused: 0xc          max hole: 0xc ECANA_LAM    size: 0x40         unused: 0x0          max hole: 0x0 ECANA_MOTS   size: 0x40         unused: 0x0          max hole: 0x0 ECANA_MOTO   size: 0x40         unused: 0x0          max hole: 0x0 ECANA_MBOX   size: 0x100        unused: 0x0          max hole: 0x0 ECANB        size: 0x40         unused: 0xc          max hole: 0xc ECANB_LAM    size: 0x40         unused: 0x0          max hole: 0x0 ECANB_MOTS   size: 0x40         unused: 0x0          max hole: 0x0 ECANB_MOTO   size: 0x40         unused: 0x0          max hole: 0x0 ECANB_MBOX   size: 0x100        unused: 0x0          max hole: 0x0 EPWM1        size: 0x22         unused: 0x0          max hole: 0x0 EPWM2        size: 0x22         unused: 0x0          max hole: 0x0 EPWM3        size: 0x22         unused: 0x0          max hole: 0x0 EPWM4        size: 0x22         unused: 0x0          max hole: 0x0 EPWM5        size: 0x22         unused: 0x0          max hole: 0x0 EPWM6        size: 0x22         unused: 0x0          max hole: 0x0 ECAP1        size: 0x20         unused: 0x0          max hole: 0x0 ECAP2        size: 0x20         unused: 0x0          max hole: 0x0 ECAP3        size: 0x20         unused: 0x0          max hole: 0x0 ECAP4        size: 0x20         unused: 0x0          max hole: 0x0 ECAP5        size: 0x20         unused: 0x0          max hole: 0x0 ECAP6        size: 0x20         unused: 0x0          max hole: 0x0 EQEP1        size: 0x40         unused: 0x0          max hole: 0x0 EQEP2        size: 0x40         unused: 0x0          max hole: 0x0 GPIOCTRL     size: 0x40         unused: 0x12         max hole: 0x12 GPIODAT      size: 0x20         unused: 0x0          max hole: 0x0 GPIOINT      size: 0x20         unused: 0x16         max hole: 0x16 SYSTEM       size: 0x20         unused: 0x0          max hole: 0x0 SPIA         size: 0x10         unused: 0x0          max hole: 0x0 SCIA         size: 0x10         unused: 0x0          max hole: 0x0 XINTRUPT     size: 0x10         unused: 0x0          max hole: 0x0 ADC          size: 0x20         unused: 0x2          max hole: 0x2 SCIB         size: 0x10         unused: 0x0          max hole: 0x0 SCIC         size: 0x10         unused: 0x0          max hole: 0x0 I2CA         size: 0x40         unused: 0x1e         max hole: 0x1e CSM_PWL      size: 0x8          unused: 0x0          max hole: 0x0 PARTID       size: 0x1          unused: 0x0          max hole: 0x0 can_tx line 0 1339982114002 1364

    creating output section ".adc_cal" without a SECTIONS specification can_tx line 0 1339982113995 1352

    creating output section ".cinit" without a SECTIONS specification can_tx line 0 1339982113995 1353

    creating output section ".ebss" without a SECTIONS specification can_tx line 0 1339982113996 1354

    creating output section ".econst" without a SECTIONS specification can_tx line 0 1339982113998 1355

    creating output section ".reset" without a SECTIONS specification can_tx line 0 1339982113999 1356

    creating output section ".text" without a SECTIONS specification can_tx line 0 1339982113999 1357

    creating output section "codestart" without a SECTIONS specification can_tx line 0 1339982113999 1358

    creating output section "csm_rsvd" without a SECTIONS specification can_tx line 0 1339982113999 1359

    creating output section "csmpasswds" without a SECTIONS specification can_tx line 0 1339982114000 1360

    creating output section "ramfuncs" without a SECTIONS specification can_tx line 0 1339982114000 1361

    last line of file ends without a newline can_tx/Source main.c line 6 1339982113994 1351

  • 建议楼主用TI的历程,在历程上修改。

  • 关键我还是不明白这些错误在哪里,在TI 的例程中都可以通用,建个工程就不能用,有点搞蒙了

  • 您要跟TI历程一个一个文件比较,到底少添加了哪个文件。

    最好的办法就是直接在TI的历程上修改,复制一个历程,在相同文件夹下改个名字即可。