-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Getting Started
ErichStyger edited this page Jan 6, 2013
·
20 revisions
It is assumed that
- You are familiar with GIT :-)
- You have Processor Expert (e.g. with CodeWarrior for MCU, Eclipse based, http://freescale.com/cwmcu10) installed. The current version is 10.3. Things might be backward compatible, but it is recommended to use the latest and greatest one.
- Processor Expert is enabled to create/change/edit components (CDE (Component Development Environment)
NOTE: I'm working with Freescale to get a free license for this for CodeWarrior, right now you need either an evaluation license or a professional license.
The steps below are for CodeWarrior for MCU10.3:
- Check out/download the components repository files to your local hardddisk. E.g. this means the LED project is on your harddisk as C:\My Files\GitHub\mcuoneclipse\Components\LED
- Start Eclipse/CodeWarrior with a new workspace located in the 'Components' folder (means: C:\My Files\GitHub\mcuoneclipse\Components is your workspace folder, and the LED folder is inside your workspace
- Drag&drop the Components\LED folder into the workspace to add it to your project list in CodeWarrior
- Open the Processor Expert views with a menu: Processor Expert > Show Views
- In the 'Components' view you can edit the component properties and methods
- The driver code can be found in the 'CodeWarrior Projects' view, inside the Drivers > sw folder (the driver has *.drv extension)
- To export the component in a *.PEupd package: right click on project folder, then select 'Export > Component Development Environment > Export to Package' and follow the steps.
- A *.PEupd package can be imported into CodeWarrior using the menu 'Processor Expert > Import Package'
NOTE: The above structure means that the components are separated from where they are used by Processor Expert (which is usually in C:\ProgramData\Processor Expert\CWMCU_PE5_00). Need to see if there is a better way to deal with this, because this right now means that you have to expert the component as *.PEupd and import it again in Processor Expert in order to use it)
Have fun :-)