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.

FFT_430.s43文件的编译错误

大家好:

    我们购买了M430F5438A几套开发板,进行FFT的开发, 但当使用TI提供的MSP-EXP430F5438_User_Expertience(slac2271)时,我们希望使用IAR编译器开发,但当我们采用FFT_430.s43(源文件为FFT_430.asm; 请参考附件),发现如下编译错误:

    1). FFT_prog    pushm.a #8,R11 ;preserve all save-on-entry registers;of the CCS runtime environment

    2).             movx.a  #I_Vec,R14              ;points to source
 
    3).      popm.a  #8,R11 ;restore all save-on-entry registers
 
    4).         reta
请问应当如何转化! 谢谢
  • 编译时报错如下:

    1. Error[40]: Bad instruction D:\Project\Code\Product_FFT - 1\FFT_430.s43 140

        汇编语言如下:

         FFT_prog    pushm.a #8,R11     ;preserve all save-on-entry registers
                                                            ;of the CCS runtime environment

    2. Error[40]: Bad instruction D:\Project\Code\Product_FFT - 1\FFT_430.s43 147

         汇编语言如下:

          movx.a  #I_Vec,R14              ;points to source

    3. Error[40]: Bad instruction D:\Project\Code\Product_FFT - 1\FFT_430.s43 268

          汇编语言如下:

          popm.a  #8,R11     ;restore all save-on-entry

    4. Error[40]: Bad instruction D:\Project\Code\Product_FFT - 1\FFT_430.s43 270

         汇编语言如下:

         reta

    5. Error while running Assembler

    请问:如何修改如上4条汇编语句,使FFT(FFT_430.s43 & FFT_430.asm)的算法能够正常编译&运行?

       

  • 请问您使用的是哪个版本的IAR?我使用的是7.12.4

    您直接编译的例程?是否有进行修改?我来测试一下
  • 谢谢!
    我使用的是7.10.1,
    请问:您编译FFT_430.asm和FFT_430.s43,正常吗?
  • 是的

    Building configuration: MSP-EXP430F5438_User_Experience - Debug
    Updating build tree...

    32 file(s) deleted.
    Updating build tree...
    5xx_ACTIVE_test.s43
    FFT_430.s43
    adcTemp.c
    audio.c
    balanceBall.c
    clock.c
    flashUtils.c
    FFT.c
    hal_adc.c
    hal_board.c
    HAL_FLASH.c
    hal_buttons.c
    hal_lcd_fonts.c
    hal_lcd.c
    HAL_PMAP.c
    hal_rf.c
    HAL_PMM.c
    HAL_TLV.c
    hal_rtc.c
    hal_usb.c
    HAL_UCS.c
    LPM.c
    low_level_init.c
    main.c
    menuSetting.c
    PowerTest.c
    PMM.c
    usbTest.c
    UserExperience_F5438A.c
    UserExperienceGraphics.c
    Linking

    Total number of errors: 0
    Total number of warnings: 0
  • 谢谢!
    请问有地址可以下载“免费版IAR7.12.4”吗?
  • 我使用的有正版license的,不太了解免费版的情况。

    另外建议您使用TI 的免费 CCS开发环境,我们的例程都是有CCS下的工程的

    www.ti.com/.../CCSTUDIO