URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [HCS12_CodeWarrior_banked/] [readme.txt] - Rev 588
Compare with Previous | Blame | View Log
//------------------------------------------------------------------------// Readme.txt//------------------------------------------------------------------------This project stationery is designed to get you up and runningquickly with CodeWarrior for MC9S12DP256B.It is set up for the selected CPU and target connection,but can be easily modified.Sample code for the following language(s) is at your disposal:- CThe wizard has prepared CodeWarrior target(s) with the connection methods ofyour choice:- Simulator:This interface/target is prepared to use the FCS (Full Chip Simulation).- P&E ICD12:This enables to debug with the P&E ICD12 target interface.The P&E ICD12 target interface allows to debug using theBDM connector with P&E BDM Multilink or Cable12 hardware.The BDM Multilink and Cable12 connect to the host parallel port.Please consult your hardware documentation for additional details.Additional connections can be chosen in the simulator/debugger,use the menu Component > Set Target.//------------------------------------------------------------------------// Processor Expert//------------------------------------------------------------------------This project is prepared to be designed with Processor Expert.The project has an additional 'tab' named 'Processor Expert' where youcan configure the CPU and its beans.The CPU selected is inserted into the Processor Expert project panel, inthe Debug and Release configurations.Change of the configuration is possible by the mouse double-click on it.All the installed Embedded Beans are accessible in the Bean Selectorwindow, grouped into folders according to their function. The mousedouble-click on selected Embedded Bean in the Bean Selector window addsthe Bean to the project. The mouse double-click on the Bean icon in theProject panel opens the Bean Inspector window, which is used to set theBean properties. Source code is generated after selecting the(Code Design 'Project_name.mcp') menu command from the CodeWarrior mainwindow (Processor Expert > Code design 'Project_name.mcp').Use the bean methods and events to write your code in the main module'Project_name'.c and the event module Events.c.For more help please read Processor Expert help:(Processor Expert > Help > 'Topic').The following folders are used in CodeWarrior project window forProcessorExpert:- User modules: contains your sources. The main module 'Project_name'.cand event module Events.c are located here after the Processor Expertcode generation.- Prm: Linker parameter file used for linking. Note that the file usedfor the linker is specified in the Linker Preference Panel. To openthe Preference Panel, please press <ALT-F7> or open the(Edit > 'Current Build Target Name' Settings...) menu item in theCodeWarrior main window menu, while the project window is opened).After Processor Expert code generation 'Project_name'.prm filewill be placed here. You can switch off the .prm file generation inProcessor Expert if you want (in the CPU bean, Build Options)- Generated code: this folder appears after the Processor Expert codegeneration and contains generated code from Processor Expert.- Doc: other files generated from the Processor Expert (documentation)//------------------------------------------------------------------------// Getting Started//------------------------------------------------------------------------To build/debug your project, use the menu Project > Debug or press F5.This will open the simulator/debugger.Press again F5 in the debugger (or menu Run > Start/Continue) to startthe application. The menu Run > Halt or F6 stops the application.In the debugger menu Component > Open you can load additional components.//------------------------------------------------------------------------// Project structure//------------------------------------------------------------------------The project generated contains various files/folders:- readme.txt: this file- Sources: folder with the application source code- Startup Code: C/C++ startup code- Prm:- burner.bbl file to generate S-Records- Linker Map: the .map file generated by the linker- Libraries: needed library files (ANSI, derivative header/implementation files)- Debugger Project File: contains a .ini file for the debugger for eachconnection- Debugger Cmd Files: contains sub-folders for each connection with commandfiles//------------------------------------------------------------------------// Adding your own code//------------------------------------------------------------------------Once everything is working as expected, you can begin adding your own codeto the project. Keep in mind that we provide this as an example of how toget up and running quickly with CodeWarrior. There are certainly otherways to handle interrupts and set up your linker command file. Feel freeto modify any of the source files provided.//------------------------------------------------------------------------// Simulator/Debugger: Additional components//------------------------------------------------------------------------In the simulator/debugger, you can load additional components. Try the menuComponent > Open.//------------------------------------------------------------------------// Additional documentation//------------------------------------------------------------------------Check out the online documentation provided. Use in CodeWarrior IDE themenu Help > Online Manuals.//------------------------------------------------------------------------// Contacting Metrowerks//------------------------------------------------------------------------For bug reports, technical questions, and suggestions, please use theforms installed in the Release_Notes folder and send them to:USA: support@metrowerks.comEUROPE: support_europe@metrowerks.comASIA/PACIFIC: j-emb-sup@metrowerks.com
