This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

NRF9160 CMSIS DSP code bloat

In a SES nRF9160 project I need to use the CMSIS DSP libraries for the M33 chip.

I add the folowing defines in my Zephyr conf file:

  CONFIG_CMSIS_DSP=y
  CONFIG_CMSIS_DSP_SUPPORT=y
  CONFIG_CMSIS_DSP_FASTMATH=y
  CONFIG_CMSIS_DSP_COMPLEXMATH=y
  CONFIG_CMSIS_DSP_STATISTICS=y
  CONFIG_CMSIS_DSP_TRANSFORM=y

This seems to add all of the files in each directory and the linker does not remove them resulting in a bin file approaching 512K which is not viable.

Is there a way that the linker will disregard unused files and functions?

How can I determine which files and functions are used if I have to copy everything that is used and only that is used under a new directory instead of using the above defines?

Thanks David