Basic Troubleshooting - Diagnostic Cartridge basics

The place to visit to learn tips on how to troubleshoot your machine.
Locked
User avatar
rubber_jonnie
Site Admin
Site Admin
Posts: 10472
Joined: Thu Aug 17, 2017 7:40 pm
Location: Essex
Contact:

Basic Troubleshooting - Diagnostic Cartridge basics

Post by rubber_jonnie »

Whilst the other troubleshooting techniques mentioned in this section are all extremely useful, sometimes a look into the hardware can be a big help, and this is precisely what the Atari diagnostics tools, a ROM based toolkit you can plug into the cartridge port allows you to do.

This is my quite well used example:

Cart.jpg
Cart.jpg (133.88 KiB) Viewed 5993 times

And as a modern equivalent it has the Atari diagnostics kits for ST/STE/TT/Falcon built in and selectable via the yellow rotary switch, but also has Emutos, Ulitmate Ripper and VT100 software also built in. The version sold here: https://www.exxosforum.co.uk/atari/store2/#0165 has a similar, if slightly different and perhaps slightly more useful toolkit with the inclusion of Gembench and YAART memory testing software.

Also available from gossuin.be is this dedicated Atari multi diag cartridge: http://www.gossuin.be/index.php/shop which also has the option of additional test harnesses for the likes of the joystick/mouse, external DMA, Midi, serial and printer ports.

We will only look at basics here though, firstly because I don't have the test harnesses at present, and secondly because it's a subject I intend to add once I do have the test harnesses.

Why do we need a diagnostic cartridge anyway? Well, the cartridge allows us to run Atari specific diagnostics, which were intended for use by field or repair centre engineers when repairing faulty machines. This means we can diagnose problems in the same manner as Atari engineers would, and in conjunction with the field service manuals available here: https://docs.dev-docs.org/, we are in a very good position.

To start, make sure your machine is powered off, and plug the cartridge into the slot on the left hand side of the machine:

Cart_in.jpg
Cart_in.jpg (87.49 KiB) Viewed 5993 times

My cart requires the ROM to be facing upwards as in this picture, but ensure you check the instructions with your own cart to be sure you plug it in correctly, and thus avoiding damage to both the ST and the cart

On boot, you can see the following menu:

ST_Menu.jpg
ST_Menu.jpg (94.94 KiB) Viewed 5993 times

Simply select the test you wish to run by typing the letter and pressing 'Return'. Note that without the test harnesses, tests for joystick/mouse, external DMA, Midi, serial and printer ports cannot be run successfully. It should be noted that the keyboard test will test for mouse activity, but the test harness will do a full test.

In addition, if you do not have a hard drive, nor a Blitter chip, those tests cannot be run either, and in this case,the machine was not a Mega, so the real time clock test cannot be run either!

This still leaves us with plenty to test though, with crucial items such as chip timings, floppy disk tests and RAM to mention a few. Typically the results appear on screen with error codes, and with the right field service manual, we can match these codes to something useful and narrow down our search for a faulty component.

The diagnostic cart does have a useful trick up it's sleeve too for situations where the machine is seemingly not booting, shows nothing on screen or does not have a working keyboard.

If we connect a null modem cable to our STs serial port as below, and connect the other end to a PC, we can get to the same menu over serial using a terminal program on the PC.

Null_Modem.jpg
Null_Modem.jpg (109.23 KiB) Viewed 5993 times


In this example I'm using Teraterm with the following settings:

Com_Settings.jpg
Com_Settings.jpg (119.78 KiB) Viewed 5993 times

An on pressing return in Teraterm a few times, I receive the same menu:

Diag_Term.jpg
Diag_Term.jpg (109.41 KiB) Viewed 5993 times

This gives us the opportunity to run all the exact same diagnostics via our terminal without actually hooking the ST up to a display of any sort.

In addition, during boot,if there are any problems, diagnostics data will be sent over the serial port and will be visible in the terminal.

To give an example, I had a problematic Mega 4 which gave this screen on boot:

Naughty_Mega.jpg
Naughty_Mega.jpg (59.41 KiB) Viewed 5993 times

I installed the diagnostic cart and during boot was able to see the following diagnostics stream over serial on my PC terminal as below:

RAM_Error.jpg
RAM_Error.jpg (152.91 KiB) Viewed 5993 times

Thus enabling me to home in on an error with data lines that I subsequently narrowed down to 2 data lines using a logic probe and continuity testing. The machine is now fixed and running.


It should be noted that there are situations whereby neither the on screen menu nor the serial terminal mode do not work. If there is a problem with ROM space on an ST, generally speaking you will see a plain white screen when booting to low/med res.

Because the diagnostic cart maps into ROM space, a problem with the onboard ROM space will prevent this from happening. On a positive note, it means you can focus on fixing what's wrong with the on-board ROMS, so at least this still points you in the right direction.

If you plan to repair STs, then the diagnostic cartridge is an essential tool.
Collector of many retro things!
800XL and 65XE both with Ultimate1MB,VBXL/XE & PokeyMax, SIDE3, SDrive Max, 2x 1010 cassette, 2x 1050 one with Happy mod, 3x 2600 Jr, 7800 and Lynx II
Approx 20 STs, including a 520 STM, 520 STFMs, 3x Mega ST, MSTE & 2x 32 Mhz boosted STEs
Plus the rest, totalling around 50 machines including a QL, 3x BBC Model B, Electron, Spectrums, ZX81 etc...
User avatar
exxos
Site Admin
Site Admin
Posts: 23498
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Basic Troubleshooting - Diagnostic Cartridge basics

Post by exxos »

Just as a actual screenshot ( @rubber_jonnie feel free to hack this post about )

Capture.PNG
Capture.PNG (11.05 KiB) Viewed 5969 times

On the left is written values D15 - D0, Then read values D15 - D0, Then the address the errors happend in hex.

So in the above example, all zeroes are written, but bit 14 (data line 14) is "stuck" high indicating a error at address 8 bit 14.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
rubber_jonnie
Site Admin
Site Admin
Posts: 10472
Joined: Thu Aug 17, 2017 7:40 pm
Location: Essex
Contact:

Re: Basic Troubleshooting - Diagnostic Cartridge basics

Post by rubber_jonnie »

Great example @exxos😁
Collector of many retro things!
800XL and 65XE both with Ultimate1MB,VBXL/XE & PokeyMax, SIDE3, SDrive Max, 2x 1010 cassette, 2x 1050 one with Happy mod, 3x 2600 Jr, 7800 and Lynx II
Approx 20 STs, including a 520 STM, 520 STFMs, 3x Mega ST, MSTE & 2x 32 Mhz boosted STEs
Plus the rest, totalling around 50 machines including a QL, 3x BBC Model B, Electron, Spectrums, ZX81 etc...
Locked

Return to “BASIC TROUBLESHOOTING”