Re: nRF9160 CMSIS DSP code bloat
Stephanos Ioannidis
Hi,
By default, CONFIG_CMSIS_DSP_FASTMATH and CONFIG_CMSIS_DSP_TRANSFORM pulls in many big tables:
Try the following:
1. Set CMSIS_DSP_TABLES_ALL_FAST and CMSIS_DSP_TABLES_ALL_FFT to n. 2. Select only the tables you need.
Also you can play with the configs in menuconfig and try getting the image size down.
Stephanos
From: devel@... <devel@...>
On Behalf Of DKaplan via lists.zephyrproject.org
Sent: Monday, August 16, 2021 3:02 PM To: devel@... Subject: [Zephyr-devel] nRF9160 CMSIS DSP code bloat
Using SES v1.6.1 with the nRF9160 module, I added the necessary CMSIS DSP defines for my project. This adds a quite a lot of files and it does not look like the linker includes only files used. My code size has went over 466Kb. After adding more unrelated features, the code went over the 512Kb mark after which I remark part of the added code since I do not want to get into adjusting boot loader defines yet (a learning curve also there). We need the CMSIS libraries (only a few functions) and the calculations seems to work but it looks like the linker adds a ton of files and functions that are not even called.
|
|