CAN Node Development Tools
DANGER DANGER! THESE INSTRUCTIONS ARE OUTDATED AS OF 02/03/2004!!! CONTACT ANDREW IF YOU NEED HELP SETTING STUFF UP!
Here are the installation instructions to setup our tools:
Installing MPLAB IDE:
- Remove any old MPLAB installs, especially older 5.xx versions.
- Install MPLAB 6.10. Choose ALL of the defaults EXCEPT put the linker files in the /lkr directory (if it still asks).
Installing PICC-18:
- Double click the PICC-18 installer. Choose ALL default options. Completely restart - don't just choose "shift restart". You need to reload the config.sys/autoexec.bat files.
- Register your copy by running Start -> Programs -> HI-TECH Software -> Compiler Activation. Enter in the activation information (ask Andrew if you don't have it) and you should get a DOS box. Click off the DOS box, and you should get a registration succesfull message.
- Run the patch program and answer yes to all questions (if you have the newest versions of each).
Setting up MPLAB IDE to work with PICC-18:
- Run MPLAB.
- Choose the "Project" menu and "Set Language Tool Locations...".
- Set ALL THREE tools in the "HI-TECH PICC-18 Toolsuite" (NOT the "PICC Toolsuite, that's for an older core) to "C:\HTSOFT\PIC18\bin\picc18.exe". You might want to use the browse button just to make sure you get the path right.
- Hit Ok.
- You should now be able to load the project for your application (.pjt file) and compile it.
- IF YOU USE THE ICD2: Choose the "Project" menu and select "build options"
- Under the HI-TECH18C Compiler tab select "Output & Debug" from the Categories drop down menu.
- Put a check in the box "Compile for MPLAB ICD"
- Under the HI-TECH18 Linker tab place a check in the "Link for ICD" box.
Can King Installation and Settings
Install CAN King with all the default options. You'll need about 25MB, and a working parallel port. Note that if CAN King says "No Parallel Port Present" then you should check your parallel port's address.
When you first open up Can King:
- When you open Can King, hit "OK, I know what I'm doing".
- Choose "Template".
- Choose "MCP2510 Evaluation Board".
Setup parallel port, board, and environment:
- Menu "Options" -> "Global":
- Set "Autosave layout" on.
- Choose "Hexadecimal" as "Default numeric base".
- Menu "Options" -> "MCP2510":
- Clock frequency: 16000kHz
- Make sure your parallel port address is correct.
- Inside "MCP2510 Can Controller" window:
- Click "Go off bus".
- Switch to "Bus Parameters" tab.
- Set "Bus Speed" = 1000Kbps.
- Set "Sampling Point" = 75%.
- Set "SJW" = 1.
- ("Driver mode" should be "Normal".)
- Menu "Messages" -> "Universal" -> "Universal"
When you quit:
- "File" -> "Exit"
- "Save changes?" Say yes.
- Remember where you saved the project.
On next start:
- When you open Can King, hit "OK, I know what I'm doing".
- Choose "Open an Existing Project".
- Open whatever you saved the project as.