Other Parts Discussed in Thread: TM4C123GH6PM
Hello,
I think I have successfully compiled the DSPLibrary in CCS 6.2 to use with the Tiva C TM4C123GH6PM. I did the procedure exactly like described in the doc "Using the CMSIS DSP Library in Code Composer Studio for TM4C MCUs" - spma041g.pdf
Just in step 6 on page 9 I cant select the "Use unified assembly language (--ual)" checkbox. I never found this option in the properties. Could this be a problem?
Out of the ARM example folder I ran the complex floating point example without any error. If I use the integer real fft to save resources the code jumps into FaultISR while executing line "arm_rfft_q15(.....".
#include "arm_math.h" #include "arm_const_structs.h" #define TEST_LENGTH_SAMPLES 1024 extern uint16_t ui16InputTestData[TEST_LENGTH_SAMPLES]; static uint16_t ui16TestOutput[TEST_LENGTH_SAMPLES]; /* ------------------------------------------------------------------ * Global variables for FFT Bin Example * ------------------------------------------------------------------- */ uint32_t fftSize = 1024; uint32_t ifftFlag = 0; /* forward fft*/ uint32_t doBitReverse = 1; /* output NOT in bitreversal*/ /* Reference index at which max energy of bin ocuurs */ uint32_t refIndex = 213, testIndex = 0; /* ---------------------------------------------------------------------- * Max magnitude FFT Bin test * ------------------------------------------------------------------- */ int32_t main(void) { arm_rfft_instance_q15 fft_ins; // REAL integer FFT arm_rfft_init_q15(&fft_ins, fftSize, ifftFlag, doBitReverse); arm_rfft_q15(&fft_ins, (q15_t *) ui16InputTestData, (q15_t *) ui16TestOutput); while (1) ; /* main function does not return */ } /** \endlink */
What did I wrong?
Thanks for any suggestions.