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.

CCS6 别的项目都可以正常生成HEX和TXT烧录文件,现在这个项目生成不了

Other Parts Discussed in Thread: MSP430F5510

CCS6 别的项目都可以正常生成HEX和TXT烧录文件,现在这个项目生成不了,求助大家。

这个项目调用了MSP430F5510的USB 库,不知道跟这个有关系没?文件结构如图所示

现在明明勾了 ‘enable msp430 hex utility’  但是不生成hex文件,ti-txt文件也试过也不生成。

看了目录只有out文件生成。

因为需要批量生产,所以需要生成hex文件。特此求各位达人指点迷津。

  • 不应该啊。能够把控制台的输出信息和生成hex文件的配置界面截图发上来看看吗?

  • <Linking>
    'Finished building target: QR Scanner HID with 5510 inside.out'
    ' '
    'Invoking: MSP430 Hex Utility'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.7/bin/hex430" --byte --memwidth=8 --romwidth=8 --ti_txt -o "QR Scanner HID with 5510 inside.txt" "QR Scanner HID with 5510 inside.out"
    Translating to TI-TXT format...
    "QR Scanner HID with 5510 inside.out" .text ==> .text
    "QR Scanner HID with 5510 inside.out" .const ==> .const
    "QR Scanner HID with 5510 inside.out" .cinit ==> .cinit
    "QR Scanner HID with 5510 inside.out" RTC ==> RTC
    "QR Scanner HID with 5510 inside.out" PORT2 ==> PORT2
    "QR Scanner HID with 5510 inside.out" TIMER2_A1 ==> TIMER2_A1
    "QR Scanner HID with 5510 inside.out" TIMER2_A0 ==> TIMER2_A0
    "QR Scanner HID with 5510 inside.out" USCI_B1 ==> USCI_B1
    "QR Scanner HID with 5510 inside.out" USCI_A1 ==> USCI_A1
    "QR Scanner HID with 5510 inside.out" PORT1 ==> PORT1
    "QR Scanner HID with 5510 inside.out" TIMER1_A1 ==> TIMER1_A1
    "QR Scanner HID with 5510 inside.out" TIMER1_A0 ==> TIMER1_A0
    "QR Scanner HID with 5510 inside.out" DMA ==> DMA
    "QR Scanner HID with 5510 inside.out" USB_UBM ==> USB_UBM
    "QR Scanner HID with 5510 inside.out" TIMER0_A1 ==> TIMER0_A1
    "QR Scanner HID with 5510 inside.out" TIMER0_A0 ==> TIMER0_A0
    "QR Scanner HID with 5510 inside.out" ADC10 ==> ADC10
    "QR Scanner HID with 5510 inside.out" USCI_B0 ==> USCI_B0
    "QR Scanner HID with 5510 inside.out" USCI_A0 ==> USCI_A0
    "QR Scanner HID with 5510 inside.out" WDT ==> WDT
    "QR Scanner HID with 5510 inside.out" TIMER0_B1 ==> TIMER0_B1
    "QR Scanner HID with 5510 inside.out" TIMER0_B0 ==> TIMER0_B0
    "QR Scanner HID with 5510 inside.out" COMP_B ==> COMP_B
    "QR Scanner HID with 5510 inside.out" UNMI ==> UNMI
    "QR Scanner HID with 5510 inside.out" SYSNMI ==> SYSNMI
    "QR Scanner HID with 5510 inside.out" .reset ==> .reset
    'Finished building: QR Scanner HID with 5510 inside.txt'
    ' '
    "C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.7/bin/hex430" --ti_txt "QR Scanner HID with 5510 inside.out" -o "QR Scanner HID with 5510 inside.txt" -order MS -romwidth 16
    Translating to TI-TXT format...
    "QR Scanner HID with 5510 inside.out" .text ==> .text
    "QR Scanner HID with 5510 inside.out" .const ==> .const
    "QR Scanner HID with 5510 inside.out" .cinit ==> .cinit
    "QR Scanner HID with 5510 inside.out" RTC ==> RTC
    "QR Scanner HID with 5510 inside.out" PORT2 ==> PORT2
    "QR Scanner HID with 5510 inside.out" TIMER2_A1 ==> TIMER2_A1
    "QR Scanner HID with 5510 inside.out" TIMER2_A0 ==> TIMER2_A0
    "QR Scanner HID with 5510 inside.out" USCI_B1 ==> USCI_B1
    "QR Scanner HID with 5510 inside.out" USCI_A1 ==> USCI_A1
    "QR Scanner HID with 5510 inside.out" PORT1 ==> PORT1
    "QR Scanner HID with 5510 inside.out" TIMER1_A1 ==> TIMER1_A1
    "QR Scanner HID with 5510 inside.out" TIMER1_A0 ==> TIMER1_A0
    "QR Scanner HID with 5510 inside.out" DMA ==> DMA
    "QR Scanner HID with 5510 inside.out" USB_UBM ==> USB_UBM
    "QR Scanner HID with 5510 inside.out" TIMER0_A1 ==> TIMER0_A1
    "QR Scanner HID with 5510 inside.out" TIMER0_A0 ==> TIMER0_A0
    "QR Scanner HID with 5510 inside.out" ADC10 ==> ADC10
    "QR Scanner HID with 5510 inside.out" USCI_B0 ==> USCI_B0
    "QR Scanner HID with 5510 inside.out" USCI_A0 ==> USCI_A0
    "QR Scanner HID with 5510 inside.out" WDT ==> WDT
    "QR Scanner HID with 5510 inside.out" TIMER0_B1 ==> TIMER0_B1
    "QR Scanner HID with 5510 inside.out" TIMER0_B0 ==> TIMER0_B0
    "QR Scanner HID with 5510 inside.out" COMP_B ==> COMP_B
    "QR Scanner HID with 5510 inside.out" UNMI ==> UNMI
    "QR Scanner HID with 5510 inside.out" SYSNMI ==> SYSNMI
    "QR Scanner HID with 5510 inside.out" .reset ==> .reset
    "C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.7/bin/hex430" -i "QR Scanner HID with 5510 inside.out" -o "QR Scanner HID with 5510 inside.hex" -order MS -romwidth 16
    Translating to Intel format...
    "QR Scanner HID with 5510 inside.out" .text ==> .text
    "QR Scanner HID with 5510 inside.out" .const ==> .const
    "QR Scanner HID with 5510 inside.out" .cinit ==> .cinit
    "QR Scanner HID with 5510 inside.out" RTC ==> RTC
    "QR Scanner HID with 5510 inside.out" PORT2 ==> PORT2
    "QR Scanner HID with 5510 inside.out" TIMER2_A1 ==> TIMER2_A1
    "QR Scanner HID with 5510 inside.out" TIMER2_A0 ==> TIMER2_A0
    "QR Scanner HID with 5510 inside.out" USCI_B1 ==> USCI_B1
    "QR Scanner HID with 5510 inside.out" USCI_A1 ==> USCI_A1
    "QR Scanner HID with 5510 inside.out" PORT1 ==> PORT1
    "QR Scanner HID with 5510 inside.out" TIMER1_A1 ==> TIMER1_A1
    "QR Scanner HID with 5510 inside.out" TIMER1_A0 ==> TIMER1_A0
    "QR Scanner HID with 5510 inside.out" DMA ==> DMA
    "QR Scanner HID with 5510 inside.out" USB_UBM ==> USB_UBM
    "QR Scanner HID with 5510 inside.out" TIMER0_A1 ==> TIMER0_A1
    "QR Scanner HID with 5510 inside.out" TIMER0_A0 ==> TIMER0_A0
    "QR Scanner HID with 5510 inside.out" ADC10 ==> ADC10
    "QR Scanner HID with 5510 inside.out" USCI_B0 ==> USCI_B0
    "QR Scanner HID with 5510 inside.out" USCI_A0 ==> USCI_A0
    "QR Scanner HID with 5510 inside.out" WDT ==> WDT
    "QR Scanner HID with 5510 inside.out" TIMER0_B1 ==> TIMER0_B1
    "QR Scanner HID with 5510 inside.out" TIMER0_B0 ==> TIMER0_B0
    "QR Scanner HID with 5510 inside.out" COMP_B ==> COMP_B
    "QR Scanner HID with 5510 inside.out" UNMI ==> UNMI
    "QR Scanner HID with 5510 inside.out" SYSNMI ==> SYSNMI
    "QR Scanner HID with 5510 inside.out" .reset ==> .reset
    "C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.7/bin/hex430" --ti_txt "QR Scanner HID with 5510 inside.out" -o "QR Scanner HID with 5510 inside.txt" -order MS -romwidth 16
    Translating to TI-TXT format...
    "QR Scanner HID with 5510 inside.out" .text ==> .text
    "QR Scanner HID with 5510 inside.out" .const ==> .const
    "QR Scanner HID with 5510 inside.out" .cinit ==> .cinit
    "QR Scanner HID with 5510 inside.out" RTC ==> RTC
    "QR Scanner HID with 5510 inside.out" PORT2 ==> PORT2
    "QR Scanner HID with 5510 inside.out" TIMER2_A1 ==> TIMER2_A1
    "QR Scanner HID with 5510 inside.out" TIMER2_A0 ==> TIMER2_A0
    "QR Scanner HID with 5510 inside.out" USCI_B1 ==> USCI_B1
    "QR Scanner HID with 5510 inside.out" USCI_A1 ==> USCI_A1
    "QR Scanner HID with 5510 inside.out" PORT1 ==> PORT1
    "QR Scanner HID with 5510 inside.out" TIMER1_A1 ==> TIMER1_A1
    "QR Scanner HID with 5510 inside.out" TIMER1_A0 ==> TIMER1_A0
    "QR Scanner HID with 5510 inside.out" DMA ==> DMA
    "QR Scanner HID with 5510 inside.out" USB_UBM ==> USB_UBM
    "QR Scanner HID with 5510 inside.out" TIMER0_A1 ==> TIMER0_A1
    "QR Scanner HID with 5510 inside.out" TIMER0_A0 ==> TIMER0_A0
    "QR Scanner HID with 5510 inside.out" ADC10 ==> ADC10
    "QR Scanner HID with 5510 inside.out" USCI_B0 ==> USCI_B0
    "QR Scanner HID with 5510 inside.out" USCI_A0 ==> USCI_A0
    "QR Scanner HID with 5510 inside.out" WDT ==> WDT
    "QR Scanner HID with 5510 inside.out" TIMER0_B1 ==> TIMER0_B1
    "QR Scanner HID with 5510 inside.out" TIMER0_B0 ==> TIMER0_B0
    "QR Scanner HID with 5510 inside.out" COMP_B ==> COMP_B
    "QR Scanner HID with 5510 inside.out" UNMI ==> UNMI
    "QR Scanner HID with 5510 inside.out" SYSNMI ==> SYSNMI
    "QR Scanner HID with 5510 inside.out" .reset ==> .reset
    ' '
    warning: section QR Scanner HID with 5510 inside.out(.const) was padded by 1
    to a size of 1054 to satisfy the specified memory width of 2

    **** Build Finished ****

    ====================

    看控制台是有生成hex 和txt的过程   但是没文件输出,现在我担心是项目名以及hex的输出文件名带了空格  是不是不行。

    重新生成了一个项目名不带空格的,编译就有hex文件在目录下面了,但是还没验证是不是可以正常工作的。等验证了  再来终结此贴,不行就继续请教了

  • 你MSP430 HEX Utility的选项是怎么设置的?

  • 别的项目可以生成是因为别的项目配置成了生成HEX的功能。你的项目生成不了是因为没配置成生成功能。所以。。。配一下:

  • 您好:

        按照配置编译后能成功生成hex文件,打开文件,内容每行都以%开头是正确的么?因为查到  hex文件都是每行以:开头的。

  • Outman J 说:

    您好:

        按照配置编译后能成功生成hex文件,打开文件,内容每行都以%开头是正确的么?因为查到  hex文件都是每行以:开头的。

    有很多种格式的 hex,估计你选的是 tektronix 

  • ok 我明白了 谢谢!另外 想问一下ti的drivelib库里面有没有操作flash读写的例程,如果有的话在哪获取一般该例程文件名为什么(如i2c接口例程文件名eusci_b_i2c)。

  • Outman J 说:

    ok 我明白了 谢谢!另外 想问一下ti的drivelib库里面有没有操作flash读写的例程,如果有的话在哪获取一般该例程文件名为什么(如i2c接口例程文件名eusci_b_i2c)。

    操作片上flash

    片外flash的话,常见的是SPI接口的。基于SPI例程操作即可