-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
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.
-
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.
-
Download and install Programmers Notepad: http://www.pnotepad.org/
-
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 -
Download this: My first Project (take all in the Git Hub)
-
Open File: “My First Project.pnproj” with Programmers Notepad and Compile by hiting F9
-
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:
- Microprocessor datasheet: http://ww1.microchip.com/downloads/en/devicedoc/39775b.pdf
- Microprocessor Errata: http://ww1.microchip.com/downloads/en/DeviceDoc/80481a.pdf
- MPLAB C18 USER GUIDE (MCC18): http://ww1.microchip.com/downloads/en/devicedoc/51288f.pdf
- MPLAB C18 C Compiler Libraries: http://ww1.microchip.com/downloads/en/devicedoc/mplab_c18_libraries_51297f.pdf