-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Getting Started
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)
Normally, Processor Expert components are exported and imported using *.PEupd files. Basically this is a kind of encrypted zip file. http://steinerberg.com/EmbeddedComponents/ contains such *.PEupd files. Because it takes an extra step (and time) to create such *.PEupd files, such files are not (yet) availble in this GitHub repository. However, it is possible to install the components from this repository without using Git. Alternatively you can use the *.PEupd files as explained in the next section.
- Download this repository as zip archive file
- Identify the Processor Expert User Working directory. This is reported in the Eclipse Console view (select Processor Expert output). For CW MCU10.3 this is C:\ProgramData\Processor Expert\CWMCU_PE5_00
- Exit Eclipse
- Copy the Drivers and Beans folder into the above directory. You might create a backup first, just in case
- Restart Eclipse. This should update the Processor Expert component data base. If not, use the 'Refresh' in the component view
https://github.com/ErichStyger/mcuoneclipse/tree/master/PEupd contains the components in *.PEupd (Processor Expert Update Files). Follow the instructions in http://mcuoneclipse.com/2013/05/09/processor-expert-component-peupd-files-on-github/ for additional information.
NOTE: CodeWarrior for MCU10.4 includes CDE as 'Community Edition', so the steps below are not needed for MCU10.4
In order to use CDE, you either have a professional edition license, or the free 'Community Edition'. The difference is that components created with the Community Edition shall not be used for commercial usage: this means you cannot make business with them (e.g. selling them). See the license terms in the CDE standalone installation for details.
The community edition license file is available here: http://www.freescale.com/files/soft_dev_tools/software/app_software/code_examples/CDE_MCU_License.dat?fpsp=1 (pasted for reference below).
Installing the license: Place the above lines to your license.dat located in CodeWarriorInstallationPath\MCU\license.dat:
NOTE: depending on your editor, remove the spaces/tabs at the beginning of each line, and after the backslash at the end!
##################################################################################################
# Component Development Environment (CodeWarrior - 'metrowks' vendor daemon)
##################################################################################################
INCREMENT CommunityCDE metrowks 10.300 28-jul-2013 uncounted \
0EA8C9C29F95 HOSTID=ANY ISSUER="Freescale Semiconductor" \
ISSUED=16-nov-2011 START=1-nov-2011 TS_OK
NOTE: In case no such license.dat exists (e.g. for special edition), create a new (text) file named license.dat
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.
- Use the 'Clone in Windows' button of the repository (within the browser window of github.com)
- This will ask you what local application to use (default 'GitHub' on windows)
- It will clone it into your local GitHub folder, into a folder named 'mcuoneclipse'
- Move the content of the 'mcuoneclipse' folder into C:\ProgramData\Processor Expert\CWMCU_PE5_00
- Remove the 'mcuoneclipse' folder
- The Windows GitHub Client will now show that the mcuoneclipse local repository is not found: right click on it and select 'stop tracking this repo'
- Drag and drop the folder C:\ProgramData\Processor Expert\CWMCU_PE5_00 into GitHub to have it listed
Below are the steps how to use the repository direcly within the Processor Expert working directory:
- Identify your working directory
- Make a backup of it (or rename it)
- Close Eclipse/CodeWarrior
- Clone the Git repository as the Processor Expert working directory:
- GIT URL: https://github.com/ErichStyger/mcuoneclipse and clone it into the Processor Expert working directory, e.g. C:\ProgramData\Processor Expert\CWMCU_PE5_00
- using the Git shell: git clone https://github.com/ErichStyger/mcuoneclipse "C:/ProgramData/Processor Expert/CWMCU_PE5_00"
- That way you should get both the 'Beans' and the 'Drivers' directory from the repository into the working directory.
- Restart Eclipse/CodeWarrior
- Now you should see the new components in the Components Library view. If not, perform a refresh in that view
Have fun :-)