-
大小: 4.54MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-09-16
- 语言: 其他
- 标签: freescale S12 S12X Bootloader
资源简介
freescale S12 S12X Bootloader Demo
支持freescale S12系列和S12X系列所有的16位机,BootLoad代码简洁易懂
代码片段和文件信息
/******************************************************************************
FILE : datapage.c
PURPOSE : paged data access runtime routines
MACHINE : Freescale 68HC12 (Target)
LANGUAGE : ANSI-C
HISTORY : 21.7.96 first version created
******************************************************************************/
#include “hidef.h“
#include “non_bank.sgm“
#include “runtime.sgm“
#ifndef __HCS12X__ /* it‘s different for the HCS12X. See the text below at the #else // __HCS12X__ */
/*
According to the -Cp option of the compiler the
__DPAGE__ __PPAGE__ and __EPAGE__ macros are defined.
If none of them is given as argument then no page accesses should occur and
this runtime routine should not be used !
To be on the save side the runtime routines are created anyway.
If some of the -Cp options are given an adapted versions which only covers the
needed cases is produced.
*/
/* if no compiler option -Cp is given it is assumed that all possible are given : */
/* Compile with option -DHCS12 to activate this code */
#if defined(HCS12) || defined(_HCS12) || defined(__HCS12__) /* HCS12 family has PPAGE register only at 0x30 */
#define PPAGE_ADDR (0x30+REGISTER_base)
#ifndef __PPAGE__ /* may be set already by option -CPPPAGE */
#define __PPAGE__
#endif
/* Compile with option -DDG128 to activate this code */
#elif defined DG128 /* HC912DG128 derivative has PPAGE register only at 0xFF */
#define PPAGE_ADDR (0xFF+REGISTER_base)
#ifndef __PPAGE__ /* may be set already by option -CPPPAGE */
#define __PPAGE__
#endif
#elif defined(HC812A4)
/* all setting default to A4 already */
#endif
#if !defined(__EPAGE__) && !defined(__PPAGE__) && !defined(__DPAGE__)
/* as default use all page registers */
#define __DPAGE__
#define __EPAGE__
#define __PPAGE__
#endif
/* modify the following defines to your memory configuration */
#define EPAGE_LOW_BOUND 0x400u
#define EPAGE_HIGH_BOUND 0x7ffu
#define DPAGE_LOW_BOUND 0x7000u
#define DPAGE_HIGH_BOUND 0x7fffu
#define PPAGE_LOW_BOUND (DPAGE_HIGH_BOUND+1)
#define PPAGE_HIGH_BOUND 0xBFFFu
#define REGISTER_base 0x0u
#ifndef DPAGE_ADDR
#define DPAGE_ADDR (0x34u+REGISTER_base)
#endif
#ifndef EPAGE_ADDR
#define EPAGE_ADDR (0x36u+REGISTER_base)
#endif
#ifndef PPAGE_ADDR
#define PPAGE_ADDR (0x35u+REGISTER_base)
#endif
/*
The following parts about the defines are assumed in the code of _GET_PAGE_REG :
- the memory region controlled by DPAGE is above the area controlled by the EPAGE and
below the area controlled by the PPAGE.
- the lower bound of the PPAGE area is equal to be the higher bound of the DPAGE area + 1
*/
#if EPAGE_LOW_BOUND >= EPAGE_HIGH_BOUND || EPAGE_HIGH_BOUND >= DPAGE_LOW_BOUND || DPAGE_LOW_BOUND >= DPAGE_HIGH_BOUND || DPAGE_HIGH_BOUND >= PPAGE_LOW_BOUND || PPAGE_LOW_BOUND >= PPAGE_HIGH_BOUND
#error /* please adapt _GET_PAGE_REG for
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2011-02-17 12:56 Bootloader_S12\
目录 0 2011-02-17 12:37 Bootloader_S12\bin\
文件 33508 2011-02-17 12:56 Bootloader_S12\bin\Project.abs
文件 5794 2011-02-17 12:56 Bootloader_S12\bin\Project.abs.phy
文件 5646 2011-02-17 12:56 Bootloader_S12\bin\Project.abs.s19
文件 25603 2011-02-17 12:56 Bootloader_S12\bin\Project.map
文件 4133 2010-12-10 10:58 Bootloader_S12\bin\StartS12.dbg
文件 605751 2010-12-22 10:17 Bootloader_S12\Bootloader_S12.mcp
目录 0 2011-02-17 12:37 Bootloader_S12\Bootloader_S12_Data\
文件 4769 2011-02-17 12:53 Bootloader_S12\Bootloader_S12_Data\CWSettingsWindows.stg
目录 0 2011-02-17 12:37 Bootloader_S12\Bootloader_S12_Data\S12G128\
目录 0 2011-02-17 12:37 Bootloader_S12\Bootloader_S12_Data\S12G128\ob
文件 9797 2010-12-03 13:46 Bootloader_S12\Bootloader_S12_Data\S12G128\ob
文件 6085 2010-12-09 13:58 Bootloader_S12\Bootloader_S12_Data\S12G128\ob
文件 14191 2010-12-09 13:58 Bootloader_S12\Bootloader_S12_Data\S12G128\ob
文件 6517 2010-12-09 13:58 Bootloader_S12\Bootloader_S12_Data\S12G128\ob
文件 13036 2010-12-09 13:58 Bootloader_S12\Bootloader_S12_Data\S12G128\ob
文件 7613 2010-12-09 13:58 Bootloader_S12\Bootloader_S12_Data\S12G128\ob
文件 3041 2010-12-09 13:58 Bootloader_S12\Bootloader_S12_Data\S12G128\ob
文件 83140 2011-02-17 12:56 Bootloader_S12\Bootloader_S12_Data\S12G128\TargetDataWindows.tdt
目录 0 2011-02-17 12:37 Bootloader_S12\Bootloader_S12_Data\S12G96\
目录 0 2011-02-17 12:37 Bootloader_S12\Bootloader_S12_Data\S12G96\ob
文件 59776 2011-02-17 12:56 Bootloader_S12\Bootloader_S12_Data\S12G96\TargetDataWindows.tdt
目录 0 2011-02-17 12:37 Bootloader_S12\Bootloader_S12_Data\S12HA32\
文件 57760 2011-02-17 12:56 Bootloader_S12\Bootloader_S12_Data\S12HA32\TargetDataWindows.tdt
目录 0 2011-02-17 12:37 Bootloader_S12\Bootloader_S12_Data\S12HA48\
文件 57760 2011-02-17 12:56 Bootloader_S12\Bootloader_S12_Data\S12HA48\TargetDataWindows.tdt
目录 0 2011-02-17 12:37 Bootloader_S12\Bootloader_S12_Data\S12HA64\
文件 57760 2011-02-17 12:56 Bootloader_S12\Bootloader_S12_Data\S12HA64\TargetDataWindows.tdt
目录 0 2011-02-17 12:37 Bootloader_S12\Bootloader_S12_Data\S12HY32\
文件 57760 2011-02-17 12:56 Bootloader_S12\Bootloader_S12_Data\S12HY32\TargetDataWindows.tdt
............此处省略443个文件信息
相关资源
- _电子万年历DS12C887温度18B20LCD12864显示
- MC9S12XS128单片机学习
- 飞思卡尔MC9S12XS128详细学习资料不只是
- PEDrivers_install.exe
- MC9S12超详细中文资料
- K60XS128PID测速讲解
- TMS570LS1224片内FLASH读写例程自建工程
- MC9S12XEP100单片机学习
- MC9S12XS单片机原理及嵌入式系统开发资
- MC9S12XS128新手入门源代码
- 全国ALOS12.5m DEM免费方法.pdf
- iOS 12 Programming Fundamentals with Swift (
- 飞思卡尔 MC9S12X中文数据手册
- STM32F103驱动ADS1255以及lcd1602
- MCF52259中文资料.pdf
- STM32-CS1237&HX711;.zip
- ADS1256驱动代码stm32f103
- mc9x12xs128单片机的20个例程
- ADS1299数据采集系统程序.zip
- FlexRay总线控制器单片机驱动MC9S12XDP
- Proteus模拟可显示温度与气压的时钟
- Data Structures and Algorithms v2.0 (iOS12 &
- MC9S12XS128开发板资料详细代码
- ADS1271驱动程序
- IOS12.2 真机调试包
- IOS12.1 (16B92)驱动
- ios12.1 真机开发包支持文件
- ios12.3.zip
- sketch-iOS12的原生组件
- 飞思卡尔 I.MX6 Linux环境搭建中文手册
评论
共有 条评论