From 919fd8f2a8fc0dc9f99ff83ab13f46adbc5518b4 Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期三, 02 四月 2025 17:08:13 +0800
Subject: [PATCH] 最新boot,测试可以用,支持升级 ota,注意跳转延时不要动

---
 dualboots_Gai_youhua/keil/customboot/Listings/customboot.map |  276 ++++++++++++++++++++++++++++---------------------------
 1 files changed, 141 insertions(+), 135 deletions(-)

diff --git a/dualboots_Gai_youhua/keil/customboot/Listings/customboot.map b/dualboots_Gai_youhua/keil/customboot/Listings/customboot.map
index 6edd380..50815c4 100644
--- a/dualboots_Gai_youhua/keil/customboot/Listings/customboot.map
+++ b/dualboots_Gai_youhua/keil/customboot/Listings/customboot.map
@@ -669,15 +669,16 @@
     customboot.o(.text.main) refers to mk_flash.o(.text.flash_open) for flash_open
     customboot.o(.text.main) refers to mk_uart.o(.text.uart_open) for uart_open
     customboot.o(.text.main) refers to mk_uart.o(.text.Serial_PutString) for Serial_PutString
+    customboot.o(.text.main) refers to menu.o(.text.delay_ms) for delay_ms
     customboot.o(.text.main) refers to mk_wdt.o(.text.wdt_ping) for wdt_ping
     customboot.o(.text.main) refers to mk_flash.o(.text.flash_read) for flash_read
     customboot.o(.text.main) refers to mk_flash.o(.text.flash_check_busy) for flash_check_busy
     customboot.o(.text.main) refers to menu.o(.text.Main_Menu) for Main_Menu
+    customboot.o(.text.main) refers to mk_uart.o(.text.uart_close) for uart_close
     customboot.o(.text.main) refers to aes.o(.text.aesDecInit) for aesDecInit
     customboot.o(.text.main) refers to mk_flash.o(.text.flash_erase) for flash_erase
     customboot.o(.text.main) refers to aes.o(.text.aesDecrypt) for aesDecrypt
     customboot.o(.text.main) refers to mk_flash.o(.text.flash_write_nbytes) for flash_write_nbytes
-    customboot.o(.text.main) refers to menu.o(.text.delay_ms) for delay_ms
     customboot.o(.text.main) refers to customboot.o(.text.__NVIC_SystemReset) for __NVIC_SystemReset
     customboot.o(.text.main) refers to customboot.o(.data.app_wdt_cfg) for app_wdt_cfg
     customboot.o(.text.main) refers to customboot.o(.rodata.cst32) for .L__const.main.test_uart_cfg
@@ -868,7 +869,6 @@
     Removing mk_uart.o(.ARM.exidx.text.uart_rx_fifo_clear), (8 bytes).
     Removing mk_uart.o(.ARM.exidx.text.uart_baud_set), (8 bytes).
     Removing mk_uart.o(.ARM.exidx.text.uart_open), (8 bytes).
-    Removing mk_uart.o(.text.uart_close), (132 bytes).
     Removing mk_uart.o(.ARM.exidx.text.uart_close), (8 bytes).
     Removing mk_uart.o(.ARM.exidx.text.uart_state_set), (8 bytes).
     Removing mk_uart.o(.ARM.exidx.text.uart_dma_callback), (8 bytes).
@@ -1205,7 +1205,7 @@
     Removing fcmp4.o(.text), (52 bytes).
     Removing depilogue.o(i.__ARM_clz), (46 bytes).
 
-428 unused section(s) (total 10645 bytes) removed from the image.
+427 unused section(s) (total 10513 bytes) removed from the image.
 
 ==============================================================================
 
@@ -1499,69 +1499,73 @@
     [Anonymous Symbol]                       0x0202c018   Section        0  mk_io.o(.text.io_pin_mux_set)
     __arm_cp.0_0                             0x0202c064   Number         4  mk_io.o(.text.io_pin_mux_set)
     [Anonymous Symbol]                       0x0202c068   Section        0  customboot.o(.text.main)
-    __arm_cp.2_0                             0x0202c214   Number         4  customboot.o(.text.main)
-    __arm_cp.2_1                             0x0202c218   Number         4  customboot.o(.text.main)
-    __arm_cp.2_3                             0x0202c23c   Number         4  customboot.o(.text.main)
-    __arm_cp.2_4                             0x0202c240   Number         4  customboot.o(.text.main)
-    __arm_cp.2_5                             0x0202c244   Number         4  customboot.o(.text.main)
-    __arm_cp.2_6                             0x0202c248   Number         4  customboot.o(.text.main)
-    __arm_cp.2_7                             0x0202c24c   Number         4  customboot.o(.text.main)
-    __arm_cp.2_8                             0x0202c250   Number         4  customboot.o(.text.main)
-    __arm_cp.2_10                            0x0202c268   Number         4  customboot.o(.text.main)
-    __arm_cp.2_14                            0x0202c2a8   Number         4  customboot.o(.text.main)
-    __arm_cp.2_16                            0x0202c2c4   Number         4  customboot.o(.text.main)
-    __arm_cp.2_17                            0x0202c2c8   Number         4  customboot.o(.text.main)
-    [Anonymous Symbol]                       0x0202c2dc   Section        0  mk_misc.o(.text.mk_chip_id)
-    __arm_cp.0_0                             0x0202c2e4   Number         4  mk_misc.o(.text.mk_chip_id)
-    [Anonymous Symbol]                       0x0202c2e8   Section        0  mk_reset.o(.text.reset_module)
-    __arm_cp.2_0                             0x0202c300   Number         4  mk_reset.o(.text.reset_module)
-    [Anonymous Symbol]                       0x0202c304   Section        0  startup_mk800x.o(.text.start_main_asm)
-    [Anonymous Symbol]                       0x0202c30c   Section        0  mk_misc.o(.text.sys_tick_start)
-    __arm_cp.16_0                            0x0202c330   Number         4  mk_misc.o(.text.sys_tick_start)
-    __arm_cp.16_1                            0x0202c334   Number         4  mk_misc.o(.text.sys_tick_start)
-    [Anonymous Symbol]                       0x0202c338   Section        0  mk_misc.o(.text.sys_timer_get)
-    [Anonymous Symbol]                       0x0202c344   Section        0  mk_misc.o(.text.sys_timer_open)
-    __arm_cp.7_0                             0x0202c388   Number         4  mk_misc.o(.text.sys_timer_open)
-    __arm_cp.7_1                             0x0202c38c   Number         4  mk_misc.o(.text.sys_timer_open)
-    [Anonymous Symbol]                       0x0202c390   Section        0  mk_uart.o(.text.uart_baud_set)
-    __arm_cp.11_0                            0x0202c3d4   Number         4  mk_uart.o(.text.uart_baud_set)
-    uart_dma_callback                        0x0202c3d9   Thumb Code   200  mk_uart.o(.text.uart_dma_callback)
-    [Anonymous Symbol]                       0x0202c3d8   Section        0  mk_uart.o(.text.uart_dma_callback)
-    [Anonymous Symbol]                       0x0202c4a0   Section        0  mk_uart.o(.text.uart_irq_handler)
-    [Anonymous Symbol]                       0x0202c614   Section        0  mk_uart.o(.text.uart_open)
-    __arm_cp.12_0                            0x0202c754   Number         4  mk_uart.o(.text.uart_open)
-    __arm_cp.12_1                            0x0202c758   Number         4  mk_uart.o(.text.uart_open)
-    __arm_cp.12_2                            0x0202c75c   Number         4  mk_uart.o(.text.uart_open)
-    [Anonymous Symbol]                       0x0202c760   Section        0  mk_uart.o(.text.uart_send)
-    __arm_cp.3_1                             0x0202c8b0   Number         4  mk_uart.o(.text.uart_send)
-    uart_state_clear                         0x0202c8b5   Thumb Code    52  mk_uart.o(.text.uart_state_clear)
-    [Anonymous Symbol]                       0x0202c8b4   Section        0  mk_uart.o(.text.uart_state_clear)
-    uart_state_set                           0x0202c8e9   Thumb Code    96  mk_uart.o(.text.uart_state_set)
-    [Anonymous Symbol]                       0x0202c8e8   Section        0  mk_uart.o(.text.uart_state_set)
-    __arm_cp.14_0                            0x0202c944   Number         4  mk_uart.o(.text.uart_state_set)
-    [Anonymous Symbol]                       0x0202c948   Section        0  mk_wdt.o(.text.wdt_close)
-    __arm_cp.1_2                             0x0202c988   Number         4  mk_wdt.o(.text.wdt_close)
-    [Anonymous Symbol]                       0x0202c98c   Section        0  mk_wdt.o(.text.wdt_open)
-    __arm_cp.0_2                             0x0202ca1c   Number         4  mk_wdt.o(.text.wdt_open)
-    __arm_cp.0_3                             0x0202ca20   Number         4  mk_wdt.o(.text.wdt_open)
-    __arm_cp.0_4                             0x0202ca24   Number         4  mk_wdt.o(.text.wdt_open)
-    [Anonymous Symbol]                       0x0202ca28   Section        0  mk_wdt.o(.text.wdt_ping)
-    __arm_cp.3_0                             0x0202ca4c   Number         4  mk_wdt.o(.text.wdt_ping)
-    __arm_cp.3_1                             0x0202ca50   Number         4  mk_wdt.o(.text.wdt_ping)
-    i.__scatterload_copy                     0x0202ca54   Section       14  handlers.o(i.__scatterload_copy)
-    i.__scatterload_null                     0x0202ca62   Section        2  handlers.o(i.__scatterload_null)
-    i.__scatterload_zeroinit                 0x0202ca64   Section       14  handlers.o(i.__scatterload_zeroinit)
-    [Anonymous Symbol]                       0x0202ca74   Section        0  mk_misc.o(.rodata..L__const.sys_timer_open.sys_timer_cfg)
-    baud_table                               0x0202ca8c   Data          42  mk_uart.o(.rodata.baud_table)
-    [Anonymous Symbol]                       0x0202ca8c   Section        0  mk_uart.o(.rodata.baud_table)
-    .L__const.flash_write_nbytes.flash_wr_dma_cfg 0x0202cab8   Data          32  mk_flash.o(.rodata.cst32)
-    .L__const.flash_write.flash_wr_dma_cfg   0x0202cad8   Data          32  mk_flash.o(.rodata.cst32)
-    .L__const.flash_read.flash_rd_dma_cfg    0x0202caf8   Data          32  mk_flash.o(.rodata.cst32)
-    .L__const.main.test_uart_cfg             0x0202cb18   Data          32  customboot.o(.rodata.cst32)
-    flash_cmd                                0x0202cb38   Data         220  mk_flash.o(.rodata.flash_cmd)
-    [Anonymous Symbol]                       0x0202cb38   Section        0  mk_flash.o(.rodata.flash_cmd)
-    .L.str                                   0x0202cc34   Data          83  menu.o(.rodata.str1.1)
-    [Anonymous Symbol]                       0x0202cc34   Section        0  menu.o(.rodata.str1.1)
+    __arm_cp.2_0                             0x0202c248   Number         4  customboot.o(.text.main)
+    __arm_cp.2_1                             0x0202c24c   Number         4  customboot.o(.text.main)
+    __arm_cp.2_3                             0x0202c270   Number         4  customboot.o(.text.main)
+    __arm_cp.2_4                             0x0202c274   Number         4  customboot.o(.text.main)
+    __arm_cp.2_5                             0x0202c278   Number         4  customboot.o(.text.main)
+    __arm_cp.2_6                             0x0202c27c   Number         4  customboot.o(.text.main)
+    __arm_cp.2_7                             0x0202c280   Number         4  customboot.o(.text.main)
+    __arm_cp.2_8                             0x0202c284   Number         4  customboot.o(.text.main)
+    __arm_cp.2_10                            0x0202c29c   Number         4  customboot.o(.text.main)
+    __arm_cp.2_14                            0x0202c2dc   Number         4  customboot.o(.text.main)
+    __arm_cp.2_16                            0x0202c2f8   Number         4  customboot.o(.text.main)
+    __arm_cp.2_17                            0x0202c2fc   Number         4  customboot.o(.text.main)
+    [Anonymous Symbol]                       0x0202c310   Section        0  mk_misc.o(.text.mk_chip_id)
+    __arm_cp.0_0                             0x0202c318   Number         4  mk_misc.o(.text.mk_chip_id)
+    [Anonymous Symbol]                       0x0202c31c   Section        0  mk_reset.o(.text.reset_module)
+    __arm_cp.2_0                             0x0202c334   Number         4  mk_reset.o(.text.reset_module)
+    [Anonymous Symbol]                       0x0202c338   Section        0  startup_mk800x.o(.text.start_main_asm)
+    [Anonymous Symbol]                       0x0202c340   Section        0  mk_misc.o(.text.sys_tick_start)
+    __arm_cp.16_0                            0x0202c364   Number         4  mk_misc.o(.text.sys_tick_start)
+    __arm_cp.16_1                            0x0202c368   Number         4  mk_misc.o(.text.sys_tick_start)
+    [Anonymous Symbol]                       0x0202c36c   Section        0  mk_misc.o(.text.sys_timer_get)
+    [Anonymous Symbol]                       0x0202c378   Section        0  mk_misc.o(.text.sys_timer_open)
+    __arm_cp.7_0                             0x0202c3bc   Number         4  mk_misc.o(.text.sys_timer_open)
+    __arm_cp.7_1                             0x0202c3c0   Number         4  mk_misc.o(.text.sys_timer_open)
+    [Anonymous Symbol]                       0x0202c3c4   Section        0  mk_uart.o(.text.uart_baud_set)
+    __arm_cp.11_0                            0x0202c408   Number         4  mk_uart.o(.text.uart_baud_set)
+    [Anonymous Symbol]                       0x0202c40c   Section        0  mk_uart.o(.text.uart_close)
+    __arm_cp.13_1                            0x0202c484   Number         4  mk_uart.o(.text.uart_close)
+    uart_dma_callback                        0x0202c489   Thumb Code   200  mk_uart.o(.text.uart_dma_callback)
+    [Anonymous Symbol]                       0x0202c488   Section        0  mk_uart.o(.text.uart_dma_callback)
+    [Anonymous Symbol]                       0x0202c550   Section        0  mk_uart.o(.text.uart_irq_handler)
+    __arm_cp.21_0                            0x0202c6c4   Number         4  mk_uart.o(.text.uart_irq_handler)
+    [Anonymous Symbol]                       0x0202c6c8   Section        0  mk_uart.o(.text.uart_open)
+    __arm_cp.12_0                            0x0202c808   Number         4  mk_uart.o(.text.uart_open)
+    __arm_cp.12_1                            0x0202c80c   Number         4  mk_uart.o(.text.uart_open)
+    __arm_cp.12_2                            0x0202c810   Number         4  mk_uart.o(.text.uart_open)
+    __arm_cp.12_3                            0x0202c814   Number         4  mk_uart.o(.text.uart_open)
+    [Anonymous Symbol]                       0x0202c818   Section        0  mk_uart.o(.text.uart_send)
+    __arm_cp.3_1                             0x0202c968   Number         4  mk_uart.o(.text.uart_send)
+    uart_state_clear                         0x0202c96d   Thumb Code    52  mk_uart.o(.text.uart_state_clear)
+    [Anonymous Symbol]                       0x0202c96c   Section        0  mk_uart.o(.text.uart_state_clear)
+    uart_state_set                           0x0202c9a1   Thumb Code    96  mk_uart.o(.text.uart_state_set)
+    [Anonymous Symbol]                       0x0202c9a0   Section        0  mk_uart.o(.text.uart_state_set)
+    __arm_cp.14_0                            0x0202c9fc   Number         4  mk_uart.o(.text.uart_state_set)
+    [Anonymous Symbol]                       0x0202ca00   Section        0  mk_wdt.o(.text.wdt_close)
+    __arm_cp.1_2                             0x0202ca40   Number         4  mk_wdt.o(.text.wdt_close)
+    [Anonymous Symbol]                       0x0202ca44   Section        0  mk_wdt.o(.text.wdt_open)
+    __arm_cp.0_2                             0x0202cad4   Number         4  mk_wdt.o(.text.wdt_open)
+    __arm_cp.0_3                             0x0202cad8   Number         4  mk_wdt.o(.text.wdt_open)
+    __arm_cp.0_4                             0x0202cadc   Number         4  mk_wdt.o(.text.wdt_open)
+    [Anonymous Symbol]                       0x0202cae0   Section        0  mk_wdt.o(.text.wdt_ping)
+    __arm_cp.3_0                             0x0202cb04   Number         4  mk_wdt.o(.text.wdt_ping)
+    __arm_cp.3_1                             0x0202cb08   Number         4  mk_wdt.o(.text.wdt_ping)
+    i.__scatterload_copy                     0x0202cb0c   Section       14  handlers.o(i.__scatterload_copy)
+    i.__scatterload_null                     0x0202cb1a   Section        2  handlers.o(i.__scatterload_null)
+    i.__scatterload_zeroinit                 0x0202cb1c   Section       14  handlers.o(i.__scatterload_zeroinit)
+    [Anonymous Symbol]                       0x0202cb2c   Section        0  mk_misc.o(.rodata..L__const.sys_timer_open.sys_timer_cfg)
+    baud_table                               0x0202cb44   Data          42  mk_uart.o(.rodata.baud_table)
+    [Anonymous Symbol]                       0x0202cb44   Section        0  mk_uart.o(.rodata.baud_table)
+    .L__const.flash_write_nbytes.flash_wr_dma_cfg 0x0202cb70   Data          32  mk_flash.o(.rodata.cst32)
+    .L__const.flash_write.flash_wr_dma_cfg   0x0202cb90   Data          32  mk_flash.o(.rodata.cst32)
+    .L__const.flash_read.flash_rd_dma_cfg    0x0202cbb0   Data          32  mk_flash.o(.rodata.cst32)
+    .L__const.main.test_uart_cfg             0x0202cbd0   Data          32  customboot.o(.rodata.cst32)
+    flash_cmd                                0x0202cbf0   Data         220  mk_flash.o(.rodata.flash_cmd)
+    [Anonymous Symbol]                       0x0202cbf0   Section        0  mk_flash.o(.rodata.flash_cmd)
+    .L.str                                   0x0202ccec   Data          83  menu.o(.rodata.str1.1)
+    [Anonymous Symbol]                       0x0202ccec   Section        0  menu.o(.rodata.str1.1)
     sleep_timer_handle.0                     0x0202e800   Data           4  mk_sleep_timer.o(.data..L_MergedGlobals)
     [Anonymous Symbol]                       0x0202e800   Section        0  mk_sleep_timer.o(.data..L_MergedGlobals)
     sleep_timer_handle.1                     0x0202e804   Data           4  mk_sleep_timer.o(.data..L_MergedGlobals)
@@ -1715,28 +1719,29 @@
     flash_write_nbytes                       0x0202bcf9   Thumb Code   552  mk_flash.o(.text.flash_write_nbytes)
     gpio_open                                0x0202c005   Thumb Code    20  mk_gpio.o(.text.gpio_open)
     io_pin_mux_set                           0x0202c019   Thumb Code    80  mk_io.o(.text.io_pin_mux_set)
-    main                                     0x0202c069   Thumb Code   628  customboot.o(.text.main)
-    mk_chip_id                               0x0202c2dd   Thumb Code    12  mk_misc.o(.text.mk_chip_id)
-    reset_module                             0x0202c2e9   Thumb Code    28  mk_reset.o(.text.reset_module)
-    start_main_asm                           0x0202c305   Thumb Code     4  startup_mk800x.o(.text.start_main_asm)
-    sys_tick_start                           0x0202c30d   Thumb Code    44  mk_misc.o(.text.sys_tick_start)
-    sys_timer_get                            0x0202c339   Thumb Code    12  mk_misc.o(.text.sys_timer_get)
-    sys_timer_open                           0x0202c345   Thumb Code    76  mk_misc.o(.text.sys_timer_open)
-    uart_baud_set                            0x0202c391   Thumb Code    72  mk_uart.o(.text.uart_baud_set)
-    uart_irq_handler                         0x0202c4a1   Thumb Code   372  mk_uart.o(.text.uart_irq_handler)
-    uart_open                                0x0202c615   Thumb Code   332  mk_uart.o(.text.uart_open)
-    uart_send                                0x0202c761   Thumb Code   340  mk_uart.o(.text.uart_send)
-    wdt_close                                0x0202c949   Thumb Code    68  mk_wdt.o(.text.wdt_close)
-    wdt_open                                 0x0202c98d   Thumb Code   156  mk_wdt.o(.text.wdt_open)
-    wdt_ping                                 0x0202ca29   Thumb Code    44  mk_wdt.o(.text.wdt_ping)
-    __scatterload_copy                       0x0202ca55   Thumb Code    14  handlers.o(i.__scatterload_copy)
-    __scatterload_null                       0x0202ca63   Thumb Code     2  handlers.o(i.__scatterload_null)
-    __scatterload_zeroinit                   0x0202ca65   Thumb Code    14  handlers.o(i.__scatterload_zeroinit)
-    kTable                                   0x0202cc14   Data          32  aes.o(.rodata.kTable)
-    Region$$Table$$Base                      0x0202cc88   Number         0  anon$$obj.o(Region$$Table)
-    Region$$Table$$Limit                     0x0202cca8   Number         0  anon$$obj.o(Region$$Table)
-    mk_boot_desc                             0x0202cea0   Data          72  startup_mk800x.o(.ZBOOT_SECTION)
-    mk_build_inf                             0x0202cee8   Data          80  startup_mk800x.o(.ZBUILD_SECTION)
+    main                                     0x0202c069   Thumb Code   680  customboot.o(.text.main)
+    mk_chip_id                               0x0202c311   Thumb Code    12  mk_misc.o(.text.mk_chip_id)
+    reset_module                             0x0202c31d   Thumb Code    28  mk_reset.o(.text.reset_module)
+    start_main_asm                           0x0202c339   Thumb Code     4  startup_mk800x.o(.text.start_main_asm)
+    sys_tick_start                           0x0202c341   Thumb Code    44  mk_misc.o(.text.sys_tick_start)
+    sys_timer_get                            0x0202c36d   Thumb Code    12  mk_misc.o(.text.sys_timer_get)
+    sys_timer_open                           0x0202c379   Thumb Code    76  mk_misc.o(.text.sys_timer_open)
+    uart_baud_set                            0x0202c3c5   Thumb Code    72  mk_uart.o(.text.uart_baud_set)
+    uart_close                               0x0202c40d   Thumb Code   124  mk_uart.o(.text.uart_close)
+    uart_irq_handler                         0x0202c551   Thumb Code   376  mk_uart.o(.text.uart_irq_handler)
+    uart_open                                0x0202c6c9   Thumb Code   336  mk_uart.o(.text.uart_open)
+    uart_send                                0x0202c819   Thumb Code   340  mk_uart.o(.text.uart_send)
+    wdt_close                                0x0202ca01   Thumb Code    68  mk_wdt.o(.text.wdt_close)
+    wdt_open                                 0x0202ca45   Thumb Code   156  mk_wdt.o(.text.wdt_open)
+    wdt_ping                                 0x0202cae1   Thumb Code    44  mk_wdt.o(.text.wdt_ping)
+    __scatterload_copy                       0x0202cb0d   Thumb Code    14  handlers.o(i.__scatterload_copy)
+    __scatterload_null                       0x0202cb1b   Thumb Code     2  handlers.o(i.__scatterload_null)
+    __scatterload_zeroinit                   0x0202cb1d   Thumb Code    14  handlers.o(i.__scatterload_zeroinit)
+    kTable                                   0x0202cccc   Data          32  aes.o(.rodata.kTable)
+    Region$$Table$$Base                      0x0202cd40   Number         0  anon$$obj.o(Region$$Table)
+    Region$$Table$$Limit                     0x0202cd60   Number         0  anon$$obj.o(Region$$Table)
+    mk_boot_desc                             0x0202cf60   Data          72  startup_mk800x.o(.ZBOOT_SECTION)
+    mk_build_inf                             0x0202cfa8   Data          80  startup_mk800x.o(.ZBUILD_SECTION)
     SystemCoreClock                          0x0202e80c   Data           4  system_mk800x.o(.data.SystemCoreClock)
     app_wdt_cfg                              0x0202e810   Data          12  customboot.o(.data.app_wdt_cfg)
     flash_handle                             0x0202e884   Data         124  mk_flash.o(.data.flash_handle)
@@ -1791,9 +1796,9 @@
 
   Image Entry point : 0x0202a0c1
 
-  Load Region LR_ROM (Base: 0x0202a000, Size: 0x00002e9c, Max: 0x00004760, ABSOLUTE, COMPRESSED[0x00002d08])
+  Load Region LR_ROM (Base: 0x0202a000, Size: 0x00002f54, Max: 0x00004760, ABSOLUTE, COMPRESSED[0x00002dc0])
 
-    Execution Region ER_ROM (Exec base: 0x0202a000, Load base: 0x0202a000, Size: 0x00002ca8, Max: 0x00004760, ABSOLUTE)
+    Execution Region ER_ROM (Exec base: 0x0202a000, Load base: 0x0202a000, Size: 0x00002d60, Max: 0x00004760, ABSOLUTE)
 
     Exec Addr    Load Addr    Size         Type   Attr      Idx    E Section Name        Object
 
@@ -1910,40 +1915,41 @@
     0x0202bf98   0x0202bf98   0x0000006c   Code   RO          118    .text.flash_write_variable_len_cmd  mk_flash.o
     0x0202c004   0x0202c004   0x00000014   Code   RO          279    .text.gpio_open     mk_gpio.o
     0x0202c018   0x0202c018   0x00000050   Code   RO          363    .text.io_pin_mux_set  mk_io.o
-    0x0202c068   0x0202c068   0x00000274   Code   RO          634    .text.main          customboot.o
-    0x0202c2dc   0x0202c2dc   0x0000000c   Code   RO          379    .text.mk_chip_id    mk_misc.o
-    0x0202c2e8   0x0202c2e8   0x0000001c   Code   RO          149    .text.reset_module  mk_reset.o
-    0x0202c304   0x0202c304   0x00000008   Code   RO            7    .text.start_main_asm  startup_mk800x.o
-    0x0202c30c   0x0202c30c   0x0000002c   Code   RO          411    .text.sys_tick_start  mk_misc.o
-    0x0202c338   0x0202c338   0x0000000c   Code   RO          397    .text.sys_timer_get  mk_misc.o
-    0x0202c344   0x0202c344   0x0000004c   Code   RO          393    .text.sys_timer_open  mk_misc.o
-    0x0202c390   0x0202c390   0x00000048   Code   RO          181    .text.uart_baud_set  mk_uart.o
-    0x0202c3d8   0x0202c3d8   0x000000c8   Code   RO          189    .text.uart_dma_callback  mk_uart.o
-    0x0202c4a0   0x0202c4a0   0x00000174   Code   RO          201    .text.uart_irq_handler  mk_uart.o
-    0x0202c614   0x0202c614   0x0000014c   Code   RO          183    .text.uart_open     mk_uart.o
-    0x0202c760   0x0202c760   0x00000154   Code   RO          165    .text.uart_send     mk_uart.o
-    0x0202c8b4   0x0202c8b4   0x00000034   Code   RO          191    .text.uart_state_clear  mk_uart.o
-    0x0202c8e8   0x0202c8e8   0x00000060   Code   RO          187    .text.uart_state_set  mk_uart.o
-    0x0202c948   0x0202c948   0x00000044   Code   RO          344    .text.wdt_close     mk_wdt.o
-    0x0202c98c   0x0202c98c   0x0000009c   Code   RO          342    .text.wdt_open      mk_wdt.o
-    0x0202ca28   0x0202ca28   0x0000002c   Code   RO          348    .text.wdt_ping      mk_wdt.o
-    0x0202ca54   0x0202ca54   0x0000000e   Code   RO          766    i.__scatterload_copy  mc_p.l(handlers.o)
-    0x0202ca62   0x0202ca62   0x00000002   Code   RO          767    i.__scatterload_null  mc_p.l(handlers.o)
-    0x0202ca64   0x0202ca64   0x0000000e   Code   RO          768    i.__scatterload_zeroinit  mc_p.l(handlers.o)
-    0x0202ca72   0x0202ca72   0x00000002   PAD
-    0x0202ca74   0x0202ca74   0x00000018   Data   RO          451    .rodata..L__const.sys_timer_open.sys_timer_cfg  mk_misc.o
-    0x0202ca8c   0x0202ca8c   0x0000002a   Data   RO          212    .rodata.baud_table  mk_uart.o
-    0x0202cab6   0x0202cab6   0x00000002   PAD
-    0x0202cab8   0x0202cab8   0x00000060   Data   RO          135    .rodata.cst32       mk_flash.o
-    0x0202cb18   0x0202cb18   0x00000020   Data   RO          642    .rodata.cst32       customboot.o
-    0x0202cb38   0x0202cb38   0x000000dc   Data   RO          136    .rodata.flash_cmd   mk_flash.o
-    0x0202cc14   0x0202cc14   0x00000020   Data   RO          266    .rodata.kTable      aes.o
-    0x0202cc34   0x0202cc34   0x00000053   Data   RO          584    .rodata.str1.1      menu.o
-    0x0202cc87   0x0202cc87   0x00000001   PAD
-    0x0202cc88   0x0202cc88   0x00000020   Data   RO          765    Region$$Table       anon$$obj.o
+    0x0202c068   0x0202c068   0x000002a8   Code   RO          634    .text.main          customboot.o
+    0x0202c310   0x0202c310   0x0000000c   Code   RO          379    .text.mk_chip_id    mk_misc.o
+    0x0202c31c   0x0202c31c   0x0000001c   Code   RO          149    .text.reset_module  mk_reset.o
+    0x0202c338   0x0202c338   0x00000008   Code   RO            7    .text.start_main_asm  startup_mk800x.o
+    0x0202c340   0x0202c340   0x0000002c   Code   RO          411    .text.sys_tick_start  mk_misc.o
+    0x0202c36c   0x0202c36c   0x0000000c   Code   RO          397    .text.sys_timer_get  mk_misc.o
+    0x0202c378   0x0202c378   0x0000004c   Code   RO          393    .text.sys_timer_open  mk_misc.o
+    0x0202c3c4   0x0202c3c4   0x00000048   Code   RO          181    .text.uart_baud_set  mk_uart.o
+    0x0202c40c   0x0202c40c   0x0000007c   Code   RO          185    .text.uart_close    mk_uart.o
+    0x0202c488   0x0202c488   0x000000c8   Code   RO          189    .text.uart_dma_callback  mk_uart.o
+    0x0202c550   0x0202c550   0x00000178   Code   RO          201    .text.uart_irq_handler  mk_uart.o
+    0x0202c6c8   0x0202c6c8   0x00000150   Code   RO          183    .text.uart_open     mk_uart.o
+    0x0202c818   0x0202c818   0x00000154   Code   RO          165    .text.uart_send     mk_uart.o
+    0x0202c96c   0x0202c96c   0x00000034   Code   RO          191    .text.uart_state_clear  mk_uart.o
+    0x0202c9a0   0x0202c9a0   0x00000060   Code   RO          187    .text.uart_state_set  mk_uart.o
+    0x0202ca00   0x0202ca00   0x00000044   Code   RO          344    .text.wdt_close     mk_wdt.o
+    0x0202ca44   0x0202ca44   0x0000009c   Code   RO          342    .text.wdt_open      mk_wdt.o
+    0x0202cae0   0x0202cae0   0x0000002c   Code   RO          348    .text.wdt_ping      mk_wdt.o
+    0x0202cb0c   0x0202cb0c   0x0000000e   Code   RO          766    i.__scatterload_copy  mc_p.l(handlers.o)
+    0x0202cb1a   0x0202cb1a   0x00000002   Code   RO          767    i.__scatterload_null  mc_p.l(handlers.o)
+    0x0202cb1c   0x0202cb1c   0x0000000e   Code   RO          768    i.__scatterload_zeroinit  mc_p.l(handlers.o)
+    0x0202cb2a   0x0202cb2a   0x00000002   PAD
+    0x0202cb2c   0x0202cb2c   0x00000018   Data   RO          451    .rodata..L__const.sys_timer_open.sys_timer_cfg  mk_misc.o
+    0x0202cb44   0x0202cb44   0x0000002a   Data   RO          212    .rodata.baud_table  mk_uart.o
+    0x0202cb6e   0x0202cb6e   0x00000002   PAD
+    0x0202cb70   0x0202cb70   0x00000060   Data   RO          135    .rodata.cst32       mk_flash.o
+    0x0202cbd0   0x0202cbd0   0x00000020   Data   RO          642    .rodata.cst32       customboot.o
+    0x0202cbf0   0x0202cbf0   0x000000dc   Data   RO          136    .rodata.flash_cmd   mk_flash.o
+    0x0202cccc   0x0202cccc   0x00000020   Data   RO          266    .rodata.kTable      aes.o
+    0x0202ccec   0x0202ccec   0x00000053   Data   RO          584    .rodata.str1.1      menu.o
+    0x0202cd3f   0x0202cd3f   0x00000001   PAD
+    0x0202cd40   0x0202cd40   0x00000020   Data   RO          765    Region$$Table       anon$$obj.o
 
 
-    Execution Region RW_RAM1 (Exec base: 0x0202e800, Load base: 0x0202cca8, Size: 0x00000f94, Max: 0x00001200, ABSOLUTE, COMPRESSED[0x00000060])
+    Execution Region RW_RAM1 (Exec base: 0x0202e800, Load base: 0x0202cd60, Size: 0x00000f94, Max: 0x00001200, ABSOLUTE, COMPRESSED[0x00000060])
 
     Exec Addr    Load Addr    Size         Type   Attr      Idx    E Section Name        Object
 
@@ -1974,7 +1980,7 @@
     0x0202f714        -       0x00000080   Zero   RW          643    .bss.zhongjian_shuju  customboot.o
 
 
-    Execution Region ARM_LIB_STACK (Exec base: 0x0202fa00, Load base: 0x0202cd08, Size: 0x00000200, Max: 0x00000200, ABSOLUTE)
+    Execution Region ARM_LIB_STACK (Exec base: 0x0202fa00, Load base: 0x0202cdc0, Size: 0x00000200, Max: 0x00000200, ABSOLUTE)
 
     Exec Addr    Load Addr    Size         Type   Attr      Idx    E Section Name        Object
 
@@ -1982,14 +1988,14 @@
 
 
 
-  Load Region LR_ROM1 (Base: 0x0202cea0, Size: 0x00000098, Max: 0x000000a0, ABSOLUTE)
+  Load Region LR_ROM1 (Base: 0x0202cf60, Size: 0x00000098, Max: 0x000000a0, ABSOLUTE)
 
-    Execution Region USR (Exec base: 0x0202cea0, Load base: 0x0202cea0, Size: 0x00000098, Max: 0x000000a0, ABSOLUTE)
+    Execution Region USR (Exec base: 0x0202cf60, Load base: 0x0202cf60, Size: 0x00000098, Max: 0x000000a0, ABSOLUTE)
 
     Exec Addr    Load Addr    Size         Type   Attr      Idx    E Section Name        Object
 
-    0x0202cea0   0x0202cea0   0x00000048   Data   RO            9    .ZBOOT_SECTION      startup_mk800x.o
-    0x0202cee8   0x0202cee8   0x00000050   Data   RO           10    .ZBUILD_SECTION     startup_mk800x.o
+    0x0202cf60   0x0202cf60   0x00000048   Data   RO            9    .ZBOOT_SECTION      startup_mk800x.o
+    0x0202cfa8   0x0202cfa8   0x00000050   Data   RO           10    .ZBUILD_SECTION     startup_mk800x.o
 
 
 ==============================================================================
@@ -2001,7 +2007,7 @@
 
        924         36         32          0        788       7339   aes.o
        106         12          0          0         96       6447   board.o
-       658        208         32         12        164       4931   customboot.o
+       710        208         32         12        164       4942   customboot.o
        378         80         83          0       1280       3628   menu.o
        362         60          0          0          0       6289   mk_calib.o
        538         52          0          0          0       6806   mk_clock.o
@@ -2013,7 +2019,7 @@
        198         24         24          0         24      14597   mk_misc.o
         28          4          0          0          0       3693   mk_reset.o
         60         12          0         12          4       5762   mk_sleep_timer.o
-      1564         46         42        144          0      18106   mk_uart.o
+      1696         58         42        144          0      18106   mk_uart.o
        296         28          0         16          0       5931   mk_wdt.o
         36          4          0          0          0        988   pin_config.o
         42          8        344          0          0       3035   startup_mk800x.o
@@ -2021,7 +2027,7 @@
       1046         28          0          0       1129      11508   ymodem.o
 
     ----------------------------------------------------------------------
-     10414        754        908        500       4000     151392   Object Totals
+     10598        766        908        500       4000     151403   Object Totals
          0          0         32          0        512          0   (incl. Generated)
         18          0          3          0          3          0   (incl. Padding)
 
@@ -2064,15 +2070,15 @@
 
       Code (inc. data)   RO Data    RW Data    ZI Data      Debug   
 
-     10676        770        908        500       4000     151576   Grand Totals
-     10676        770        908         96       4000     151576   ELF Image Totals (compressed)
-     10676        770        908         96          0          0   ROM Totals
+     10860        782        908        500       4000     151587   Grand Totals
+     10860        782        908         96       4000     151587   ELF Image Totals (compressed)
+     10860        782        908         96          0          0   ROM Totals
 
 ==============================================================================
 
-    Total RO  Size (Code + RO Data)                11584 (  11.31kB)
+    Total RO  Size (Code + RO Data)                11768 (  11.49kB)
     Total RW  Size (RW Data + ZI Data)              4500 (   4.39kB)
-    Total ROM Size (Code + RO Data + RW Data)      11680 (  11.41kB)
+    Total ROM Size (Code + RO Data + RW Data)      11864 (  11.59kB)
 
 ==============================================================================
 

--
Gitblit v1.9.3