RetroBrew Computers Forum
Discussion forum for the RetroBrew Computers community.

Home » RBC Forums » General Discussion » New board : 68360 VME processor (VME card 160x100 with a 68360 processor )
New board : 68360 VME processor [message #7700] Mon, 25 May 2020 00:47 Go to next message
trianon is currently offline  trianon
Messages: 20
Registered: May 2020
Junior Member
Hi all,

I'm new (posting, not admiring) onto this forum and would like to share my 68k project with all of you and hoping to also learn something.

The idea, during the last 30 years I have accumulated a lot of 68k stuff that I want use now on a board design :

- The only purpose of the design will be to have FUN.
- Kiss (keep it simple), for a first design no difficult DRAM controller, no 6 layer full SMD board...
- Use old THT parts from the '90, a smd cap or resistor is possible if it helps on EMC but no FPGA, BGA.
- Connect to the VME bus, I do have a 20 slot backplane for 160x100 boards (no 100% needed).
- Multi processor setup, yesss just for the fun I want 4 cpu's running together.
- High speed serial inter-processor communication, A bit like the old transputer.

How, what, when, who ....

- PCB design in Kicad on an 2 or 4 layer board 160x100.
- 68360RC25 processor (I do have 5 pcs PGA version with the sockets ;)Wink
- 4 x 512k SRAM in DIP32 sockets (also on stock)
- boot from 32k EEPROM in DIP28 (it's the only NV memory I have) ANY SUGGESTIONS ?
- Use BDM to program bootcode in the the EERPOM (I have made a basic BDM interface with an Arduino)
- 68882RC co-processor, if feasible only, because I have them on stock.
- TTL debug port, will connect FTDI USB-TTL cable externally.
- One serial ports of the QUICC with RS422 level onto a RJ45 connector (high speed in the 90).
- VME interface with 74F245 buffers and one Altera EPM7064S CPLD as controller.

Will also build a debug card
* A main controller for the VME (slot 1 functions) will be wire wrap board with bigger CPLD.
* add LCD + IDE HD + FTDI USB IO board on it.

Questions, shout out for help :
? I don't know how I should connect the 68882 to the 68360 yet, peripheral mode yes, but pins ?
? I don't have any 68360 compatible monitor program yet ?
? I don't have a 68k assembler nor C compiler yet (using 68332 BCC CPU32Bug now to code) ?
? and a lot of questions that will follow once I start the design ...

Any suggestions or remarks are welcome...

Best regards,
Steve
Re: New board : 68360 VME processor [message #7702 is a reply to message #7700] Mon, 25 May 2020 09:59 Go to previous messageGo to next message
ashtons is currently offline  ashtons
Messages: 8
Registered: May 2020
Location: Louisiana
Junior Member

VME?
Re: New board : 68360 VME processor [message #7703 is a reply to message #7702] Mon, 25 May 2020 10:27 Go to previous messageGo to next message
trianon is currently offline  trianon
Messages: 20
Registered: May 2020
Junior Member
The VME bus, designed specially for the 68k processor by Motorola, and later became a well known IEEE standard bus.
Basic version uses DIN4192 96 pin connector for 16bits data + 24 bits address...

https://en.wikipedia.org/wiki/VMEbus
Re: New board : 68360 VME processor [message #7704 is a reply to message #7700] Mon, 25 May 2020 10:46 Go to previous messageGo to next message
trianon is currently offline  trianon
Messages: 20
Registered: May 2020
Junior Member
VME bus designed by Motorola for the 16bits 68000. but later became an IEEE standard from 16bits to 64 bits data.
The basic 16bits verion uses a DIN41612 96 pins connector on an 160x100mm Eurocard.
https://en.wikipedia.org/wiki/VMEbus
Re: New board : 68360 VME processor [message #7705 is a reply to message #7704] Mon, 25 May 2020 16:07 Go to previous messageGo to next message
ashtons is currently offline  ashtons
Messages: 8
Registered: May 2020
Location: Louisiana
Junior Member

Good to know. Might use VME bus later, if I can fit it in a design.
Re: New board : 68360 VME processor [message #7707 is a reply to message #7700] Tue, 26 May 2020 09:12 Go to previous messageGo to next message
coredump is currently offline  coredump
Messages: 33
Registered: January 2020
Location: Germany
Member
Hi Steve,

this indeed sounds like You will have a couple of fun.

A few unordered comments:

trianon wrote on Mon, 25 May 2020 09:47

? I don't know how I should connect the 68882 to the 68360 yet, peripheral mode yes, but pins ?
https://www.nxp.com/docs/en/data-sheet/BR509.pdf
Page 12 ff. discusses it in detail.
The 32-Bit connection seems to fit the '360 fine, doesn't it?

Quote:

? I don't have any 68360 compatible monitor program yet ?
? I don't have a 68k assembler nor C compiler yet (using 68332 BCC CPU32Bug now to code) ?
To make the ball rolling You could use GNU-Tools.
At least 20 years ago it was no problem to use them even under Windows (Cygwin) as a cross compiler.

But I consider it more fun to have the development tools running on the target.
Maybe a simple female header for an IDE port locally on the board? Just for the first time till Your separate IDE-Board is functional.

Having a serial debug port and a CompactFlash card You are able to run CP/M 68K. That would bring an assembler (linker etc.) (68000/68010 only), a K&R C-compiler and the microemacs editor on the board.
CP/M 68K is simpleminded and quite restricted, but it is simple to port it.

Quote:

- Kiss (keep it simple), for a first design no difficult DRAM controller, no 6 layer full SMD board...
There is a DRAM Controller in the '360. You have already payed for it ;-)
It does not even require an external address multiplexer if you make it accessible locally only, just the 72p. SIMM socket and the connections. 8MB RAM or more almost for free...


Quote:

- boot from 32k EEPROM in DIP28 (it's the only NV memory I have) ANY SUGGESTIONS ?
Some EEPROMS (like 28F256) require 12V to program them in situ. If Yours is of this sort You may want to use a 5V-only FLASH like 29F256.
Or, if 32pin DIP is ok, larger ones like the 29F004 (512KB). Better too much than too litte...

Have fun and keep us informed of the progress, please :-)

Best regards
Detlef
Re: New board : 68360 VME processor [message #7711 is a reply to message #7707] Wed, 27 May 2020 04:20 Go to previous messageGo to next message
trianon is currently offline  trianon
Messages: 20
Registered: May 2020
Junior Member
Thanks for your response Detlef,

For the 68882 I was thinking to go for the 8 bits databus only for an easier layout but then you need to connect D0 to D8 + D16 + D24, D1 to D9....
And this seems to be very hard to do on a 2/4 layer board, so yes 32 bits would be the way to go ... if I do find the space on the board.


About DRAM, I know it's an easy/cheap way to get a large amount of RAM to run an full OS, but I don't have any of these parts (sockets, DRAM modules).
The SRAM I already have, and an option in the future would be to build a small DIP32 to SMD adapter board for FAST TERMINATION speed (have the parts also).

The 32k EERPOM I have is not of the Flash version, but the old single byte write version, only 5V needed, but very slow also. Could work as boot only device ?

Now I'a very interested in maybe having some OS (low end) running on the boards, I heard already about OS9 and heard of CP/M from the C128 days.
But where can you find these OS, are they free and I suppose you have to adapt them to your HW and compile, or is it all to do with drivers ?

Current state is learning KiCad (installed it on Saturday), fingering out how to interface to the VME bus and fining a way to route is all.

Best Regards,
Steve

Re: New board : 68360 VME processor [message #7713 is a reply to message #7711] Wed, 27 May 2020 09:57 Go to previous messageGo to next message
norwestrzh is currently offline  norwestrzh
Messages: 196
Registered: November 2015
Senior Member

>> Now I'm very interested in maybe having some OS (low end) running on the boards, I heard already about OS9
>> and heard of CP/M from the C128 days. But where can you find these OS, are they free and I suppose you
>> have to adapt them to your HW and compile, or is it all to do with drivers ?

CP/M 68K is freely available. I have it running on a number of homebrew SBCs. The "drivers" are all included in the CBIOS, which you write yourself (and thus customize it to your hardware).

>> Current state is learning KiCad (installed it on Saturday), fingering out how to interface to the VME bus
>> and finding a way to route is all.

If you are running some variant of Linux, I could help you with a "FreeRouter" that makes KiCAD a pleasure to use. With it and KiCAD, you can produce professional quality boards.

Roger
Re: New board : 68360 VME processor [message #7715 is a reply to message #7707] Wed, 27 May 2020 12:22 Go to previous messageGo to next message
borutk is currently offline  borutk
Messages: 34
Registered: November 2015
Member
Sound like a fun project. I would be interested in it, i also have a couple of PGA MC68360 laying around.
If you decide to port CP/M68k remember that CPU32 has different stack frame format for exceptions/traps than 68000.
If you look at IDE on Z180 Mark IV board it can be made very simple if you use 8 bit transfers.
Maybe use MAX7128S instead of MAX7064S and have spare logic for SPI interface.
gcc is quite good for c, but gas is abominable if you are used to Motorola style of assembly. Look for as32 or any other
assembler that supports 68030.
What software do you use for BDM? There used to be BD32.exe but it works under DOS and needs real parallel port to work.

Best regards,
Bo/
Re: New board : 68360 VME processor [message #7716 is a reply to message #7715] Wed, 27 May 2020 13:15 Go to previous messageGo to next message
trianon is currently offline  trianon
Messages: 20
Registered: May 2020
Junior Member
Hi Roger,

Can you maybe point me where to start with CP/M 68K (Hackaday,...Wink ?

Maybe strange for an Amiga guy, but I only use/know Windows, but then I was developing windows CE devices the last 15 years.
I'm really impressed by KiCad, but I will route all traces by hand ;)


Hi Bo,

I do also have the EPM7128S, but it's a bigger PLCC84 instead of a PLCC44 and will be difficult to get it all on the eurocard.
There is also good news, the 68360 already has a SPI interface.

BDM, I build it with an Arduino board and some wires. Interface is by serial port over USB and commands similar like the CPU32debug.
Works fine on the 68332 BCC develop board. I will write a small Phyton program so I can flash a hex file by BDM to RAM or FLASH.
Maybe not the fasted BDM, but it will work on different platforms.

About 10 years ago I downloaded a lot of 68k code from the Motorola website (where just switching to Freescale), will have
a look if as32 is part of it.

Br,
Steve


Re: New board : 68360 VME processor [message #7720 is a reply to message #7700] Thu, 28 May 2020 02:37 Go to previous messageGo to next message
stevemoody is currently offline  stevemoody
Messages: 13
Registered: February 2019
Junior Member
trianon wrote on Mon, 25 May 2020 00:47

Questions, shout out for help :
? I don't have a 68k assembler nor C compiler yet (using 68332 BCC CPU32Bug now to code) ?
I Don't know if this will be of any use but i have a build script for GCC 9.2 for m68k. It also includes vasm and vbcc. If you are using windows then there's a pre-built version in the releases if you don't want to build yourself.

https://github.com/SteveMoody73/m68k-elf-toolchain
Re: New board : 68360 VME processor [message #7722 is a reply to message #7720] Thu, 28 May 2020 04:56 Go to previous messageGo to next message
borutk is currently offline  borutk
Messages: 34
Registered: November 2015
Member
>I do also have the EPM7128S, but it's a bigger PLCC84 instead of a PLCC44 and will be difficult to get it all on the eurocard.

That's true, but particularly on prototypes i like to have some extra logic and a small prototyping area on the PCB.
Re: New board : 68360 VME processor [message #7723 is a reply to message #7716] Thu, 28 May 2020 09:25 Go to previous messageGo to next message
coredump is currently offline  coredump
Messages: 33
Registered: January 2020
Location: Germany
Member
Hi Steve,

the Handbooks for CP/M 68K can be found on:
http://www.cpm.z80.de/drilib.html

For more than one CPU card on the bus You might find MINIX quite interesting.
Being started in the late 1980s it has a micro kernel with message passing between the kernel, memory manager, file system an i/o drivers.
It is a UNIX clone, rewritten from scratch, originally intended to be used in OS-curses for students.

And early versions have been available for the atari st, so already ported to the 68000 processor without a MMU.
Some 30 years ago I ported MINIX v1.3 to a homebrew 68000 using CP/M 68K v1.3 and the C-Compiler was (to my surprise) sufficient. Unlike the assembler, that used to 'optimize' away bsr-calls to the next address... ;-)

Later Versions might be (more or less) ANSIfied...

br
Detlef
Re: New board : 68360 VME processor [message #7724 is a reply to message #7716] Thu, 28 May 2020 09:28 Go to previous messageGo to next message
norwestrzh is currently offline  norwestrzh
Messages: 196
Registered: November 2015
Senior Member
>> Can you maybe point me where to start with CP/M 68K (Hackaday,...Wink ?

Check out www.cpm.z80.de. See both binaries and source sections. I know it says "z80", but CP/M 68k is there -- I promise. *grin*

Roger
Re: New board : 68360 VME processor [message #7725 is a reply to message #7724] Thu, 28 May 2020 12:11 Go to previous messageGo to next message
quarterturn is currently offline  quarterturn
Messages: 86
Registered: April 2018
Member
Any chance to target running a linux kernel?
Re: New board : 68360 VME processor [message #7727 is a reply to message #7725] Thu, 28 May 2020 14:56 Go to previous messageGo to next message
mikemac is currently offline  mikemac
Messages: 250
Registered: March 2017
Senior Member
quarterturn wrote on Thu, 28 May 2020 12:11
Any chance to target running a linux kernel?

If he sticks to 2MB of on board SRAM, then it's not likely.

If he puts a couple SIMM slots on his processor board, then probably. This would make it very similar to the KISS68030 board.

If he expects to use extended RAM over the VME bus, maybe but it'll be tight. A single connector VME board is limited to 24 address lines/16 data lines. You have to do a card with both connectors on it for a full 32b data bus and a full 32b address space.

When I looked, VME cards were expensive, even used on Ebay, as they're aimed at the commercial market. If the design will be relying on VME add-on cards for things like RAM, disk controllers, network interfaces, etc, the system will get too expensive for my tastes. The extra large boards and the expense of add-ons were the reasons I stopped looking at VME for my dream 68K system. But that's just my own trade offs. This is his board so he can and should do what he wants.



Mike
Re: New board : 68360 VME processor [message #7728 is a reply to message #7725] Thu, 28 May 2020 23:26 Go to previous messageGo to next message
trianon is currently offline  trianon
Messages: 20
Registered: May 2020
Junior Member
Hi,

No there are no plans to use linux kernel as there is no MMU inside the 68360, and the low memory available.
What is the minimal size needed for linux, 32 or 64 mB ? But you do need the MMU for it to run ?
My only knowledge of linux like OS is from 20 years ago on Sun and SGI machines, ls, grep, and that's about it Embarrassed.

Now looking at storage, I have some old IDE drives (3.5 and 2.5 inch), the 2.5 inch has the advantage
of only needing 5V and I can replace it by an CF card on the adapter PCB.
But when I look at the pinout of an IDE compared to the CF card, the first one is much more complicated.
- What is the best best option if I want to use it maybe on CMP/M 68k ?
- Do I put it on the databus (with some buffers) or by a IO port (68360 has enough free).


Br,
Steve
Re: New board : 68360 VME processor [message #7730 is a reply to message #7728] Fri, 29 May 2020 01:25 Go to previous messageGo to next message
borutk is currently offline  borutk
Messages: 34
Registered: November 2015
Member
Just get a cheap IDE to CF adapter from China.
IMHO data bus is better & faster, since read/write pulses don't have to be toggled manually.
With appropriate logic for DTACK, you can just read/write to/from the bus.
Re: New board : 68360 VME processor [message #7732 is a reply to message #7730] Fri, 29 May 2020 10:25 Go to previous messageGo to next message
plasmo is currently offline  plasmo
Messages: 916
Registered: March 2017
Location: New Mexico, USA
Senior Member
Following this topic of conversation. I have quite a number of CPU32 parts, including 68360, and had plans for them, but I'm too bogged down in other projects right now.
Bill
Re: New board : 68360 VME processor [message #7735 is a reply to message #7732] Sat, 30 May 2020 01:51 Go to previous messageGo to next message
trianon is currently offline  trianon
Messages: 20
Registered: May 2020
Junior Member
Hi all,

General question, what version of Altera Quartus should I download to program old CPLD like the EPM7064S please ?
I also have some old Altera CD with Quartus SW if this is of any use.
I have a old USB blaster from Altera, is it still supported ?

Br,
Steve
Re: New board : 68360 VME processor [message #7737 is a reply to message #7735] Sat, 30 May 2020 04:58 Go to previous messageGo to next message
plasmo is currently offline  plasmo
Messages: 916
Registered: March 2017
Location: New Mexico, USA
Senior Member
EPM7000 is not supported after version 13.1. I still use version 8.1 because I have a permanent license. Altera USB blaster is supported. My original Altera USB blaster died a couple years back and I replace with blaster clone from eBay for lesser than $5.
Bill
Re: New board : 68360 VME processor [message #8456 is a reply to message #7700] Sun, 11 April 2021 10:31 Go to previous messageGo to next message
trianon is currently offline  trianon
Messages: 20
Registered: May 2020
Junior Member
Almost a year gone without much progress ... but now I'm back again on the job Very Happy

Last year I wanted to put to much on the single board (68882, IDE bus, compact flash card reader,...Wink making it to complicated to route.

Now I started all over again with Altium Designer (also use it for my job) and only keep the necessary bits on the board and the
design is now already at 80% done.
The final project has :
- 68360 CPU in PGA package (5 in stock)
- 4x 32pins DIL SRAM (have different sizes and speeds in stock)
- 1x 32k bytes EERPOM or 128k bytes FLASH for boot device.
- RS232 serial port for debugging
- RS422 serial port for semi network connection.
- 16 bits VME interface, will only supports I/O (have some old I/O cards) and multiprocessor.
- 16 bits I/O port with some handshaking.

/forum/index.php?t=getfile&id=2081&private=0

It's just a fun project to use all the old stuff I hold on for so many years.
But I would like to run some speed test with the cpu's at different speeds and different memory speeds.
That is also to reason why I will use the VME bus so I will be able to run up to 4 cpu boards in parallel.


Second to that I have my BDM debugger project (build with only an Arduino UNO) working 100% on the MOT 68332evs develop kit.
I can stop the CPU, r/w any register and memory. It will be the perfect help to debug the 68360 design as I don't have
any debugger for it yet. Will also need it to program my EEPROM or FLASH boot device.


  • Attachment: cpu320.JPG
    (Size: 136.93KB, Downloaded 1282 times)
Re: New board : 68360 VME processor [message #8460 is a reply to message #8456] Mon, 12 April 2021 09:20 Go to previous messageGo to next message
mikemac is currently offline  mikemac
Messages: 250
Registered: March 2017
Senior Member
trianon wrote on Sun, 11 April 2021 10:31

Second to that I have my BDM debugger project (build with only an Arduino UNO) working 100% on the MOT 68332evs develop kit.
I can stop the CPU, r/w any register and memory. It will be the perfect help to debug the 68360 design as I don't have
any debugger for it yet. Will also need it to program my EEPROM or FLASH boot device.


I'd love to hear more details about your BDM debugger project! I've seen the connector on several 68K reference designs but that's all I know about it.



Mike
Re: New board : 68360 VME processor [message #8624 is a reply to message #7700] Mon, 17 May 2021 13:50 Go to previous messageGo to next message
trianon is currently offline  trianon
Messages: 20
Registered: May 2020
Junior Member
Will do soon ...

BDM is working perfect on my BCC 68332 board, can do all (stop, run, change any register, read/ write memory).
But on the 68360 it always resets the BDM when I want it read the internal SIM memory locations (could be an errata in the chip).
Needs some more debugging ...

My current solution only uses 20% of the Arduino program memory so I have started to include also a disassembler...

I'm currently using Easy68k but it seems not to support the CPU32, is there some free CPU32 compiler available ?


Re: New board : 68360 VME processor [message #8718 is a reply to message #8624] Sun, 27 June 2021 01:46 Go to previous messageGo to next message
mikesmith is currently offline  mikesmith
Messages: 80
Registered: March 2018
Member
trianon wrote on Mon, 17 May 2021 13:50

I'm currently using Easy68k but it seems not to support the CPU32, is there some free CPU32 compiler available ?
Most folks wind up using GCC. Getting it set up on Windows is a bit involved, but not too bad.
Re: New board : 68360 VME processor [message #8719 is a reply to message #8718] Sun, 27 June 2021 03:56 Go to previous messageGo to next message
trianon is currently offline  trianon
Messages: 20
Registered: May 2020
Junior Member
Hi

Currently I'm using 68000 IDE (idea from Just4Fun) and it works well to the generate the Win32 opcodes.
I'm using my own debugger to load the code into my board by BDM now ... a first test (led toggle) was
working after I found out that the watchdog is enabled by default on the 68360 Laughing


I don't know it gcc also includes any debugger SW ?
But anyway thanks for the info.
Re: New board : 68360 VME processor [message #8723 is a reply to message #8719] Sun, 27 June 2021 14:00 Go to previous messageGo to next message
tingo is currently offline  tingo
Messages: 115
Registered: February 2017
Location: Oslo, Norway
Senior Member
The debugger that normally "goes with" gcc is gdb.

Torfinn
Re: New board : 68360 VME processor [message #8728 is a reply to message #7725] Tue, 29 June 2021 05:39 Go to previous messageGo to next message
marcopolo is currently offline  marcopolo
Messages: 21
Registered: November 2020
Location: Nancy (FRANCE)
Junior Member
quarterturn wrote on Thu, 28 May 2020 12:11
Any chance to target running a linux kernel?

Microware OS-9 would be a better choice.
Everything runs on Linux these days, so what's the point of releasing a new Linux board?

Marc


My Archives (68K, Old logic, SSB radio): marc.retronik.fr
Re: New board : 68360 VME processor [message #8729 is a reply to message #8728] Tue, 29 June 2021 07:04 Go to previous messageGo to next message
trianon is currently offline  trianon
Messages: 20
Registered: May 2020
Junior Member
marcopolo wrote on Tue, 29 June 2021 05:39


Microware OS-9 would be a better choice.
Everything runs on Linux these days, so what's the point of releasing a new Linux board?

Marc
I have been designing with Windows CE on ARM for the last 15 years on the job,
have almost no knowledge on Linux, let alone build it for a custom embedded system...

I will be happy if I can get back into the 68000 code and hardware as a hobby.
Have already heard a lot about OS-9 but don't know where you can get a copy of it nowadays ?
Anyway it's not the finish that counts for me but the journey, building most of the
tools myself and learning old stuff again.
Re: New board : 68360 VME processor [message #8730 is a reply to message #8729] Tue, 29 June 2021 07:19 Go to previous messageGo to next message
trianon is currently offline  trianon
Messages: 20
Registered: May 2020
Junior Member
UPDATE

Because I have not yet found any debugger or OS specific for the 68360 (serial communication is very different from what used in other debuggers like 68332)
I have put the pcb design on hold until I know how to connect the 6 serial ports.

But found back one of my boards I made 20 years ago with the 68360, it was labeled as broken, but it seems only to be a mounting problem (conducted cooling).
So I will first test or write any debugger on this board (I know the HW is ok), maybe an OS would also be nice ...
BDM already works and I was able, after some debugging, to upload a small program to toggle a LED.

Any suggestions for debuggers (source code to start with) or OS are welcome.
This board has :
- 68360 33MHz cpu + 6 serial ports
- 512k fast ram 32 bits
- 4M flash
- PCI interface (Tundra QSpan)
- B69000 video chip 2MB ram



Re: New board : 68360 VME processor [message #8731 is a reply to message #8729] Wed, 30 June 2021 01:04 Go to previous messageGo to next message
marcopolo is currently offline  marcopolo
Messages: 21
Registered: November 2020
Location: Nancy (FRANCE)
Junior Member
trianon wrote on Tue, 29 June 2021 07:04
. Have already heard a lot about OS-9 but don't know where you can get a copy of it nowadays ?

That's the problem! OS-9 is not free.


My Archives (68K, Old logic, SSB radio): marc.retronik.fr
Re: New board : 68360 VME processor [message #8768 is a reply to message #8730] Mon, 05 July 2021 16:11 Go to previous message
etchedpixels is currently offline  etchedpixels
Messages: 333
Registered: October 2015
Senior Member
For debugging if you can write a simple polled serial driver and some small functions then you can use GDB, and the tools stacked on top of it.

The old CPU32 package even has a reference implementation to put it on SMC1.
Previous Topic: SBC V2-004
Next Topic: RBC Virtual "Get Together"


Current Time: Mon Sep 29 22:59:44 PDT 2025

Total time taken to generate the page: 0.49576 seconds