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.
W65C816SXB
Re: W65C816SXB
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.
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.
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: W65C816SXB
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.
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!
Re: W65C816SXB
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....
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....
Re: W65C816SXB
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
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/
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Re: W65C816SXB
This thread might be helpful:
viewtopic.php?f=4&t=5698&hilit=W65c816sxb
viewtopic.php?f=4&t=5698&hilit=W65c816sxb
Re: W65C816SXB
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.
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.
Re: W65C816SXB
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.
Re: W65C816SXB
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.
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
Re: W65C816SXB
Welcome! And thanks for sharing your adaptation to the newer WDC firmware
https://github.com/gillham/sxb
https://github.com/gillham/sxb
Re: W65C816SXB
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!
-- Jeff
And congrats on managing to communicate with your SBX, too!
-- Jeff
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
https://laughtonelectronics.com/Arcana/ ... mmary.html