diff --git a/project/.gitignore b/project/.gitignore index 700b0cc..2245226 100644 --- a/project/.gitignore +++ b/project/.gitignore @@ -1,3 +1,4 @@ *.bin *.hex -*.elf \ No newline at end of file +*.elf +*.bin.xz diff --git a/project/Makefile b/project/Makefile index b2d1cba..32962b5 100644 --- a/project/Makefile +++ b/project/Makefile @@ -1460,15 +1460,15 @@ OBJ_LIST += $(SRC_SO) test_target: prerequirement $(SRC_O) $(SRC_SO) application: test_target - $(CC) -o project.elf -L./../libs \ + @$(CC) -o project.elf -L./../libs \ -u user_main -march=ck803 -mcpu=ck803s -g -Wl,--gc-sections -Wl,-zmax-page-size=1024 \ -Xlinker -Map=project.map \ -Wl,--start-group $(OBJ_LIST) \ $(LDFLAGS) -Wl,--end-group -T./utilities/gcc_csky.ld \ -Xlinker -Map=project.map - $(OP) --strip-unneeded -O ihex project.elf project.hex - $(OP) --strip-unneeded -O binary project.elf project.bin + @$(OP) --strip-unneeded -O ihex project.elf project.hex + @$(OP) --strip-unneeded -O binary project.elf project.bin .PHONY: prerequirement prerequirement: diff --git a/project/project_config.h b/project/project_config.h index ecaa455..2667bf0 100644 --- a/project/project_config.h +++ b/project/project_config.h @@ -794,7 +794,7 @@ /**************************************按键配置******************************************************** */ -#define KEY_MODULE_EN 1 +#define KEY_MODULE_EN 0 /*************************************************************************************************** */ @@ -812,7 +812,7 @@ /*************************************************************************************************** */ /**********************************************音频相关********************************************* */ -#define AUDIO_EN 0 +#define AUDIO_EN 1 #define AUDIO_DAC_EN 0 /************************************************************************************************** */ diff --git a/project/real_code.BinScript b/project/real_code.BinScript new file mode 100644 index 0000000..e39a577 --- /dev/null +++ b/project/real_code.BinScript @@ -0,0 +1,9 @@ +memset(ibuf, ff); +read(bin, APP.bin); +def(LEN, v_lx); +remap(c00, 0, LEN); +write(bin, realcode.bin); + + + + diff --git a/project/script/compress.exe b/project/script/compress.exe new file mode 100644 index 0000000..e6d48e9 Binary files /dev/null and b/project/script/compress.exe differ diff --git a/project/script/msys-2.0.dll b/project/script/msys-2.0.dll new file mode 100644 index 0000000..b108b50 Binary files /dev/null and b/project/script/msys-2.0.dll differ diff --git a/project/script/msys-iconv-2.dll b/project/script/msys-iconv-2.dll new file mode 100644 index 0000000..42f6106 Binary files /dev/null and b/project/script/msys-iconv-2.dll differ diff --git a/project/script/msys-intl-8.dll b/project/script/msys-intl-8.dll new file mode 100644 index 0000000..affdcd7 Binary files /dev/null and b/project/script/msys-intl-8.dll differ diff --git a/project/script/xz.exe b/project/script/xz.exe new file mode 100644 index 0000000..7b857ee Binary files /dev/null and b/project/script/xz.exe differ diff --git a/sdk/lib/common/dsleepdata.c b/sdk/lib/common/dsleepdata.c index c85273c..0b76e5c 100644 --- a/sdk/lib/common/dsleepdata.c +++ b/sdk/lib/common/dsleepdata.c @@ -23,7 +23,7 @@ __init void sys_sleepdata_init(void) struct system_sleepdata *sdata = (struct system_sleepdata *)start; flags = disable_irq(); if (sdata->magic1 != 0x1A2B3C4D || sdata->magic2 != 0xD4C3B2A1) { - dump_hex("sleepdata_init: ", ((uint8 *)&__sleep_data_stop) + 4 , 4, 1); + //dump_hex("sleepdata_init: ", ((uint8 *)&__sleep_data_stop) + 4 , 4, 1); os_memset(sdata, 0, sizeof(struct system_sleepdata)); sdata->magic1 = 0x1A2B3C4D; sdata->magic2 = 0xD4C3B2A1;