usb serial connect to 02sxb probs

Building your first 6502-based project? We'll help you get started here.
Post Reply
User avatar
Collen
Posts: 20
Joined: 27 Nov 2018
Location: Netherlands..
Contact:

usb serial connect to 02sxb probs

Post by Collen »

Hi,

i'm trying to connect my 02sxb board to the computer (usb)
the most basic thing you need to getting started.

it does connect (Connected to SXB at 9600 baud) , but then it all ends...
no Mensch Monitor.
i used easySXB and Putty.. no luck on both (same behavior)
tried COM1, COM3.. no go

but it does communicate, i can use the 'GET' button and get the info.

Where do i go wrong....?!
User avatar
GaBuZoMeu
Posts: 660
Joined: 01 Mar 2017
Location: North-Germany

Re: usb serial connect to 02sxb probs

Post by GaBuZoMeu »

what about RTS/CTS ?
User avatar
Collen
Posts: 20
Joined: 27 Nov 2018
Location: Netherlands..
Contact:

Re: usb serial connect to 02sxb probs

Post by Collen »

GaBuZoMeu wrote:
what about RTS/CTS ?
Nope does not work either..

I'm under the impression that there is no mensch monitor on the w65c02sxb.
and that you have to run or connect to it through the wdcdc (debugger)
but the debugger is doggy.. it give me adresses like 00:8000 instead of the 8000
the scroll button of the mouse ain't working and there is a heap of other complains
about this program... (like not function proper on windows 10)

so is there an other way to use the sxb without the debugger ?!
User avatar
GaBuZoMeu
Posts: 660
Joined: 01 Mar 2017
Location: North-Germany

Re: usb serial connect to 02sxb probs

Post by GaBuZoMeu »

Did you try to follow https://wdc65xx.com/gettingstarted/02-s ... g-started/ ?

I can't as I haven't that particular board, so I don't know if it is working.
User avatar
Collen
Posts: 20
Joined: 27 Nov 2018
Location: Netherlands..
Contact:

Re: usb serial connect to 02sxb probs

Post by Collen »

Yup... i started there, but that example project is not available anymore..

WDC Documentation on the w65c02sxb is scarce.
the one's that they have does not give me Anny good info
on how and what.

same goes for subroutines and in depth info on the board.
but that is part of the fun, figuring out how to work with the 02sxb..
User avatar
BitWise
In Memoriam
Posts: 996
Joined: 02 Mar 2004
Location: Berkshire, UK
Contact:

Re: usb serial connect to 02sxb probs

Post by BitWise »

The '02SXB and '816SXB are designed to be used with the WDC tools. The firmware on these boards talks a binary protocol used by the debugger application. Its not a full monitor.

Some one on this forum posted a python script that can download and run applications by generating the same protocol over a serial port. I've been working on a C# version but its not finished.

WDC wrote a document for each board that contains details of the hardware (but not the debugger firmware)
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs
User avatar
BigEd
Posts: 11463
Joined: 11 Dec 2008
Location: England
Contact:

Re: usb serial connect to 02sxb probs

Post by BigEd »

User avatar
Collen
Posts: 20
Joined: 27 Nov 2018
Location: Netherlands..
Contact:

Re: usb serial connect to 02sxb probs

Post by Collen »

BitWise wrote:
The '02SXB and '816SXB are designed to be used with the WDC tools. The firmware on these boards talks a binary protocol used by the debugger application. Its not a full monitor.
...
WDC wrote a document for each board that contains details of the hardware (but not the debugger firmware)
That makes a lot of sense now.. (:
i did find the hardware doc's, but indeed the debugger info would be handy...
especially for the subroutines

I use your sxb hacker for some background info on the registers and more (https://github.com/andrew-jacobs/w65c816sxb-hacker)
Anny chance of converting/making a w65c02sxb-hacker rom ?!
User avatar
BitWise
In Memoriam
Posts: 996
Joined: 02 Mar 2004
Location: Berkshire, UK
Contact:

Re: usb serial connect to 02sxb probs

Post by BitWise »

Collen wrote:
I use your sxb hacker for some background info on the registers and more (https://github.com/andrew-jacobs/w65c816sxb-hacker)
Any chance of converting/making a w65c02sxb-hacker rom ?!
I have a monitor for my ‘02 three chip boards that could be used as a starting point but I don’t have an ‘02 or ‘134 SXB to develop or test on.
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs
User avatar
Collen
Posts: 20
Joined: 27 Nov 2018
Location: Netherlands..
Contact:

Re: usb serial connect to 02sxb probs

Post by Collen »

BitWise wrote:
I have a monitor for my ‘02 three chip boards that could be used as a starting point but I don’t have an ‘02 or ‘134 SXB to develop or test on.
That would come in handy, thx..

i'll see if i can make the sxb-hacker work on my 02sxb board (no promises)
User avatar
BitWise
In Memoriam
Posts: 996
Joined: 02 Mar 2004
Location: Berkshire, UK
Contact:

Re: usb serial connect to 02sxb probs

Post by BitWise »

Collen wrote:
BitWise wrote:
I have a monitor for my ‘02 three chip boards that could be used as a starting point but I don’t have an ‘02 or ‘134 SXB to develop or test on.
That would come in handy, thx..

i'll see if i can make the sxb-hacker work on my 02sxb board (no promises)
It think it contains a fair amount of 16-bit code so that might be a big task.
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs
User avatar
Collen
Posts: 20
Joined: 27 Nov 2018
Location: Netherlands..
Contact:

Re: usb serial connect to 02sxb probs

Post by Collen »

BitWise wrote:
I have a monitor for my ‘02 three chip boards that could be used as a starting point but I don’t have an ‘02 or ‘134 SXB to develop or test on.
Jup, that 16->8bit convert is going to take a heap more time then i anticipated..
Your monitor for the 3chip, is that https://github.com/andrew-jacobs/sb-6502 ?!

i noticed that @floodybust also has made a micro monitor...

got to start somewhere... :)
User avatar
BitWise
In Memoriam
Posts: 996
Joined: 02 Mar 2004
Location: Berkshire, UK
Contact:

Re: usb serial connect to 02sxb probs

Post by BitWise »

Collen wrote:
Your monitor for the 3chip, is that https://github.com/andrew-jacobs/sb-6502 ?!
Yes, its in https://github.com/andrew-jacobs/sb-650 ... de/monitor. All the tools to built it (on Windows 10) are in the repository. On Linux or OS/X I suspect the makefile will need tweaking. The source is written in structured 6502 so it needs my tools to build.
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs
User avatar
floobydust
Posts: 1394
Joined: 05 Mar 2013

Re: usb serial connect to 02sxb probs

Post by floobydust »

Collen wrote:
BitWise wrote:
I have a monitor for my ‘02 three chip boards that could be used as a starting point but I don’t have an ‘02 or ‘134 SXB to develop or test on.
Jup, that 16->8bit convert is going to take a heap more time then i anticipated..
Your monitor for the 3chip, is that https://github.com/andrew-jacobs/sb-6502 ?!

i noticed that @floodybust also has made a micro monitor...

got to start somewhere... :)
Yes, I basically took my high function monitor and cobbled it down to fit in 1.75KB. Hopefully you find it well documented in the source code. it still has a fair amount of function for it's size and still maintains a jump table, soft vectors in page $03 and can be extended easily. As as I noted in the github description... if this doesn't work, your hardware setup is likely the cause. It does use interrupt-driven and buffered I/O for the 65(C)51, so make sure you're NOT using one of the recent WDC W65C51 chips with the xmit bug. I have some older Rockwell chips which work fine.
rclancy
Posts: 11
Joined: 03 Dec 2019
Location: New Mexico

Re: usb serial connect to 02sxb probs

Post by rclancy »

Just a random thought... Those WDC boards use an FTDI chip for their serial over USB interface. I don't know a lot about windows... Maybe it needs a driver to work properly?

https://www.ftdichip.com/FTDrivers.htm

Good Luck!
Post Reply