Path: chuka.playstation.co.uk!news From: philip gooch Newsgroups: scee.yaroze.beginners Subject: Getting started on the Mac Date: Thu, 14 May 1998 15:23:22 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 128 Message-ID: <355AFE5A.146@easynet.co.uk> NNTP-Posting-Host: hst248.routledge.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.0 (Win16; I) George asked me to post this to the group for a French Yaroze member who is having problems setting up his Mac. Also, Metrowerks should be able provide Codewarrior documentation in French. Feel free to edit/repost as necessary Getting started with Net Yaroze development using the Mac You will need: 1) Metrowerks Codewarrior for Net Yaroze (Please note that the version that ships when you order Codewarrior with your Net Yaroze in 2.03, and this is for Power Macintosh only. If you are using an older 68K Mac you should download the upgrade to version 2.1 which supports 68K Macs. However, you should really be using a Power Mac for Net Yaroze development, which leads me to... 2) A Power Mac with at least 32MB of RAM. The Codewarrior Integrated Development Environment is pretty memory-hungry. 3) A high-speed Hayes-compatible Mac modem cable that is wired for hardware handshaking. (I find that the modem cable that is supplied with the Motorola 28.8 Mac modem works fine). 4) A 25-pin-female to 9-pin-male adaptor (available at any PC shop) 5) Preferably a copy of Softwindows or Virtual PC so that you can run the sound and graphics conversion tools supplied on the Net Yaroze Software Development CD. In fact, with Softwindows or Virtual PC you could use all the development tools supplied by Sony as if you were using a real PC. I've tried it and it works, but I won't go into the details here. Step 1: Installation --------------------- Install the Codewarrior software onto the Mac from the Codewarrior for Net Yaroze CD. Double-click on the CW for Net Yaroze Installer icon to run the installation program. If your CD drive supports dual-partition CDs, you may see 2 CD icons appear on the desktop when you insert the Codewarrior CD. If so, first double-click on the 'Metrowerks' CD icon (not the "PS_NY" icon, which contains the PC version of Codewarrior) **Note: you might like to go straight to Step 4 before Steps 2 and 3. Step 4 is about installing the Net Yaroze Runtime Library used in developing your own projects Step 2 Check that your Mac->Yaroze connection is working OK. ------------------------------------------------------------ Set up your Net Yaroze hardware as described in the Net Yaroze manual. Make sure the Net Yaroze access card is in memory slot 1. Connect the round 8-pin end of your modem cable to the Mac modem port. Connect the 25-pin end to the 25-pin end of the adaptor. Connect the 9-pin end of the adaptor to the 9-pin end of the Net Yaroze serial cable. Make sure the other end of the Net Yaroze serial cable is correctly connected to the Net Yaroze. Switch on or reset the Net Yaroze, and wait for the brick background to appear on the TV screen. Open the 'Codewarrior for Net Yaroze' folder that was placed on your hard disk in Step 1. Inside, you will find a folder called 'Other Metrowerks Tools'. Here there should be a program called PSComUtil, which allows the Mac to connect to the Yaroze and download programs to it. Double-click on the PSComUtil icon and you should get a message saying: "Connecting to Playstation". If this fails, try again by selecting Reconnect in the Edit menu. If everything is working OK you should have a connection established. If not, check the following: a) check that the Net Yaroze boot CD is in the Yaroze CD drive. Most people's boot CDs are black, but mine was light blue! Make sure you haven't got the wrong CD in the Yaroze. b) on PSComUtil on the Mac, go into Preferences in the Edit menu. Make sure that Modem Port is selected for the Port setting. If you do not have a memory card in memory slot 2 on the Yaroze, make sure that the Boot Speed is set to 9600 Kbps. Debug Speed should be set to whatever the highest baud rate your Mac supports. It should work with a setting of 115.2 Kbs. If not, try lowering it to 56 Kbps. After checking a) and b), try to Reconnect again (Edit menu). If you are using the correct modem cable and use the settings given above, you should get a connection. Step 3: Download a test file ---------------------------- With PSComUtil still running, and with a connection established to the Yaroze, choose 'Download Program' from the 'Program Execution' menu. Select the file called 'NY.pxe' in the 'Check' folder inside 'Net Yaroze Examples' (Note: the Codewarrior manual is wrong here. The file you want is called 'NY.pxe', *not* 'Check') You should get a message saying 'Download Successful' Select 'Run' from the 'Program Execution' menu. After a brief pause you should see a bouncing ball on the TV screen accompanied by some music Reset the Yaroze when you've finished playing with the test file. Step 4: Compiling the Net Yaroze Runtime Library ------------------------------------------------- Put the Net Yaroze Sofware Development disc in your Mac CD drive. There should be a folder called 'PSX' on the CD. Inside the PSX folder are two folders of interest: LIB and INCLUDE. a) Copy the contents of the CD's PSX\LIB folder to the folder called 'Lib' in the 'Net Yaroze Support' folder which is in the main 'Metrowerks Codewarrior' folder on your Mac hard disk. The LIB folder on the Yaroze CD should contain 2 files: 'libps.a' and 'specs', and a folder called 'ldscript'. Make sure you copy all of these. Make sure you only copy the contents of the LIB folder, not the folder itself b) Copy the contents of the CD's PSX\INCLUDE folder to the folder called 'Include' in the 'Net Yaroze Support' folder on the Mac hard disk. The INCLUDE folder on the Yaroze CD should contain 23 files and a directory called 'sys'. Make sure you copy all of these. Copy only the contents of the INCLUDE folder, not the folder itself. c) Double-click on the 'NetYarozeLibConvert.prj' file on your Mac hard disk. It is in: Codewarrior Examples\Net Yaroze Examples\Net Yaroze Lib Convert The Codewarrior Project window should appear. In the Project window, select the file 'Libps.a' and choose 'Compile' from the 'Project' menu. You should find that a new file called 'Libps.a.lib' has been created in the 'Lib' folder in 'Net Yaroze Support' to which you copied files in step a) d) You can test that this library has been correctly compiled by opening the 'Check' project (the file is check.prj in Net Yaroze Examples\Check) in Codewarrior and recompiling it (choosed 'Compile' from the 'Project' menu). If you have any problems, make sure that you copied all of the files from the Yaroze Software development disc to the correct locations on the Mac, as outlined above. Hope this is useful Phil