# at32f403ARGT7_app_offset_128k **Repository Path**: cplcpl/at32f403-argt7_app_offset_128k ## Basic Information - **Project Name**: at32f403ARGT7_app_offset_128k - **Description**: 解决app超过128K异常的问题: 程序烧录地址修改为124起始(0x1f000),测试跨128K的程序 ,离散加载 通过修改离散加载sct文件,将utility.c文件内的函数全部定义在124K起始 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-17 - **Last Updated**: 2024-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # gateway_rtt_sal [![License](https://img.shields.io/badge/license-Apache%202-green.svg)](https://gitee.com/moluo-tech/AT-Command/blob/master/LICENSE) #### 介绍 #### 软件架构 #### 解决app超过128K异常的问题 ``` { usart_send函数内添加判断: if(pu->RS485_PORT != RS485_PORT_NULL) { __usart_dis_tc_it(pu); } 程序烧录地址修改为124起始(0x1f000),测试跨128K的程序 ,离散加载是否可以解决问题 通过修改离散加载sct文件,将utility.c文件内的函数全部定义在124K起始(不能在128K以后) } sct文件修改后如下: ; ************************************************************* ; *** Scatter-Loading Description File generated by uVision *** ; ************************************************************* LR_IROM1 0x0801f000 0x00100000 { ; load region size_region ER_IROM1 0x0801f000 0x00100000 { ; load address = execution address *.o (RESET, +First) *(InRoot$$Sections) utility.o(+RO) } RW_IRAM1 0x20000000 0x00038000 { ; RW data .ANY (+RW +ZI) } } LR_IROM2 0x08060000 0x00100000 { ; load region size_region ER_IROM2 0x08060000 0x00100000 { ; load address = execution address .ANY (+RO) } } ```