• 大小: 0.51M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2024-04-21
  • 语言: C/C++
  • 标签: flash  S32k  144  S3  14  

资源简介

S32K144 flash读写源码

资源截图

代码片段和文件信息

/*
 * 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“
#include 

#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__   : GNU Compiler Collection
 *   __ghs__    : GreenHillsARM
 *   __CC_ARM   : KEIL
 *   __ICCARM__ : IAR
 *   __CSMC__   : Cosmic C Cross Compiler
 *   __DCC__    : Wind River Diab Compiler
 *
 *END**************************************************************************/
void init_data_bss(void)
{
    uint32_t n;
    
#if defined(__GNUC__) || defined(__ghs__) || defined(__CSMC__)  || defined(__DCC__) || defined(__ICCARM__)
    /* Declare pointers for various data sections. These pointers
     * are initialized using values pulled in from the linker file */
    uint8_t * data_ram * data_rom * data_rom_end;
    uint8_t * bss_start * bss_

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      67968  2016-09-26 09:11  S32K144-Flash_RW_simple-S32DS12\.cproject

     文件        809  2016-09-26 08:05  S32K144-Flash_RW_simple-S32DS12\.project

     文件        253  2016-09-26 08:05  S32K144-Flash_RW_simple-S32DS12\.settings\com.freescale.s32ds.cross.core.prefs

     文件         87  2016-09-26 08:05  S32K144-Flash_RW_simple-S32DS12\.settings\com.processorexpert.core.ide.newprojectwizard.prefs

     文件       3094  2016-09-26 09:11  S32K144-Flash_RW_simple-S32DS12\.settings\language.settings.xml

     文件       1519  2016-09-26 08:05  S32K144-Flash_RW_simple-S32DS12\.settings\org.eclipse.cdt.core.prefs

     文件       2070  2016-09-26 10:25  S32K144-Flash_RW_simple-S32DS12\Debug\makefile

     文件        379  2016-09-26 10:25  S32K144-Flash_RW_simple-S32DS12\Debug\makefile.local

     文件        276  2016-09-26 10:25  S32K144-Flash_RW_simple-S32DS12\Debug\objects.mk

     文件        549  2016-09-26 10:25  S32K144-Flash_RW_simple-S32DS12\Debug\Project_Settings\linker_Files\subdir.mk

     文件        498  2016-09-26 10:25  S32K144-Flash_RW_simple-S32DS12\Debug\Project_Settings\Startup_Code\startup.args

     文件       2171  2016-09-26 08:58  S32K144-Flash_RW_simple-S32DS12\Debug\Project_Settings\Startup_Code\startup.d

     文件     515228  2016-09-26 08:58  S32K144-Flash_RW_simple-S32DS12\Debug\Project_Settings\Startup_Code\startup.o

     文件        414  2016-09-26 10:25  S32K144-Flash_RW_simple-S32DS12\Debug\Project_Settings\Startup_Code\startup_S32K144.args

     文件       8916  2016-09-26 08:58  S32K144-Flash_RW_simple-S32DS12\Debug\Project_Settings\Startup_Code\startup_S32K144.o

     文件       2747  2016-09-26 10:25  S32K144-Flash_RW_simple-S32DS12\Debug\Project_Settings\Startup_Code\subdir.mk

     文件        498  2016-09-26 10:25  S32K144-Flash_RW_simple-S32DS12\Debug\Project_Settings\Startup_Code\system_S32K144.args

     文件       2195  2016-09-26 08:58  S32K144-Flash_RW_simple-S32DS12\Debug\Project_Settings\Startup_Code\system_S32K144.d

     文件     516124  2016-09-26 08:58  S32K144-Flash_RW_simple-S32DS12\Debug\Project_Settings\Startup_Code\system_S32K144.o

     文件        452  2016-09-26 10:25  S32K144-Flash_RW_simple-S32DS12\Debug\S32K144-Flash_RW_simple-S32DS12.args

     文件     514089  2016-09-26 10:25  S32K144-Flash_RW_simple-S32DS12\Debug\S32K144-Flash_RW_simple-S32DS12.elf

     文件      46112  2016-09-26 10:25  S32K144-Flash_RW_simple-S32DS12\Debug\S32K144-Flash_RW_simple-S32DS12.map

     文件       1190  2016-09-26 10:25  S32K144-Flash_RW_simple-S32DS12\Debug\sources.mk

     文件        498  2016-09-26 10:25  S32K144-Flash_RW_simple-S32DS12\Debug\src\main.args

     文件       2637  2016-09-26 10:25  S32K144-Flash_RW_simple-S32DS12\Debug\src\main.d

     文件     502348  2016-09-26 10:25  S32K144-Flash_RW_simple-S32DS12\Debug\src\main.o

     文件        925  2016-09-26 10:25  S32K144-Flash_RW_simple-S32DS12\Debug\src\subdir.mk

     文件       2011  2016-09-26 08:05  S32K144-Flash_RW_simple-S32DS12\include\devassert.h

     文件       2920  2016-09-26 08:05  S32K144-Flash_RW_simple-S32DS12\include\fsl_core_cm4.h

     文件       2968  2016-09-26 08:05  S32K144-Flash_RW_simple-S32DS12\include\fsl_device_registers.h

............此处省略55个文件信息

评论

共有 条评论