https://hades.mech.northwestern.edu//index.php?title=NU32:_Starting_a_New_Project_and_Putting_it_on_the_NU32&feed=atom&action=historyNU32: Starting a New Project and Putting it on the NU32 - Revision history2024-03-28T22:13:02ZRevision history for this page on the wikiMediaWiki 1.35.9https://hades.mech.northwestern.edu//index.php?title=NU32:_Starting_a_New_Project_and_Putting_it_on_the_NU32&diff=23703&oldid=prevLynch at 11:21, 16 January 20162016-01-16T11:21:44Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 11:21, 16 January 2016</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>'''THIS PAGE REFERS TO A PRE-RELEASE VERSION OF THE NU32 PIC32 DEVELOPMENT BOARD. FOR INFORMATION, SAMPLE CODE, AND VIDEOS RELATED TO THE PRODUCTION VERSION (2016 AND LATER), AND TO THE CORRESPONDING BOOK "EMBEDDED COMPUTING AND MECHATRONICS WITH THE PIC32 MICROCONTROLLER," VISIT [[NU32|THE NU32 PAGE]].'''</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>You should complete the instructions in [[NU32: Software to Install]] if you have not already. For this page specifically, you need to</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>You should complete the instructions in [[NU32: Software to Install]] if you have not already. For this page specifically, you need to</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
</table>Lynchhttps://hades.mech.northwestern.edu//index.php?title=NU32:_Starting_a_New_Project_and_Putting_it_on_the_NU32&diff=21891&oldid=prevNickMarchuk at 21:56, 20 January 20132013-01-20T21:56:17Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 21:56, 20 January 2013</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 7:</td>
<td colspan="2" class="diff-lineno">Line 7:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The remainder of this page describes how to create a new Project in MPLAB X, compile a general "Hello World" program to blink the LEDs on the NU32, and use the NU32 Utility computer application to put the program on the NU32.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The remainder of this page describes how to create a new Project in MPLAB X, compile a general "Hello World" program to blink the LEDs on the NU32, and use the NU32 Utility computer application to put the program on the NU32.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>Here are the files you will need to complete this page: <del class="diffchange diffchange-inline">[[Media:</del>NU32_BasicTemplate.zip<del class="diffchange diffchange-inline"> | NU32_BasicTemplate.zip]]</del>.</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>Here are the files you will need to complete this page: NU32_BasicTemplate.zip.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>Here is a less detailed version of this page: [[NU32: Quickstart]]</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>Here is a less detailed version of this page: [[NU32: Quickstart]]</div></td>
</tr>
</table>NickMarchukhttps://hades.mech.northwestern.edu//index.php?title=NU32:_Starting_a_New_Project_and_Putting_it_on_the_NU32&diff=21890&oldid=prevNickMarchuk: /* Create a New Project in MPLAB X v1.XX for the NU32 */2013-01-20T21:56:05Z<p><span dir="auto"><span class="autocomment">Create a New Project in MPLAB X v1.XX for the NU32</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 21:56, 20 January 2013</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 15:</td>
<td colspan="2" class="diff-lineno">Line 15:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>For organizational reasons, it is recommended to use the MPLABXProjects folder created during the MPLAB X IDE installation to store your projects. </div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>For organizational reasons, it is recommended to use the MPLABXProjects folder created during the MPLAB X IDE installation to store your projects. </div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>'''Download and unzip <del class="diffchange diffchange-inline">[[Media:</del>NU32_BasicTemplate.zip<del class="diffchange diffchange-inline"> | NU32_BasicTemplate.zip]]</del> and place it in the MPLABXProjects folder. Note that every project you make will need a copy of app.ld.''' </div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>'''Download and unzip NU32_BasicTemplate.zip and place it in the MPLABXProjects folder. Note that every project you make will need a copy of app.ld.''' </div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>app.ld is a linker file. If you have installed a bootloader (such as with the NU32), the linker file tells the compiler to rearrange the memory of your program so that it doesn't overwrite the bootloader code that is already on your PIC32. If you do not put app.ld in the folder that contains your source code, MPLAB X will use the default linker, named procdefs.ld. Fortunately the bootloader will not overwrite itself, but '''your code will not work''' and will not give you an error telling you that you used the wrong .ld file. So every time you make a new project, copy the app.ld file you put in the MPLABXProjects folder into the new folder that MPLAB X generates for each project.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>app.ld is a linker file. If you have installed a bootloader (such as with the NU32), the linker file tells the compiler to rearrange the memory of your program so that it doesn't overwrite the bootloader code that is already on your PIC32. If you do not put app.ld in the folder that contains your source code, MPLAB X will use the default linker, named procdefs.ld. Fortunately the bootloader will not overwrite itself, but '''your code will not work''' and will not give you an error telling you that you used the wrong .ld file. So every time you make a new project, copy the app.ld file you put in the MPLABXProjects folder into the new folder that MPLAB X generates for each project.</div></td>
</tr>
</table>NickMarchukhttps://hades.mech.northwestern.edu//index.php?title=NU32:_Starting_a_New_Project_and_Putting_it_on_the_NU32&diff=21748&oldid=prevNickMarchuk at 22:39, 4 January 20132013-01-04T22:39:23Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 22:39, 4 January 2013</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 7:</td>
<td colspan="2" class="diff-lineno">Line 7:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The remainder of this page describes how to create a new Project in MPLAB X, compile a general "Hello World" program to blink the LEDs on the NU32, and use the NU32 Utility computer application to put the program on the NU32.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The remainder of this page describes how to create a new Project in MPLAB X, compile a general "Hello World" program to blink the LEDs on the NU32, and use the NU32 Utility computer application to put the program on the NU32.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>Here are the files you will need to complete this page: [[Media:<del class="diffchange diffchange-inline">procdefs_for_NU32</del>.zip | <del class="diffchange diffchange-inline">procdefs.ld]], [[Media:StandardfilesForNU32</del>.zip<del class="diffchange diffchange-inline"> | standard NU32 header files]], [[Media:HelloworldForNU32.zip | hello world source code</del>]].</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>Here are the files you will need to complete this page: [[Media:<ins class="diffchange diffchange-inline">NU32_BasicTemplate</ins>.zip | <ins class="diffchange diffchange-inline">NU32_BasicTemplate</ins>.zip]].</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>Here is a less detailed version of this page: [[NU32: Quickstart]]</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>Here is a less detailed version of this page: [[NU32: Quickstart]]</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>= Create a New Project in MPLAB X v1.<del class="diffchange diffchange-inline">60</del> for the NU32 =</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>= Create a New Project in MPLAB X v1.<ins class="diffchange diffchange-inline">XX</ins> for the NU32 =</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>For organizational reasons, it is recommended to use the MPLABXProjects folder created during the MPLAB X IDE installation to store your projects. </div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>For organizational reasons, it is recommended to use the MPLABXProjects folder created during the MPLAB X IDE installation to store your projects. </div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>'''Download and unzip<del class="diffchange diffchange-inline"> the</del> [[Media:<del class="diffchange diffchange-inline">procdefs_for_NU32</del>.zip | <del class="diffchange diffchange-inline">procdefs.ld file from this </del>.zip<del class="diffchange diffchange-inline"> file</del>]] and place <del class="diffchange diffchange-inline">procdefs.ld</del> in the MPLABXProjects folder. <del class="diffchange diffchange-inline">You</del> <del class="diffchange diffchange-inline">will</del> <del class="diffchange diffchange-inline">need to put procdefs.ld into each</del> project<del class="diffchange diffchange-inline"> folder as</del> you make <del class="diffchange diffchange-inline">new</del> <del class="diffchange diffchange-inline">projects</del> <del class="diffchange diffchange-inline">for</del> <del class="diffchange diffchange-inline">your</del> <del class="diffchange diffchange-inline">code</del> <del class="diffchange diffchange-inline">to work on the NU32</del>.''' </div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>'''Download and unzip [[Media:<ins class="diffchange diffchange-inline">NU32_BasicTemplate</ins>.zip | <ins class="diffchange diffchange-inline">NU32_BasicTemplate</ins>.zip]] and place <ins class="diffchange diffchange-inline">it</ins> in the MPLABXProjects folder. <ins class="diffchange diffchange-inline">Note</ins> <ins class="diffchange diffchange-inline">that</ins> <ins class="diffchange diffchange-inline">every</ins> project you make <ins class="diffchange diffchange-inline">will</ins> <ins class="diffchange diffchange-inline">need</ins> <ins class="diffchange diffchange-inline">a</ins> <ins class="diffchange diffchange-inline">copy</ins> <ins class="diffchange diffchange-inline">of</ins> <ins class="diffchange diffchange-inline">app.ld</ins>.''' </div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><del class="diffchange diffchange-inline">Procdefs</del>.ld is a linker file. If you have installed a bootloader (such as with the NU32), the linker file tells the compiler to rearrange the memory of your program so that it doesn't overwrite the bootloader code that is already on your PIC32. If you do not put <del class="diffchange diffchange-inline">procdefs</del>.ld in the folder that contains your source code, MPLAB X will use the default procdefs.ld. Fortunately the bootloader will not overwrite itself, but '''your code will not work''' and will not give you an error telling you that you used the wrong <del class="diffchange diffchange-inline">prodefs</del>.ld file. So every time you make a new project, copy the <del class="diffchange diffchange-inline">procdefs</del>.ld file you put in the MPLABXProjects folder into the new folder that MPLAB X generates for each project.</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><ins class="diffchange diffchange-inline">app</ins>.ld is a linker file. If you have installed a bootloader (such as with the NU32), the linker file tells the compiler to rearrange the memory of your program so that it doesn't overwrite the bootloader code that is already on your PIC32. If you do not put <ins class="diffchange diffchange-inline">app</ins>.ld in the folder that contains your source code, MPLAB X will use the default<ins class="diffchange diffchange-inline"> linker, named</ins> procdefs.ld. Fortunately the bootloader will not overwrite itself, but '''your code will not work''' and will not give you an error telling you that you used the wrong .ld file. So every time you make a new project, copy the <ins class="diffchange diffchange-inline">app</ins>.ld file you put in the MPLABXProjects folder into the new folder that MPLAB X generates for each project.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>Fist, make a new project, compile some pre-written code, and use the NU32 Utility to put it on your NU32.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>Fist, make a new project, compile some pre-written code, and use the NU32 Utility to put it on your NU32.</div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 34:</td>
<td colspan="2" class="diff-lineno">Line 34:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>[[Image:mplabx_newproject_5.jpg|thumb|300 px|left]]<br clear=all></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>[[Image:mplabx_newproject_5.jpg|thumb|300 px|left]]<br clear=all></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>Now go back to the MPLABXProjects folder, and you should see a new folder called "Hello_World.X". Copy <del class="diffchange diffchange-inline">procdefs</del>.ld into "<del class="diffchange diffchange-inline">Hellow_World</del>.X", as well as<del class="diffchange diffchange-inline"> [[Media:StandardfilesForNU32.zip |</del> the <del class="diffchange diffchange-inline">standard NU32 header</del> files <del class="diffchange diffchange-inline">from this</del> .<del class="diffchange diffchange-inline">zip file]]</del> and <del class="diffchange diffchange-inline">[[Media:HelloworldForNU32</del>.<del class="diffchange diffchange-inline">zip | the hello world source code from this .zip file]]</del>.</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>Now go back to the MPLABXProjects folder, and you should see a new folder called "Hello_World.X". Copy <ins class="diffchange diffchange-inline">app</ins>.ld into "<ins class="diffchange diffchange-inline">Hello_World</ins>.X", as well as the <ins class="diffchange diffchange-inline">other</ins> files<ins class="diffchange diffchange-inline">,</ins> <ins class="diffchange diffchange-inline">hello_world.c,</ins> <ins class="diffchange diffchange-inline">NU32</ins>.<ins class="diffchange diffchange-inline">c,</ins> and <ins class="diffchange diffchange-inline">NU32</ins>.<ins class="diffchange diffchange-inline">h</ins>.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>In MPLAB X, you can close the Start Page tab. Add the code to the project:</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>In MPLAB X, you can close the Start Page tab. Add the code to the project:</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>* Right click on Header Files in the Projects tab on the left and select Add Existing Item... Select NU32.h.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>* Right click on Header Files in the Projects tab on the left and select Add Existing Item... Select NU32.h.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>* Right click on Source Files and select Add Existing Item... Select NU32.c and hello_world.c.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>* Right click on Source Files and select Add Existing Item... Select NU32.c and hello_world.c.</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>* Right click on Linker Files and select Add Existing Item... Select app.ld.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>[[Image:mplabx_hello_1.jpg|thumb|300 px|left]]<br clear=all></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>[[Image:mplabx_hello_1.jpg|thumb|300 px|left]]<br clear=all></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
</table>NickMarchukhttps://hades.mech.northwestern.edu//index.php?title=NU32:_Starting_a_New_Project_and_Putting_it_on_the_NU32&diff=21736&oldid=prevNickMarchuk at 20:52, 4 January 20132013-01-04T20:52:41Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 20:52, 4 January 2013</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 8:</td>
<td colspan="2" class="diff-lineno">Line 8:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>Here are the files you will need to complete this page: [[Media:procdefs_for_NU32.zip | procdefs.ld]], [[Media:StandardfilesForNU32.zip | standard NU32 header files]], [[Media:HelloworldForNU32.zip | hello world source code]].</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>Here are the files you will need to complete this page: [[Media:procdefs_for_NU32.zip | procdefs.ld]], [[Media:StandardfilesForNU32.zip | standard NU32 header files]], [[Media:HelloworldForNU32.zip | hello world source code]].</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><br /></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>Here is a less detailed version of this page: [[NU32: Quickstart]]</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>= Create a New Project in MPLAB X v1.60 for the NU32 =</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>= Create a New Project in MPLAB X v1.60 for the NU32 =</div></td>
</tr>
</table>NickMarchukhttps://hades.mech.northwestern.edu//index.php?title=NU32:_Starting_a_New_Project_and_Putting_it_on_the_NU32&diff=21731&oldid=prevNickMarchuk at 18:29, 26 December 20122012-12-26T18:29:54Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:29, 26 December 2012</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>'''Note: Code downloaded from Microchip is constantly evolving, and it is possible that the information below will be outdated for future code releases. This information is accurate for code downloaded from Microchip's website in December 2011. Also, sample code developed by us and others are generally modified from working code for different purposes, and therefore you may find unnecessary legacy code, programming inefficiency, or even incorrect code in some samples.'''</div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><br /></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>You should complete the instructions in [[NU32: Software to Install]] if you have not already. For this page specifically, you need to</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>You should complete the instructions in [[NU32: Software to Install]] if you have not already. For this page specifically, you need to</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>* download and install the MPLAB X IDE (Integrated Development Environment) that you use for programming, compiling, debugging, and simulating your PIC code. The MPLAB <del class="diffchange diffchange-inline">C32</del> Compiler is included in the installation instructions</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>* download and install the MPLAB X IDE (Integrated Development Environment) that you use for programming, compiling, debugging, and simulating your PIC code. The MPLAB <ins class="diffchange diffchange-inline">XC32</ins> Compiler is included in the installation instructions</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>* download the NU32 Utility computer application</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>* download the NU32 Utility computer application</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>* install drivers for the FTDI USB-to-Serial chip on the NU32 board</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>* install drivers for the FTDI USB-to-Serial chip on the NU32 board</div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 9:</td>
<td colspan="2" class="diff-lineno">Line 7:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The remainder of this page describes how to create a new Project in MPLAB X, compile a general "Hello World" program to blink the LEDs on the NU32, and use the NU32 Utility computer application to put the program on the NU32.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The remainder of this page describes how to create a new Project in MPLAB X, compile a general "Hello World" program to blink the LEDs on the NU32, and use the NU32 Utility computer application to put the program on the NU32.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><del class="diffchange diffchange-inline">If</del> <del class="diffchange diffchange-inline">you</del> <del class="diffchange diffchange-inline">have</del> <del class="diffchange diffchange-inline">already</del> <del class="diffchange diffchange-inline">completed</del> <del class="diffchange diffchange-inline">the</del> <del class="diffchange diffchange-inline">examples</del> <del class="diffchange diffchange-inline">on</del> this page<del class="diffchange diffchange-inline"> and are just looking for the files, here they are</del>: [[Media:procdefs_for_NU32.zip | procdefs.ld]], [[Media:StandardfilesForNU32.zip | standard NU32 header files]], [[Media:HelloworldForNU32.zip | hello world source code]].</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><ins class="diffchange diffchange-inline">Here</ins> <ins class="diffchange diffchange-inline">are</ins> <ins class="diffchange diffchange-inline">the</ins> <ins class="diffchange diffchange-inline">files</ins> <ins class="diffchange diffchange-inline">you</ins> <ins class="diffchange diffchange-inline">will</ins> <ins class="diffchange diffchange-inline">need</ins> <ins class="diffchange diffchange-inline">to complete</ins> this page: [[Media:procdefs_for_NU32.zip | procdefs.ld]], [[Media:StandardfilesForNU32.zip | standard NU32 header files]], [[Media:HelloworldForNU32.zip | hello world source code]].</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>= Create a New Project in MPLAB X v1.<del class="diffchange diffchange-inline">00</del> for the NU32 =</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>= Create a New Project in MPLAB X v1.<ins class="diffchange diffchange-inline">60</ins> for the NU32 =</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>For organizational reasons, it is recommended to use the MPLABXProjects folder created during the MPLAB X IDE installation to store your projects. </div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>For organizational reasons, it is recommended to use the MPLABXProjects folder created during the MPLAB X IDE installation to store your projects. </div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 17:</td>
<td colspan="2" class="diff-lineno">Line 15:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>'''Download and unzip the [[Media:procdefs_for_NU32.zip | procdefs.ld file from this .zip file]] and place procdefs.ld in the MPLABXProjects folder. You will need to put procdefs.ld into each project folder as you make new projects for your code to work on the NU32.''' </div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>'''Download and unzip the [[Media:procdefs_for_NU32.zip | procdefs.ld file from this .zip file]] and place procdefs.ld in the MPLABXProjects folder. You will need to put procdefs.ld into each project folder as you make new projects for your code to work on the NU32.''' </div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>Procdefs.ld is a linker file. If you have installed a bootloader (such as with the NU32), the linker file tells the compiler to rearrange the memory of your program so that it doesn't overwrite the bootloader code that is already on your PIC32. If you do not put procdefs.ld in the folder that contains your source code, MPLAB X will use the default procdefs.ld<del class="diffchange diffchange-inline"> (unfortunately we cannot change the name to make this more clear</del>.<del class="diffchange diffchange-inline">)</del> Fortunately the bootloader will not overwrite itself, but '''your code will not work''' and will not give you an error telling you that you used the wrong prodefs.ld file. So every time you make a new project, copy the procdefs.ld file you put in the MPLABXProjects folder into the new folder that MPLAB X generates for each project.</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>Procdefs.ld is a linker file. If you have installed a bootloader (such as with the NU32), the linker file tells the compiler to rearrange the memory of your program so that it doesn't overwrite the bootloader code that is already on your PIC32. If you do not put procdefs.ld in the folder that contains your source code, MPLAB X will use the default procdefs.ld. Fortunately the bootloader will not overwrite itself, but '''your code will not work''' and will not give you an error telling you that you used the wrong prodefs.ld file. So every time you make a new project, copy the procdefs.ld file you put in the MPLABXProjects folder into the new folder that MPLAB X generates for each project.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div><del class="diffchange diffchange-inline">Lets</del> make new project, compile some pre-written code, and use the NU32 Utility to put it on your NU32.</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div><ins class="diffchange diffchange-inline">Fist,</ins> make<ins class="diffchange diffchange-inline"> a</ins> new project, compile some pre-written code, and use the NU32 Utility to put it on your NU32.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>* Open MPLAB X</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>* Open MPLAB X</div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 29:</td>
<td colspan="2" class="diff-lineno">Line 27:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>* Select the ICD 3 Hardware Tool (we will not be using the ICD 3, but select it anyway) and click Next >.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>* Select the ICD 3 Hardware Tool (we will not be using the ICD 3, but select it anyway) and click Next >.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>[[Image:mplabx_newproject_3.jpg|thumb|300 px|left]]<br clear=all></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>[[Image:mplabx_newproject_3.jpg|thumb|300 px|left]]<br clear=all></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>* Select <del class="diffchange diffchange-inline">C32</del>(<del class="diffchange diffchange-inline">v2</del>.<del class="diffchange diffchange-inline">02</del>) from the Compiler Toolchains and click Next >.</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>* Select <ins class="diffchange diffchange-inline">XC32</ins>(<ins class="diffchange diffchange-inline">v1</ins>.<ins class="diffchange diffchange-inline">xx</ins>) from the Compiler Toolchains and click Next >.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>[[Image:mplabx_newproject_4.jpg|thumb|300 px|left]]<br clear=all></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>[[Image:mplabx_newproject_4.jpg|thumb|300 px|left]]<br clear=all></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>* Enter a project Name ("Hello_World") and click Finish.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>* Enter a project Name ("Hello_World") and click Finish.</div></td>
</tr>
</table>NickMarchukhttps://hades.mech.northwestern.edu//index.php?title=NU32:_Starting_a_New_Project_and_Putting_it_on_the_NU32&diff=20973&oldid=prevNickMarchuk at 21:09, 1 February 20122012-02-01T21:09:14Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 21:09, 1 February 2012</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 9:</td>
<td colspan="2" class="diff-lineno">Line 9:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The remainder of this page describes how to create a new Project in MPLAB X, compile a general "Hello World" program to blink the LEDs on the NU32, and use the NU32 Utility computer application to put the program on the NU32.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The remainder of this page describes how to create a new Project in MPLAB X, compile a general "Hello World" program to blink the LEDs on the NU32, and use the NU32 Utility computer application to put the program on the NU32.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>If you have already completed the examples on this page and are just looking for the files, here they are: [[Media:procdefs_for_NU32.zip | procdefs.ld]], [[Media:<del class="diffchange diffchange-inline">standardfiles_for_NU32</del>.zip | standard NU32 header files]], [[Media:<del class="diffchange diffchange-inline">helloworld_for_NU32</del>.zip | hello world source code]].</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>If you have already completed the examples on this page and are just looking for the files, here they are: [[Media:procdefs_for_NU32.zip | procdefs.ld]], [[Media:<ins class="diffchange diffchange-inline">StandardfilesForNU32</ins>.zip | standard NU32 header files]], [[Media:<ins class="diffchange diffchange-inline">HelloworldForNU32</ins>.zip | hello world source code]].</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>= Create a New Project in MPLAB X v1.00 for the NU32 =</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>= Create a New Project in MPLAB X v1.00 for the NU32 =</div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 34:</td>
<td colspan="2" class="diff-lineno">Line 34:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>[[Image:mplabx_newproject_5.jpg|thumb|300 px|left]]<br clear=all></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>[[Image:mplabx_newproject_5.jpg|thumb|300 px|left]]<br clear=all></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>Now go back to the MPLABXProjects folder, and you should see a new folder called "Hello_World.X". Copy procdefs.ld into "Hellow_World.X", as well as [[Media:<del class="diffchange diffchange-inline">standardfiles_for_NU32</del>.zip | the standard NU32 header files from this .zip file]] and [[Media:<del class="diffchange diffchange-inline">helloworld_for_NU32</del>.zip | the hello world source code from this .zip file]].</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>Now go back to the MPLABXProjects folder, and you should see a new folder called "Hello_World.X". Copy procdefs.ld into "Hellow_World.X", as well as [[Media:<ins class="diffchange diffchange-inline">StandardfilesForNU32</ins>.zip | the standard NU32 header files from this .zip file]] and [[Media:<ins class="diffchange diffchange-inline">HelloworldForNU32</ins>.zip | the hello world source code from this .zip file]].</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>In MPLAB X, you can close the Start Page tab. Add the code to the project:</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>In MPLAB X, you can close the Start Page tab. Add the code to the project:</div></td>
</tr>
</table>NickMarchukhttps://hades.mech.northwestern.edu//index.php?title=NU32:_Starting_a_New_Project_and_Putting_it_on_the_NU32&diff=20755&oldid=prevNickMarchuk: /* Using the NU32 Utility Computer Application */2011-12-29T22:18:01Z<p><span dir="auto"><span class="autocomment">Using the NU32 Utility Computer Application</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 22:18, 29 December 2011</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 54:</td>
<td colspan="2" class="diff-lineno">Line 54:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>Now that you have compiled your code, you can put it on your NU32 board using the NU32 Utility and the bootloader program already on the NU32.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>Now that you have compiled your code, you can put it on your NU32 board using the NU32 Utility and the bootloader program already on the NU32.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>Plug your NU32 into your power supply (6V wall wart from the kit, or a supply >6V) and turn on the board. Plug the USB cable into the board and your computer. If this is the first time you have plugged the board into your computer, drivers will be installed assigning your board two communication port numbers (COM in Windows, TTY.USBSERIAL on MAC). Note what the port numbers or names are. The larger number is used for bootloading communication, and the smaller number is used for general communication. <del class="diffchange diffchange-inline">(Example: My Windows computer already has a COM1. When I plug in my NU32 I also get COM19 and COM20, so I choose COM20 for bootloading and COM19 for general communication. On my MAC I already have a bunch of ports, like /DEV/TTY.BLUETOOTH-MODEM and CU.NOKIA6205-DUNONBRCMPHONE-2. When I plug in my NU32 I get 4 more, /DEV/TTY.USBSERIAL-000030FDA, /DEV/CU.USBSERIAL-000030FDA, /DEV/TTY.USBSERIAL-000030FDB, and /DEV/CU.USBSERIAL-000030FDB. Ignore the versions with CU, and use /DEV/TTY.USBSERIAL-000030FDB for bootloading and /DEV/TTY.USBSERIAL-000030FDA for general communication.)</del></div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>Plug your NU32 into your power supply (6V wall wart from the kit, or a supply >6V) and turn on the board. Plug the USB cable into the board and your computer. If this is the first time you have plugged the board into your computer, drivers will be installed assigning your board two communication port numbers (COM in Windows, TTY.USBSERIAL on MAC). Note what the port numbers or names are. The larger number is used for bootloading communication, and the smaller number is used for general communication. </div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><br /></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>For example: My Windows computer already has a COM1. When I plug in my NU32 I also get COM19 and COM20, so I choose COM20 for bootloading and COM19 for general communication. On my MAC I already have a bunch of ports, like /DEV/TTY.BLUETOOTH-MODEM and CU.NOKIA6205-DUNONBRCMPHONE-2. When I plug in my NU32 I get 4 more, /DEV/TTY.USBSERIAL-000030FDA, /DEV/CU.USBSERIAL-000030FDA, /DEV/TTY.USBSERIAL-000030FDB, and /DEV/CU.USBSERIAL-000030FDB. Ignore the versions with CU, and use /DEV/TTY.USBSERIAL-000030FDB for bootloading and /DEV/TTY.USBSERIAL-000030FDA for general communication.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>Now open NU32_Utility.exe. The left hand side of the window is used for bootloading, and the right hand side for general communication.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>Now open NU32_Utility.exe. The left hand side of the window is used for bootloading, and the right hand side for general communication.</div></td>
</tr>
</table>NickMarchukhttps://hades.mech.northwestern.edu//index.php?title=NU32:_Starting_a_New_Project_and_Putting_it_on_the_NU32&diff=20754&oldid=prevNickMarchuk: /* Using the NU32 Utility Computer Application */2011-12-29T22:16:32Z<p><span dir="auto"><span class="autocomment">Using the NU32 Utility Computer Application</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 22:16, 29 December 2011</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 54:</td>
<td colspan="2" class="diff-lineno">Line 54:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>Now that you have compiled your code, you can put it on your NU32 board using the NU32 Utility and the bootloader program already on the NU32.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>Now that you have compiled your code, you can put it on your NU32 board using the NU32 Utility and the bootloader program already on the NU32.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>Plug your NU32 into your power supply (6V wall wart from the kit, or a supply >6V) and turn on the board. Plug the USB cable into the board and your computer. If this is the first time you have plugged the board into your computer, drivers will be installed assigning your board two communication port numbers (COM in Windows, TTY on MAC). Note what the port numbers or names are. The larger number is used for bootloading communication, and the smaller number is used for general communication.</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>Plug your NU32 into your power supply (6V wall wart from the kit, or a supply >6V) and turn on the board. Plug the USB cable into the board and your computer. If this is the first time you have plugged the board into your computer, drivers will be installed assigning your board two communication port numbers (COM in Windows, TTY<ins class="diffchange diffchange-inline">.USBSERIAL</ins> on MAC). Note what the port numbers or names are. The larger number is used for bootloading communication, and the smaller number is used for general communication.<ins class="diffchange diffchange-inline"> (Example: My Windows computer already has a COM1. When I plug in my NU32 I also get COM19 and COM20, so I choose COM20 for bootloading and COM19 for general communication. On my MAC I already have a bunch of ports, like /DEV/TTY.BLUETOOTH-MODEM and CU.NOKIA6205-DUNONBRCMPHONE-2. When I plug in my NU32 I get 4 more, /DEV/TTY.USBSERIAL-000030FDA, /DEV/CU.USBSERIAL-000030FDA, /DEV/TTY.USBSERIAL-000030FDB, and /DEV/CU.USBSERIAL-000030FDB. Ignore the versions with CU, and use /DEV/TTY.USBSERIAL-000030FDB for bootloading and /DEV/TTY.USBSERIAL-000030FDA for general communication.)</ins></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>Now open NU32_Utility.exe. The left hand side of the window is used for bootloading, and the right hand side for general communication.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>Now open NU32_Utility.exe. The left hand side of the window is used for bootloading, and the right hand side for general communication.</div></td>
</tr>
</table>NickMarchukhttps://hades.mech.northwestern.edu//index.php?title=NU32:_Starting_a_New_Project_and_Putting_it_on_the_NU32&diff=20742&oldid=prevNickMarchuk at 21:54, 28 December 20112011-12-28T21:54:31Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 21:54, 28 December 2011</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 9:</td>
<td colspan="2" class="diff-lineno">Line 9:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The remainder of this page describes how to create a new Project in MPLAB X, compile a general "Hello World" program to blink the LEDs on the NU32, and use the NU32 Utility computer application to put the program on the NU32.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The remainder of this page describes how to create a new Project in MPLAB X, compile a general "Hello World" program to blink the LEDs on the NU32, and use the NU32 Utility computer application to put the program on the NU32.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>If you have already completed this and are just looking for the files, here they are: [[Media:procdefs_for_NU32.zip | procdefs.ld]], [[Media:standardfiles_for_NU32.zip | standard NU32 header files]], [[Media:helloworld_for_NU32.zip | hello world source code]].</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>If you have already completed<ins class="diffchange diffchange-inline"> the examples on</ins> this<ins class="diffchange diffchange-inline"> page</ins> and are just looking for the files, here they are: [[Media:procdefs_for_NU32.zip | procdefs.ld]], [[Media:standardfiles_for_NU32.zip | standard NU32 header files]], [[Media:helloworld_for_NU32.zip | hello world source code]].</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>= Create a New Project in MPLAB X v1.00 for the NU32 =</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>= Create a New Project in MPLAB X v1.00 for the NU32 =</div></td>
</tr>
</table>NickMarchuk