W65C816SXB

Let's talk about anything related to the 6502 microprocessor.
Post Reply
eddiek
Posts: 4
Joined: 17 Oct 2024

W65C816SXB

Post by eddiek »

Simple question to owners of the W65C816SXB sbc:
Just received a board, had a few bent pins, not too bad, straightened them out and powered the board. SHOULD I get a monitor prompt
when using a serial terminal emulator? I do not, using both 9600 and 57600 baud, 8-bit, 1-stop, no parity. I see nothing, even garbage.

Using linux, cu and gtkterm, changed USB cables (2x) and see /dev/ttyUSB1 when the board is plugged in. Also tried sxb.py after change
of python code to reflect correct serial port.

Believe I got a bad board, just want to double check with someone that has this board.
eddiek
Posts: 4
Joined: 17 Oct 2024

Re: W65C816SXB

Post by eddiek »

Spoke to tech support at WDC and no, you'll have to use some python scripts to speak to the board, which he sent to me.
The board expects some code from the pc, then established communications. Probably best if your using Windows, as there are tools,
but in the Linux env your kinda stuck using python.
User avatar
BigDumbDinosaur
Posts: 9425
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: W65C816SXB

Post by BigDumbDinosaur »

eddiek wrote:
Spoke to tech support at WDC and no, you'll have to use some python scripts to speak to the board, which he sent to me.
The board expects some code from the pc, then established communications. Probably best if your using Windows, as there are tools,
but in the Linux env your kinda stuck using python.

So, were you able to get the thing running?
x86?  We ain't got no x86.  We don't NEED no stinking x86!
eddiek
Posts: 4
Joined: 17 Oct 2024

Re: W65C816SXB

Post by eddiek »

Yes to a degree. But trying different things, like wine and trying to resurrect a windows laptop (v8.1 bare metal).
Then I'll pick. I am sooo use to the Unix development env (command line) that windows dev env looks weird.
Hope that old laptop still works....
User avatar
drogon
Posts: 1671
Joined: 14 Feb 2018
Location: Scotland
Contact:

Re: W65C816SXB

Post by drogon »

FWIW: I have a W65C134-SXB board. (65C02 CPU) It needed no special tools - I use minicom under Linux to talk to it.

I seem to recall that it is fussy about handshake signals, but it all seemed to just work via USB back to my Linux systems.

I did a thing here on it:

https://projects.drogon.net/porting-my- ... 5c134-sxb/

However the '816 board may well be very different.

-Gordon
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
handyandy
Posts: 113
Joined: 14 Sep 2015
Location: Virginia USA

Re: W65C816SXB

Post by handyandy »

This thread might be helpful:
viewtopic.php?f=4&t=5698&hilit=W65c816sxb
eddiek
Posts: 4
Joined: 17 Oct 2024

Re: W65C816SXB

Post by eddiek »

Andy, saw that post, and it's where I got the Python sxb.py from.

BTW: sxb.py no longer works on the newer versions of W65C816SXB even after changing serial port device in the code.
WDC tech support eluded to some changes in the firmware. NOT SURE if i should post the whole program i got from WDC
but i will post the lines of code where the python code wakes up the board:

def write_bin_command(self, cmd):
self.write_serial('55')
self.write_serial('AA')

the reply from the board is CC.
cjm
Posts: 1
Joined: 11 Dec 2024

Re: W65C816SXB

Post by cjm »

I have a newer board (I assume, bought it 2 weeks ago) and the Read and Write commands on mine require 3 bytes for the data length, instead of 2. If you add an extra 0 to the ends of the byte lists sent in read_memory and write_memory in sxb.py, it might work for you.
gillham
Posts: 1
Joined: 13 Jun 2025

Re: W65C816SXB

Post by gillham »

I thought my newly purchased W65C816SXB board was bad since WDCTOOLS can't communicate with it. Thanks everyone here and on other threads for posting various ways to talk to the board with Python and other tools. I've learned my REV.C board has WDCMON v2.0 and it works differently and isn't supported by WDC's own tools.

I've forked github/kalj/sxb, with some changes posted by derekmulcahy in issue #1 as well. That didn't work reliably on my board and some of it was chalked up to the need for the 3rd (bank) byte on the read/write addresses. That helped me get read/write to work, but then I had to figure out how to jump to my code.

Anyway, after a good bit of fiddling I was able to get exec/info/read/write working on my board reliably.
My version (github/gillham/sxb) only works on the W65C816SXB with the WDCMON v2.0 firmware. I might try to combine support for older / newer firmware in a future version after I get some experience with my board.

The info command on my board returns the output below.

Code: Select all

$ ./sxb -d /dev/tty.usbserial-3 info
     Board model: SXB6
  Board revision: 300
Monitor revision: 200
00  53  S
01  58  X
02  42  B
03  36  6
04  2c  ,
05  01
06  00
07  00
08  c8  È
09  00
0a  00
0b  00
User avatar
BigEd
Posts: 11463
Joined: 11 Dec 2008
Location: England
Contact:

Re: W65C816SXB

Post by BigEd »

Welcome! And thanks for sharing your adaptation to the newer WDC firmware
https://github.com/gillham/sxb
User avatar
Dr Jefyll
Posts: 3525
Joined: 11 Dec 2009
Location: Ontario, Canada
Contact:

Re: W65C816SXB

Post by Dr Jefyll »

Welcome, gillham! Sounds as if you've been lurking this forum for a little while at least, but congrats on finding your voice and joining in!

And congrats on managing to communicate with your SBX, too! :wink:

-- Jeff
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
Post Reply