资源简介
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.xm
文件 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\ob
文件 549 2016-09-26 10:25 S32K144-Flash_RW_simple-S32DS12\Debug\Project_Settings\li
文件 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个文件信息
- 上一篇:基于esp32的摄像头采集图像代码
- 下一篇:C语言模块化编程(我见过最好的)
相关资源
- 基于STM32的嵌入式flash读写控制
- STM32内部FLASH模拟eerom
- 基于mfc vc 的flash播放器
- HT66Fxx flash 单片机原理与应用C语言版
- HT66Fxx+Flash单片机原理与实践+C语言
- 东北大学c++实验报告214492
- MCU读写SPI FLASH W25X40 的程序
- 华邦串行FLASH W25X40 读写程序范例,
- TI官方2833xflash擦写api文档与库安装文
- VNC远程控制(附C++源码)115144
- NXP S32K bootloader
- 基于S32K148的TBOX设计(s32k148_QSPI)
- 基于S32K148 TBOX(s32k148_sai_sgtl5000)
- S32K14X芯片LIN驱动
- S32K14X系列MCU硬件手册(共2023页)
- C++实战源码-播放Flash动画
- Stm32F030用Flash模拟EEPROM
评论
共有 条评论