Linking libspeeex in coocox

OP #4496126
Rate this post
• ▲ useful
▼ not useful
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
Rate this post
• ▲ useful
▼ not useful
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

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

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.