Skip to content

Commit 16a1558

Browse files
committed
Build 128k firmware with dead-code elimination, rebuild 256k firmware
1 parent 1694a6f commit 16a1558

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

Miniscope_DAQ/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ all:compile
2626

2727
include $(FX3FWROOT)/fw_build/fx3_fw/fx3_build_config.mak
2828

29+
ifeq ($(MS_FW_VARIANT),128k)
30+
# remember to also pass `-i2cconf 0x1E` to `elf2img`!
31+
CFLAGS += -Wl,--entry,CyU3PFirmwareEntry -Xlinker --gc-sections
32+
LDFLAGS += -d --gc-sections
33+
endif
34+
2935
MODULE = cyfx_uvc_an75779
3036

3137
SOURCE= uvc.c \

0 commit comments

Comments
 (0)