Skip to content
sonite edited this page Jul 24, 2012 · 1 revision

Welcome, Ok so you think that you have what it takes to program the Melacs motherboard. Ofcourse you have but first follow this list to ensure that u have the right setup on your computer before starting. This is just recommendations, you might have other suggestions, if so contribute to our forum.

  1. First of all you need a compiler. Go to Microchip Development tools under Design, under Software choose compilers. Continue with choosing MPLAB C Compiler for PIC18 MCUs (Direct link: http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010014 ). Here you can choose compiler for academic use. You have to register to download (current version recommended: MPLAB C for PIC18 v3.42 in LITE mode ). Download and Install with default settings.

  2. Download and install Programmers Notepad: http://www.pnotepad.org/

  3. Setup this PN: Tools/Options -> Tools/Project Tools -> Push Add Name: Build Command: $(ProjectPath)../Tools/nmake Folder: $(ProjectPath) Parameters: /nologo Shortcut: F7 Save: All Files Under Console I/O, make sure that Pattern says: %f:%l: Save and Add another and call this Rebuild. Follow the above but replace Parameters to: /nologo rebuild and Shortcut: F9

  4. Download this: My first Project (take all in the Git Hub)

  5. Open File: “My First Project.pnproj” with Programmers Notepad and Compile by hiting F9

  6. Start HIDBootLoader.exe, make sure Melacs is off. Connect USB cable between Melacs and CPU. Choose: “Open Hex File” and open My_First_Project.hex found in your project folder. Then hit Program/Verify. Congrats! You’ve just programmed your Melacs for first time.

Additional Suggested litterature downloads for Melacs:

Clone this wiki locally