home:mios:core_toolchain:notepad
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
home:mios:core_toolchain:notepad [2008/12/02 04:54] – Durisian | home:mios:core_toolchain:notepad [2008/12/19 22:41] (current) – removed stryd_one | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Toolchain NotePad++ IDE Setup ====== | ||
- | for MIOS application development on Windows | ||
- | \\ | ||
- | \\ | ||
- | **The technical jargon:**\\ | ||
- | This is the //NotePad++ IDE// section in a walkthrough on the process of developing [[: | ||
- | on [[http:// | ||
- | primarily in C, utilising the [[http:// | ||
- | [[: | ||
- | The IDE platform used will be [[http:// | ||
- | or [[http:// | ||
- | and the applications will be built | ||
- | for the [[home: | ||
- | stuffed with a [[http:// | ||
- | C code will be compiled with [[http:// | ||
- | and assembled with [[http:// | ||
- | using [[http:// | ||
- | and [[http:// | ||
- | For PC emulation for debugging purposes, you may also use [[mios_c_simulator_-_debugger|AC-Sim (AudioCommander' | ||
- | compiled with [[http:// | ||
- | |||
- | **Enough of that.**\\ | ||
- | You should have come here after the [[core_toolchain|Core Tools]] setup. This part of the tutorial can actually be skipped completely if you wish. It contains setup instructions for an optional component of the toolchain. If you are going to be coding your apps in C or ASM or especially in both, then you only need to install this one last application, | ||
- | \\ | ||
- | \\ | ||
- | |||
- | ===== NotePad++ Installation ===== | ||
- | |||
- | NotePad++ is really a text editor, not a full-blown IDE, but it contains all the required features for our use, and as it contains highlighting for both ASM and C apps, is perfectly suited to MIDIBox use. You can just install it using the defaults, but if you want to tweak it up good and proper, here's how. | ||
- | \\ | ||
- | * [[http:// | ||
- | * Run the installer. | ||
- | * Select your language, Click 'Next, 'I Agree', | ||
- | * Tick the box labelled ' | ||
- | * Expand the tree labelled ' | ||
- | * Click ' | ||
- | * When installation is complete, untick the box labelled 'Run NotePad++...' | ||
- | |||
- | ===== Tweaks ===== | ||
- | |||
- | ==== Plugins ==== | ||
- | |||
- | These plugins are not mandatory but can be helpful: | ||
- | |||
- | * [[http:// | ||
- | * [[http:// | ||
- | |||
- | * Download the dll files, and extract them to C:\Program Files\NotePad++\Plugins directory | ||
- | \\ | ||
- | |||
- | ==== Style ==== | ||
- | |||
- | If you like the colour scheme in this [[http:// | ||
- | |||
- | * Download the file, and extract it to C:\Program Files\NotePad++\ . Overwrite any existing file. | ||
- | * Run NotePad++. Click the ' | ||
- | * Click the ' | ||
- | * Select the " | ||
- | * Select the " | ||
- | * Select the " | ||
- | * To show the panes for your plugins, hit: | ||
- | * CTRL+ALT+SHIFT+V (Favourites) | ||
- | * CTRL+ALT+SHIFT+L (Function List) | ||
- | * CTRL+ALT+SHIFT+E (Explorer) | ||
- | * You can drag the functions list over to the left side to dock it as a tabbed pane with Explorer and Favourites. | ||
- | \\ | ||
- | |||
- | ==== NPPExec Filters ==== | ||
- | |||
- | In order to be able to double-click on an error and jump to that line (to fix your code) you need to tell NPPExec what the errors look like: | ||
- | |||
- | * Hit SHIFT+F6 to bring up the NPPExec plugin filter dialog. Fill it in as per this screenshot: | ||
- | {{notepadplus: | ||
- | * Change to the ' | ||
- | {{notepadplus: | ||
- | * Click OK | ||
- | |||
- | For reference, here are the entries for you to copy and paste. You can enter them manually, or, you can paste all of this into your " | ||
- | |||
- | < | ||
- | |||
- | [Console] | ||
- | Visible=0 | ||
- | OEM=1 | ||
- | SaveOnExecute=0 | ||
- | CmdHistory=1 | ||
- | SaveCmdHistory=1 | ||
- | NoInternalMsgs=0 | ||
- | Font=F1F(6)0(18)90010(D)3020131436F6E736F6C61730(30) | ||
- | [ConsoleOutputFilter] | ||
- | Enable=1 | ||
- | RecognitionMask0=" | ||
- | RecognitionEffect0=" | ||
- | RecognitionMask1=" | ||
- | RecognitionEffect1=" | ||
- | RecognitionMask2=" | ||
- | RecognitionEffect2=" | ||
- | RecognitionMask3=" | ||
- | RecognitionEffect3=" | ||
- | ExcludeDupEmpty=1 | ||
- | ExcludeMask=1 | ||
- | ExcludeLine0=" | ||
- | [Restore] | ||
- | LastSelectedScript=2 | ||
- | |||
- | </ | ||
- | |||
- | |||
- | |||
- | |||
- | \\ | ||
- | |||
- | |||
- | |||
- | |||
- | ==== NPPExec Execute Preset ==== | ||
- | |||
- | This will give you a preset to run a cleanup from within NotePad++: | ||
- | |||
- | * Hit F6 to bring up the NPPExec Execute dialog. | ||
- | * In the ' | ||
- | '' | ||
- | cd $(CURRENT_DIRECTORY)\ | ||
- | \\ | ||
- | make cleanall | ||
- | '' | ||
- | * Click ' | ||
- | |||
- | This will give you a preset to run make from within NotePad++: | ||
- | |||
- | * In the ' | ||
- | '' | ||
- | cd $(CURRENT_DIRECTORY)\ | ||
- | \\ | ||
- | make | ||
- | '' | ||
- | * Click ' | ||
- | * Click ' | ||
- | |||
- | Now, when you want to make the file, you can just hit F6, make sure the 'MIOS make' preset is selected, and then hit Enter, and make will be called in the directory of the currently open file.\\ | ||
- | Messages will be shown in the output window, which will open automatically. If there are any errors, you can double-click the error and jump to the offending code :) | ||
- | |||
- | Have some eye candy: | ||
- | |||
- | {{notepadplus: | ||
- | |||
- | //Note for old projects (really, you should update your project for the new structure if possible):// | ||
- | |||
- | This will give you a preset to run make.bat from within NotePad++: | ||
- | |||
- | * Hit F6 to bring up the NPPExec Execute dialog. | ||
- | * In the ' | ||
- | '' | ||
- | cd $(CURRENT_DIRECTORY)\ | ||
- | \\ | ||
- | make.bat | ||
- | '' | ||
- | * Click ' | ||
- | * Click ' | ||
- | \\ | ||
- | \\ | ||
- | |||
- | |||
- | ==== PIC ASM Highlighting ==== | ||
- | |||
- | Copy and paste this code into a new file in your NotePad++ directory called C:\Program Files\Notepad++\userDefineLang.xml | ||
- | |||
- | |||
- | |||
- | <code XML> | ||
- | |||
- | < | ||
- | < | ||
- | < | ||
- | <Global caseIgnored=" | ||
- | < | ||
- | <Prefix words1=" | ||
- | </ | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | </ | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | </ | ||
- | </ | ||
- | </ | ||
- | |||
- | |||
- | </ | ||
- | |||
- | Now after you start NotePad++, your ASM files will be nicely highlighted. The above colour selections have been made to go with the black background in the " | ||
- | |||
- | ==== Settings ==== | ||
- | |||
- | These settings make using notepad++ easier, but are not mandatory. | ||
- | |||
- | * Click the ' | ||
- | * In the ' | ||
- | * In the ' | ||
- | * Where it says "From 1 th input", | ||
- | * In the ' | ||
- | * Click Close. | ||
- | \\ | ||
- | \\ | ||
- | |||
- | |||
- | |||
- | ====== IDE Setup Complete ====== | ||
- | |||
- | If you made it this far, and you don't need to use AC-Sim, you're done. If that’s the case, enjoy your coding experience! Bye! | ||
- | If you want to use ACSim, you may like to install [[windows_toolchain_codeblocks|Code:: | ||
- | \\ | ||
- | \\ |
home/mios/core_toolchain/notepad.1228193668.txt.gz · Last modified: 2008/12/02 04:54 by Durisian