Linking libspeeex in coocox

OP #4496126
I am compiling speex library for arm-cortex-m4. My development board is 
stm32f407. Toolchain used to compile speex library is 
gcc-arm-none-eabi-5_2-2015q4.Same toolchain is used to compile my 
project. I am compiling my project in coocox ide. Project compilation is 
successful without any undefined reference errors. But whenever I call 
functions of libspeeex ( for example lib_speex_get_mode()) facing hard 
fault and flow goes to default handler. My question is, is it possible 
to compile open source package for example libspeex and link statically 
in my project? I am not understanding this. If there are issues with 
linking it should through undefined reference!!! But that's not the 
issue. Please help me out guys.
Guest #4496565
Hi,
Hard fault may arise from uninitialized resources, accessing 
non-existent memory areas, stack problems or many other causes.
If you use an IDE, like Eclipse, then in Debug window (upper left) you 
have all stack frames available, the faulty function/module is shown 
below the stack frame for hard fault(which is the top one). Click on it 
and you will go to the code line which caused the fault (in source 
window, in debugger).
Also, ARM documentation is useful - read before, you are the only one to 
discover first what caused hard fault, then examine the rest of speex 
code.

Reply

A question of your own? This thread is over 10 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.