Difference between revisions of "How to Load PF Firmware"

From DIDEAS Wiki
Jump to: navigation, search
 
(How to load/update PF firmware using Microchip IDE)
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
 
** to FUP via RJ11 connector
 
** to FUP via RJ11 connector
 
* run MPIDE on PC
 
* run MPIDE on PC
 +
**''' make sure ICD2/3 is selected as programmer for auto-programming'''!
  
 
[[Docs testjig| testjig fixture load]]
 
[[Docs testjig| testjig fixture load]]
Line 13: Line 14:
 
## ^F10 does a clean build and downloads the firmware
 
## ^F10 does a clean build and downloads the firmware
 
# remove motor controller cable, connect state controller (''S'') cable to FUP 9-pin connector
 
# remove motor controller cable, connect state controller (''S'') cable to FUP 9-pin connector
# in MPLAB IDE, svn://pedant/PowerFoot/tags/StateControl-751/testjig-rev200.mcp project
+
# in MPLAB IDE, open and build svn://pedant/PowerFoot/tags/StateControl-751/testjig-rev200.mcp project
 
## ^F10 does a clean build and downloads the firmware
 
## ^F10 does a clean build and downloads the firmware
 
# reboot PF
 
# reboot PF

Latest revision as of 22:33, 9 November 2009

How to load/update PF firmware using Microchip IDE

  • motor controller must be programmed first, then state controller
  • connect ICD2 or ICD3
    • to PC via USB connector
    • to FUP via RJ11 connector
  • run MPIDE on PC
    • make sure ICD2/3 is selected as programmer for auto-programming!

testjig fixture load

  1. connect motor controller (M) cable to FUP 9-pin connector
  2. in MPLAB IDE, open and build svn://pedant/PowerFoot/tags/MotorControl-753/MCApp-rev200.mcp project
    1. ^F10 does a clean build and downloads the firmware
  3. remove motor controller cable, connect state controller (S) cable to FUP 9-pin connector
  4. in MPLAB IDE, open and build svn://pedant/PowerFoot/tags/StateControl-751/testjig-rev200.mcp project
    1. ^F10 does a clean build and downloads the firmware
  5. reboot PF
  6. disconnect ICD2/3, connect PC directly to FUP USB connector
    1. should see 4 LEDs lit up
  7. run sc_version, verify HW: says TESTJIG