Forum: ARM programming with GCC/GNU tools Linking libspeeex in coocox

Author: Shashi Abd (chan)
Posted on:

Rate this post
0 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.

Author: MacLyon (Guest)
Posted on:

Rate this post
0 useful
not useful
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 


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.