Search code examples
stm32iar

How to include non executable stm32 library in IAR?


I've compiled a project as a library for stm32 using iar, after adding the .a file the linker gives a warning that the used functions are declared implicity. The function accepts a pointer to input buffer and return a pointer to output buffer, when assiging a pointer to save the return address the complier gives an error that a value of intcan't be assigned to pointer.

What could be the error, or. Is there something missing in the way of adding lib


Solution

  • You need the .h file as well with the data structures & function prototypes.