Skip to content

Getting Started

ErichStyger edited this page Jan 7, 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:

  1. 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
  2. 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
  3. Drag&drop the Components\LED folder into the workspace to add it to your project list in CodeWarrior
  4. Open the Processor Expert views with a menu: Processor Expert > Show Views
  5. In the 'Components' view you can edit the component properties and methods
  6. The driver code can be found in the 'CodeWarrior Projects' view, inside the Drivers > sw folder (the driver has *.drv extension)
  7. 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.
  8. 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)

How to use the repository directly with Processor Expert

Instead of exporting/importing *.PEupd files, is possible to directly work on the Processor Expert component files. For this, the 'Beans' and 'Drivers' repository folders need to be checked out into the Processor Expert 'working directory'. The working directory is shown in the console view at CodeWarrior startup, and is e.g. 'C:\ProgramData\Processor Expert\CWMCU_PE5_00'. The path and the version number might differ between different host machine operating systems, and/or different Processor Expert versions.

NOTE: As it is not possible to check out individual folders with Git, the whole Git repository gets checked out into the Processor Expert working directory.

Below are the steps how to use the repository direcly within the Processor Expert working directory:

  1. Identify your working directory
  2. Make a backup of it (or rename it)
  3. Close Eclipse/CodeWarrior
  4. Clone the Git repository as the Processor Expert working directory:
  1. That way you should get both the 'Beans' and the 'Drivers' directory from the repository into the working directory.
  2. Restart Eclipse/CodeWarrior
  3. Now you should see the new components in the Components Library view. If not, perform a refresh in that view

Have fun :-)

Clone this wiki locally