📄 readme.txt
字号:
ColdFire 5407 Initialization Template
Files included in this project:
./src/
mcf5407_lo.s - Lowest level initialization file (assembly language)
sysinit.c - Initialization routines for all modules of the MCF5407
vectors.s - Complete exception vector table
mcf5407.h - Internal memory map structures, definitions, and macros
useful for accessing MBAR-offset addresses
init.h - Function prototypes and memory map information
main.c - Location of main process
int_handlers.c - Exception and interrupt handlers
io.c - Character I/O routines
printf.c - A simplified version of the standard C library routine
printf()
./
flash.dld - Diab Data linker file for use with Flash programmer
upuser.dld - Diab Data linker file for use with upuser command
ram.dld - Diab Data linker file that places code in RAM
objects.txt - List of all object files used by makefile.bat
makefile.bat - Batch file for compiling and linking this project
makefile - Makefile for compiling and linking this project
./obj
This directory is created by the makefiles and contains all the object,
map and executable outputs from the compilation and linking processes.
What does this code do?
The code provided here is configured to initialize the M5407C3 evaluation
board.
How do I get the code into Flash?
After making the project using the make of your choice (Makefile or
Makefile.bat), you will have two .elf and two .s19 files in the obj
directory. The 5407initFL.* files are linked to be used with the Flash
programmer of your choice. The 5407initUP.* files are linked to be
downloaded via a dBUG download command (dl or dn) and programmed into
Flash via the dBUG 'upuser' command.
What do I do after I get the program into Flash?
Once the code is in Flash, simply move the Flash address range
selection jumper to point to the upper address range. Next, open up a
terminal program and connect a serial cable to the DB-9 connector on your
board labelled "Terminal". Hit the Reset button and you should see the
following message:
Hard Reset
MCF5407 Initialization Complete!
How do I set up my environment?
1) Extract the initialization template to a working directory.
2) Make sure the makefile (makefile or makefile.bat) points to your
local compiler.
3) Add your test routines to main.c
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -