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.

C28x_FPU_Lib and RFFT_f32_sincostable

Other Parts Discussed in Thread: TMS320F2808

Hi,

 I'm having trouble using the RFFT_f32_sincostable routine in C28x_FPU_lib.  I'm compiling it with the following options:

[RFFT_f32_sincostable_IQ.c] "C:\Program Files\C2000 Code Generation Tools 5.0.1\bin\cl2000" -g -pdsw225 -o3 -fr"C:/tidcs/c28/C28x_FPU_Lib/beta1/source/Debug" -i"../include" -d"alignbuf" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 --float_support=fpu32 -@"Debug.lkf" "RFFT_f32_sincostable_IQ.c"

 When I run it in the simulator, I see the following assembly:

 3E81A3      RFFT_f32_sincostable:
3E81A3 B2BD MOVL    *SP++,XAR1
3E81A4 AABD MOVL    *SP++,XAR2
3E81A5 A2BD MOVL    *SP++,XAR3
3E81A6 E203 .word   0xE203
3E81A7 04BD SUB     ACC,*SP++ << 16
3E81A8 E203 .word   0xE203
3E81A9 05BD ADD     ACC,*SP++ << 16
3E81AA E203 .word   0xE203
3E81AB 06BD MOVL    ACC,*SP++
3E81AC FE02 ADDB    SP,#2
3E81AD 82A4 MOVL    XAR3,@XAR4

The simulator hangs at the 4th instruction down:   ".word 0xE203". 

Any ideas what I could be doing wrong?  ".word 0xE203" doesn't appear to be a valid assembly instruction.

Thanks,

Eric


 

  • I have seen ".word 0xXXXX" appear in the CCS disassembly window when the operating mode of the device has not been set to C28x. In this case some instructions are no recognized and disassembled correctly. The operating mode is determined by a combination of the OBJMODE and AMODE bits in ST1. For C28x mode, OBJMODE should be 1 and AMODE should be 0. This is typically set in the boot code in the runtime library. You may want to check if this is getting set correctly.

     Regards,
    Aarti

  • Aarti,

     I think you are correct, I have not changed the default settings, I did not realize it came up in C27 compatibility mode.

     Thanks!

     Eric

  • Hi

      I am using the TMS320F2808 and i had set the OBJMODE = 1; AMODE = 0; PAGE0 = 0; M0M1MAP = 1, still i see

    .word 0xZZZZ instructions and when it gets executed it jumps to ITRAP0. I don't know what i am missing. Your help is appreciated.

    Thanks

    Manju