diff --git a/Examples/MAX32672/Flash/main.c b/Examples/MAX32672/Flash/main.c index 065111614ec..973f2800673 100644 --- a/Examples/MAX32672/Flash/main.c +++ b/Examples/MAX32672/Flash/main.c @@ -52,6 +52,7 @@ #include "uart.h" #include "led.h" #include "pb.h" +#include "trimsir_regs.h" /***** Definitions *****/ #define TEST_ADDRESS (MXC_FLASH_MEM_BASE + MXC_FLASH_MEM_SIZE) - (1 * MXC_FLASH_PAGE_SIZE) @@ -263,6 +264,14 @@ int main(void) */ MXC_ICC_Disable(); + /* + Disable Flash ECC. Because this example uses 32-bit flash writes, + ECC must be disabled.Only 128-bit writes are supported when ECC + is enabled. + */ + MXC_TRIMSIR->bb_sir2 &= ~MXC_F_TRIMSIR_BB_SIR2_FL0ECCEN; + MXC_TRIMSIR->bb_sir2 &= ~MXC_F_TRIMSIR_BB_SIR2_FL1ECCEN; + uint32_t magic = 0; MXC_FLC_Read(TEST_ADDRESS, &magic, 4); diff --git a/Libraries/LVGL/lvgl/src/extra/lv_extra.mk b/Libraries/LVGL/lvgl/src/extra/lv_extra.mk index b40b538c0e1..1b070539a2e 100644 --- a/Libraries/LVGL/lvgl/src/extra/lv_extra.mk +++ b/Libraries/LVGL/lvgl/src/extra/lv_extra.mk @@ -48,3 +48,123 @@ CSRCS += $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/lv_extra.c CSRCS += $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/mono/lv_theme_mono.c CSRCS += $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/default/lv_theme_default.c CSRCS += $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/basic/lv_theme_basic.c + +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/animimg +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/colorwheel +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/calendar +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/menu +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/msgbox +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/span +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/spinbox +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/win +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/led +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/keyboard +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/spinner +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/meter +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/imgbtn +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/chart +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/list +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/tabview +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/tileview +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/gif +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/bmp +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/sjpg +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/ffmpeg +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/rlottie +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/png +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/freetype +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/qrcode +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/fsdrv +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/layouts/flex +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/layouts/grid +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/imgfont +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/snapshot +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/gridnav +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/monkey +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/fragment +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/msg +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/ime +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/mono +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/default +DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/basic + +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/animimg +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/colorwheel +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/calendar +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/menu +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/msgbox +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/span +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/spinbox +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/win +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/led +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/keyboard +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/spinner +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/meter +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/imgbtn +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/chart +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/list +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/tabview +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/tileview +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/gif +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/bmp +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/sjpg +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/ffmpeg +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/rlottie +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/png +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/freetype +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/qrcode +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/fsdrv +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/layouts/flex +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/layouts/grid +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/imgfont +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/snapshot +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/gridnav +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/monkey +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/fragment +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/msg +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/ime +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/mono +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/default +VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/basic + +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/animimg" +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/colorwheel +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/calendar +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/menu +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/msgbox +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/span +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/spinbox +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/win +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/led +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/keyboard +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/spinner +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/meter +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/imgbtn +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/chart +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/list +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/tabview +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/tileview +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/gif +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/bmp +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/sjpg +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/ffmpeg +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/rlottie +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/png +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/freetype +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/qrcode +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/fsdrv +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/layouts/flex +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/layouts/grid +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/imgfont +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/snapshot +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/gridnav +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/monkey +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/fragment +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/msg +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/ime +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/mono +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/default +CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/basic