How to reduce the size of the merged.hex file?

Hello,

I am trying to find ways to reduce the size of the output hex file merged.hex.

I am using the following hardware and development tools.

- nRF52833 SoC

- Zephyr OS build v2.6.99-ncs1

- Segger Embedded Studio Nordic Edition

  Release 5.60  Build 2021081102.47262
  Nordic Edition
  Windows x64

- I am already using the following configs in prj.conf file to reduce the size of the merged.hex file
  CONFIG_MINIMAL_LIBC=y
  CONFIG_SIZE_OPTIMIZATIONS=y

The project config file prj.conf is attached.

Thank you.
Kind regards
Mohamed

Related