//------------------------------------------------------------------------
// Readme.txt
//------------------------------------------------------------------------
This project is configure to get you up and running quickly using
CodeWarrior with the Freescale MCF52259 board.
This project provides full support for the selected board.
The created project provides Standard IO Support through console and terminal window.
Sample code for the following language:
- C
//------------------------------------------------------------------------
// Memory Maps
//------------------------------------------------------------------------
The Hardware has the following memory map:
# MCF52259 Derivative Memory map definitions from linker command files:
# __IPSBAR, __RAMBAR, __RAMBAR_SIZE, __FLASHBAR, __FLASHBAR_SIZE linker
# symbols must be defined in the linker command file.
# Memory Mapped Registers (IPSBAR= 0x40000000)
___IPSBAR = 0x40000000;
# 32 Kbytes Internal SRAM
___RAMBAR = 0x20000000;
___RAMBAR_SIZE = 0x0000FFFF;
# 512 KByte Internal Flash Memory
___FLASHBAR = 0x00000000;
___FLASHBAR_SIZE = 0x00080000;
//------------------------------------------------------------------------
// Project Structure
//------------------------------------------------------------------------
The project generated contains various files/groups:
- readme.txt: information for this project
- Sources: application source codes, user customizable startup
code, uart library, exception table
- Includes: derivative and board header files, ...
- Libs: runtime and libs
- Project Settings: linker command files for the different build
targets, the initialization and memory configuration files for
the hardware debugging, the common startup code, etc...
//------------------------------------------------------------------------
// Build Targets
//------------------------------------------------------------------------
- CONSOLE_INTERNAL_RAM:
This project target is setup to load and debug code from internal RAM.
It should be used during your application development.
The application outputs to the CodeWarrior's console window.
- INTERNAL_RAM:
This project target is setup to load and debug code from internal RAM.
It should be used during your application development.
This is the very basic project that outputs to the UART.
You needs to connect a Terminal Program to see the output.
- INTERNAL_FLASH:
This project target is setup to load and debug code in Internal FLASH.
This is the very basic project that outputs to the UART. User needs
to connect the terminal to see the output.
===================================================================
WARNING regarding debugging new project wizard code with CCS-SIM
===================================================================
The CCS-SIM is an instruction set simulator, it does not implement
any peripherals.
The new project generated by the wizard are using startup code
performing some hardware peripheral initializations.
When debugging with the CCS-SIM it might happen that the simulation
stuck on loop using non implemented peripheral register flag as
condition (PLL initialization as example).
In this case, you should either:
- move the PC to next statement
- use a skip point
- define a simulator specific macro which used when define allos you
to comment out the unwanted code in order to debug with CCS-SIM
===================================================================
WARNING regarding code located in RAM
===================================================================
Many possible ColdFire target processors have an external bus, so
you can use large external RAM devices for debugging applications
during development. But some processors do not have an external
bus, so you must accommodate applications in on-chip memory.
Although this on-chip RAM accommodates this CodeWarrior project,
it probably is too small for full development of your application.
Accordingly, for a processor without external bus, you should locate
your applications in flash memory.
//------------------------------------------------------------------------
// Flashing the code
//------------------------------------------------------------------------
1. Select the appropriate project target and build it
2. Make sure the correct remote connection is selected in the Remote
Connection debugger panel
3. In the CodeWarrior IDE menu, select Project > Set Default Project
and select your project
4. In the CodeWarrior IDE menu, select Project > Set Default Target
and select the project target that has the code you want to flash
5. In the CodeWarrior IDE menu, select Tools > Flash Programmer
6. Go to the flash programmer Target Configuration panel, click Load
Settings
7. Browse to the <your project location>\cfg sub folder and
select the flash settings xml file matching your build target
8. Check that Use Custom Settings checkbox is not selected
9. Go to the Erase/Blank Check panel, select the All Sectors option and
click Erase
10. Go to Program/Verify panel, click Program
11. Your code should now be flashed
//------------------------------------------------------------------------
// Terminal Settings
//------------------------------------------------------------------------
In case the UART is supported, the terminal should be setup with:
- 19200 bauds,
- 8 data bits,
- no parity,
- 1 stop bit,
- no flow control.
Please check this file in the project.
//------------------------------------------------------------------------
// Getting Started
//------------------------------------------------------------------------
To build/debug your project, use the CodeWarrior IDE menu Project > Debug
or press F5. This will launch the debugger. Press again F5 in the
debugger (or the CodeWarrior IDE menu Project > Run) to start the
application. The CodeWarrior IDE menu Project > Break stops the
application.
//------------------------------------------------------------------------
// Adding your own code
//------------------------------------------------------------------------
Once everything is working as expected, you can begin adding your own code
to the project. Keep in mind that we provide this as an example of how to
get up and running quickly with CodeWarrior. There are certainly other
ways to handle interrupts and set up your linker command file. Feel free
to modify any of the source files provided.
//------------------------------------------------------------------------
// Additional documentation
//------------------------------------------------------------------------
Read the online documentation provided. In CodeWarrior IDE menu, select
Help > CodeWarrior Help.
//------------------------------------------------------------------------
// Contacting Freescale
//------------------------------------------------------------------------
For bug reports, technical questions, and suggestions, please use the
forms installed in the Release_Notes folder.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
OLED-SPI完整资料,支持多种单片机 (900个子文件)
distance_area.__i 316B
std_function.__i 313B
dlg_sysinfo.__i 310B
dome_param.__i 307B
gps_track.__i 304B
key_input.__i 304B
dome_item.__i 304B
dome_draw.__i 304B
dlg_main.__i 301B
dome_gui.__i 301B
systime.__i 298B
adxl345.__i 298B
adx345.__i 295B
system.__i 295B
usart.__i 292B
gps.__i 286B
iic.__i 286B
ad.__i 283B
STARTUP.A51 6KB
STARTUP.A51 6KB
STARTUP.A51 5KB
Project.abs 182KB
Project.abs 176KB
Project.abs 174KB
Project.abs 173KB
OLED.uvgui.Administrator 73KB
spi_pic.uvgui.Administrator 70KB
STM3210E-EVAL.axf 1.32MB
USERAPP.axf 304KB
Project.uvgui_tangxiaojin.bak 82KB
OLED.uvgui_txj.bak 74KB
OLED.uvgui_Administrator.bak 73KB
LQ-STC&52-OLED.uvgui_txj.bak 71KB
Project.uvgui_txj.bak 70KB
spi_pic.uvgui_Administrator.bak 70KB
spi_pic_uvopt.bak 55KB
Project_uvproj.bak 46KB
Project_uvopt.bak 29KB
LQ-STC&52-OLED_uvproj.bak 14KB
OLED_uvproj.bak 13KB
Project_Uv2.Bak 10KB
Project.Uv2.bak 9KB
Project.opt.bak 8KB
Project_Opt.Bak 8KB
LQ-STC&52-OLED_uvopt.bak 7KB
OLED_uvopt.bak 6KB
LQ-STC&52-OLED.Uv2.bak 2KB
LQ-STC&52-OLED_Opt.Bak 1KB
LQ-STC&52-OLED.opt.bak 1KB
STM3210E-EVAL_sct.Bak 479B
USERAPP_sct.Bak 479B
spi_pic_uvproj.bak 0B
LQ-STC&52-OLED_Uv2.Bak 0B
LQ_OLED_K60.cspy.bat 1KB
k60_led.cspy.bat 1KB
light.cspy.bat 1KB
led.cspy.bat 1KB
OLED.cspy.bat 1KB
LQ_light.cspy.bat 1KB
k60_led_k40_tower.cspy.bat 1KB
k60_led_k60_tower.cspy.bat 1KB
gpio.cspy.bat 969B
uart_loop.cspy.bat 833B
burner.bbl 10KB
burner.bbl 10KB
burner.bbl 10KB
burner.bbl 10KB
USERAPP.bin 7KB
手机桌面.BMP 1KB
VCL60.BPL 1.26MB
RTL60.BPL 661KB
u8g_font_data.c 4.24MB
stm32f10x_tim.c 128KB
datapage.c 67KB
datapage.c 67KB
datapage.c 67KB
datapage.c 67KB
chessengine.c 62KB
stm32f10x_adc.c 57KB
stm32f10x_i2c.c 47KB
stm32f10x_usart.c 43KB
stm32f10x_rcc.c 43KB
LQ12864-bu.c 42KB
LQ12864-bu.c 42KB
LQ12864.c 41KB
stm32f10x_fsmc.c 40KB
stm32f10x_sdio.c 38KB
LQ12864.c 37KB
LQ12864.c 37KB
LQ12864.c 36KB
LQ12864.c 36KB
u8g_font.c 36KB
stm32f10x_spi.c 34KB
LCD12864.c 34KB
OLED.c 33KB
stm32f10x_dma.c 33KB
stm32f10x_flash.c 32KB
stm32f10x_can.c 31KB
exceptions.c 31KB
stm32f10x_it.c 29KB
共 900 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9
资源评论
kinglonh
- 粉丝: 0
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功