Skip to content

Commit

Permalink
turn off unused libraries to safe flash
Browse files Browse the repository at this point in the history
Turn off Net Shell, Sensor Shell, and disable the ADXL372 as none of thse
are used in this demo. The build now fits in the available flash.

Signed-off-by: Mike Szczys <[email protected]>
  • Loading branch information
szczys committed May 29, 2024
1 parent 550f53b commit 3506760
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ CONFIG_POSIX_MAX_FDS=23
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
CONFIG_NET_LOG=y
CONFIG_NET_SHELL=y
CONFIG_SHELL=y
CONFIG_REBOOT=y

# Flash memory (etc.) for firmware upgrade
Expand Down Expand Up @@ -73,3 +73,8 @@ CONFIG_PWM_LOG_LEVEL_DBG=n

# Firmware version used in DFU process
CONFIG_MCUBOOT_IMGTOOL_SIGN_VERSION="1.1.0"

# Disable unused libraries to save flash
CONFIG_ADXL372=n
CONFIG_FLASH_SHELL=n
CONFIG_SENSOR_SHELL=n

0 comments on commit 3506760

Please sign in to comment.