This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
34s:windows_7_64bit [2013/06/21 08:50] njdowrick Change to wp34s_asm.pl added |
34s:windows_7_64bit [2014/05/04 13:37] (current) njdowrick [Building ''calc.bin'' (and the other .bin files) from source] |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | =====Building the WP-34s firmware on a computer running 64-bit Windows 7===== | ||
+ | This file details my recent (July 2012) experiences building the '' | ||
+ | |||
+ | What follows is completely based on those earlier wikis. I have tried to give a complete set of instructions here, but readers should certainly consult the other wikis as well. | ||
+ | |||
+ | ====Building the Windows emulator==== | ||
+ | |||
+ | * Install an SVN client. I used Slik's subversion client downloaded from http:// | ||
+ | - Decide where you are going to install the WP-34s project code. I created a directory called c: | ||
+ | - Open a command prompt (Start Menu - run - cmd) and chage to the directory that you have just created. | ||
+ | - Run the command '' | ||
+ | |||
+ | * Install Perl: the recommended package is http:// | ||
+ | |||
+ | * Install MS Visual C++. This is a download link to the latest 2010 version: http:// | ||
+ | |||
+ | * Next, you need to install the GNU tools - commands which exist on UNIX systems and are needed for some of the above software to work properly. These can be obtained from http:// | ||
+ | |||
+ | * However, as it stands, the MINGW software will not work with the other software. To allow other software to find the tools and programs that you have just installed, their paths need to be added to the Windows path variable. The steps to follow are: | ||
+ | - Right-click on Computer in the Start menu; select Properties. | ||
+ | - Click on Advanced System Settings, followed by Environment Variables. | ||
+ | - Scroll down and select the Path system variable, and click on Edit. You now need to add to the list of directories the locations of the MSYS tools and (if you have installed them) the GNU compiler tools. For me, this involved adding the string '' | ||
+ | - Click " | ||
+ | |||
+ | * Finally, I found it necessary to change two of the source files in order to get the correct version number to appear in the emulator program. First, the code in the file '' | ||
+ | |||
+ | < | ||
+ | 34: char tmpname[ FILENAME_MAX ]; | ||
+ | </ | ||
+ | |||
+ | to | ||
+ | |||
+ | < | ||
+ | 34: char tmpname[ FILENAME_MAX ] = " | ||
+ | </ | ||
+ | |||
+ | and comment out lines 39-42 by adding double forward slashes to the start of each line, like this: | ||
+ | |||
+ | < | ||
+ | // if (tmpnam( tmpname ) == NULL) { | ||
+ | // | ||
+ | // return 1; | ||
+ | // } | ||
+ | </ | ||
+ | |||
+ | * Second, I also had to change one line in the file '' | ||
+ | |||
+ | < | ||
+ | my $preproc_fallback_dir = ""; | ||
+ | </ | ||
+ | |||
+ | to | ||
+ | |||
+ | < | ||
+ | my $preproc_fallback_dir = " | ||
+ | </ | ||
+ | |||
+ | where the long path name is simply the full address of the '' | ||
+ | |||
+ | * All should now be ready to build the Windows WP-34s emulator without errors! I used the GUI method detailed in [[34s: | ||
+ | |||
+ | |||
+ | ====Building '' | ||
+ | |||
+ | So: you've successfully compiled the Windows emulator. However, since you can download this from the svn repository anyway you are probably intending to do more than this. You almost certainly want to explore the source code and perhaps change it, and ultimately to upload such changes to your calculator. | ||
+ | |||
+ | This section deals with producing the files calc.bin, calc_full.bin, | ||
+ | |||
+ | * Make sure that you have carried out everything needed to build the Windows emulator without errors, and that you have installed both parts of the MINGW software mentioned above. | ||
+ | |||
+ | * The next thing to install is a cross-compiler that produces code for the processor in the calculator. This is provided by the Yagarto GNU ARM toolchain, downloadable from www.yagarto.de. Download and install this software. | ||
+ | |||
+ | * One thing remains to be done. Add the '' | ||
+ | |||
+ | * Now, you are ready to build the calculator firmware. Open a Command Prompt window (Start -> Run -> cmd) and change to the '' | ||
+ | |||
+ | * You can now transfer these files to your calculator in the normal way (e.g., using '' | ||
+ | |||
+ | Having done all of this you are free to try making changes to the calculator source code. You should try out any changes on the emulator first, so that you can debug them (and to avoid draining your calculator batteries!). Good luck! |