资源简介

文件代码是在最新的龙邱官方的kv58基础上改的,使用的上位机是山外上位机

资源截图

代码片段和文件信息

/*
 * Copyright (c) 2013 - 2014 Freescale Semiconductor Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms with or without modification
 * are permitted provided that the following conditions are met:
 *
 * o Redistributions of source code must retain the above copyright notice this list
 *   of conditions and the following disclaimer.
 *
 * o Redistributions in binary form must reproduce the above copyright notice this
 *   list of conditions and the following disclaimer in the documentation and/or
 *   other materials provided with the distribution.
 *
 * o Neither the name of Freescale Semiconductor Inc. nor the names of its
 *   contributors may be used to endorse or promote products derived from this
 *   software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“ AND
 * ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
 * ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES
 * (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
 * ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include “startup.h“
#include “fsl_device_registers.h“

#if (defined(__ICCARM__))
    #pragma section = “.data“
    #pragma section = “.data_init“
    #pragma section = “.bss“
#endif

/*******************************************************************************
 * Code
 ******************************************************************************/

/*FUNCTION**********************************************************************
 *
 * Function Name : init_data_bss
 * Description   : Make necessary initializations for RAM.
 * - Copy initialized data from ROM to RAM.
 * - Clear the zero-initialized data section.
 * - Copy the vector table from ROM to RAM. This could be an option.  
 *
 * Tool Chians:
 *   __GNUC__   : GCC
 *   __CC_ARM   : KEIL
 *   __ICCARM__ : IAR
 *
 *END**************************************************************************/
void init_data_bss(void)
{
    uint32_t n; 
    
    /* Addresses for VECTOR_TABLE and VECTOR_RAM come from the linker file */
#if defined(__CC_ARM)
    extern uint32_t Image$$VECTOR_ROM$$base[];
    extern uint32_t Image$$VECTOR_RAM$$base[];
    extern uint32_t Image$$VECTOR_RAM$$ZI$$Length[];

    #define __VECTOR_TABLE Image$$VECTOR_ROM$$base  
    #define __VECTOR_RAM Image$$VECTOR_RAM$$base  
    #define __RAM_VECTOR_TABLE_SIZE Image$$VECTOR_RAM$$ZI$$Le

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-02-17 18:09  图像上位机测试\
     文件         755  2018-03-28 22:23  图像上位机测试\LQ_KV58F24第3版20180424\settings\demoLQ_KV58F24_Debug.jlink
     文件          51  2018-04-24 17:15  图像上位机测试\LQ_KV58F24第3版20180424\settings\demoLQ_KV58F24.wspos
     文件       44079  2019-02-25 16:17  图像上位机测试\LQ_KV58F24第3版20180424\settings\demoLQ_KV58F24.wsdt
     文件       17713  2019-02-25 16:17  图像上位机测试\LQ_KV58F24第3版20180424\settings\demoLQ_KV58F24.dnx
     文件        7381  2018-04-24 17:15  图像上位机测试\LQ_KV58F24第3版20180424\settings\demoLQ_KV58F24.dni
     文件       73931  2019-02-25 16:17  图像上位机测试\LQ_KV58F24第3版20180424\settings\demoLQ_KV58F24.dbgdt
     文件         384  2019-02-25 16:17  图像上位机测试\LQ_KV58F24第3版20180424\settings\demoLQ_KV58F24.crun
     文件         598  2019-02-25 15:24  图像上位机测试\LQ_KV58F24第3版20180424\settings\demoLQ_KV58F24.Release.general.xcl
     文件         406  2019-02-25 15:24  图像上位机测试\LQ_KV58F24第3版20180424\settings\demoLQ_KV58F24.Release.driver.xcl
     文件        1705  2019-02-25 15:24  图像上位机测试\LQ_KV58F24第3版20180424\settings\demoLQ_KV58F24.Release.cspy.ps1
     文件        1764  2019-02-25 15:24  图像上位机测试\LQ_KV58F24第3版20180424\settings\demoLQ_KV58F24.Release.cspy.bat
     文件         542  2018-03-28 22:40  图像上位机测试\LQ_KV58F24第3版20180424\settings\demoLQ_KV58F24.Debug.general.xcl
     文件         495  2018-03-28 22:40  图像上位机测试\LQ_KV58F24第3版20180424\settings\demoLQ_KV58F24.Debug.driver.xcl
     文件        1634  2018-03-28 22:40  图像上位机测试\LQ_KV58F24第3版20180424\settings\demoLQ_KV58F24.Debug.cspy.bat
     目录           0  2019-02-17 18:10  图像上位机测试\LQ_KV58F24第3版20180424\settings\
     文件       13275  2019-02-25 11:13  图像上位机测试\LQ_KV58F24第3版20180424\release\obj\system_MKV58F24.pbi.xcl
     文件     3577464  2019-02-25 11:13  图像上位机测试\LQ_KV58F24第3版20180424\release\obj\system_MKV58F24.pbi
     文件        4701  2019-01-21 12:56  图像上位机测试\LQ_KV58F24第3版20180424\release\obj\system_MKV58F24.o
     文件       10635  2019-01-21 12:55  图像上位机测试\LQ_KV58F24第3版20180424\release\obj\startup_MKV58F24.o
     文件       13267  2019-02-25 11:13  图像上位机测试\LQ_KV58F24第3版20180424\release\obj\startup.pbi.xcl
     文件     3574778  2019-02-25 11:13  图像上位机测试\LQ_KV58F24第3版20180424\release\obj\startup.pbi
     文件        3735  2019-01-21 12:56  图像上位机测试\LQ_KV58F24第3版20180424\release\obj\startup.o
     文件       13264  2019-02-25 11:14  图像上位机测试\LQ_KV58F24第3版20180424\release\obj\print_scan.pbi.xcl
     文件       86436  2019-02-25 11:14  图像上位机测试\LQ_KV58F24第3版20180424\release\obj\print_scan.pbi
     文件        6694  2019-01-21 12:56  图像上位机测试\LQ_KV58F24第3版20180424\release\obj\print_scan.o
     文件       13258  2019-02-25 11:13  图像上位机测试\LQ_KV58F24第3版20180424\release\obj\pin_mux.pbi.xcl
     文件     3611565  2019-02-25 11:13  图像上位机测试\LQ_KV58F24第3版20180424\release\obj\pin_mux.pbi
     文件       14044  2019-01-21 12:56  图像上位机测试\LQ_KV58F24第3版20180424\release\obj\pin_mux.o
     文件       13273  2019-02-25 11:13  图像上位机测试\LQ_KV58F24第3版20180424\release\obj\fsl_smc_hal.pbi.xcl
     文件     3591654  2019-02-25 11:13  图像上位机测试\LQ_KV58F24第3版20180424\release\obj\fsl_smc_hal.pbi
............此处省略1185个文件信息

评论

共有 条评论