Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Running the FFT Code from the ARM CMSIS project on LM3S608

$
0
0

Hello, 

I am trying to run the FFT example code from the ARM CMSIS (downloaded from here). I am using a Eclipse Code Sourcery based toolchain. I compiled the source of the ARM CMSIS project using these flags, 

PART ?= LM3S608
# Prefix to the cross compiler
PREFIX ?= arm-none-eabi-
# Common stuff
CC = gcc
AR = ar
RM = rm
MKDIR = mkdir
LD = ld
OBJCOPY = objcopy
# Some directories
OBJDIR = $(ROOT)/obj
INCDIR = $(ROOT)/Include
LIB = $(ROOT)/Lib/libdsplib_lm3s.a

# Flags for building stuff
CFLAGS = \
-mthumb \
-mcpu=cortex-m3 \
-Os \
-ffunction-sections \
-fdata-sections \
-std=c99 \
-Wall \
-DPART_${PART} \
-I$(INCDIR) \
-DARM_MATH_CM3

When i try running the example i get the following error,

/home/cuil/workspace/btp/CMSIS-SP-00300-r3p2-00rel1/CMSIS/Lib/libdsplib_lm3s.a(arm_cmplx_mag_f32.o): In function `arm_sqrt_f32':
arm_cmplx_mag_f32.c:(.text.arm_sqrt_f32+0x12): undefined reference to `sqrtf'
collect2: ld returned 1 exit status

The following are my project settings in eclipse, 

-Dgcc -DARM_MATH_CM3 -DPART_LM3S608 -I/home/cuil/workspace/arm/ti/official_package/firmware_development_package -I/home/cuil/workspace/btp/CMSIS-SP-00300-r3p2-00rel1/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -Wa,-adhlns="$@.lst" -c -fmessage-length=0 -static -mcpu=cortex-m3 -mthumb -g3 -gdwarf-2

How do i resolve this ? 

Thank you 


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>