6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 8:46 pm

All times are UTC




Post new topic Reply to topic  [ 47 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: W65C816SXB
PostPosted: Fri Aug 14, 2015 9:49 pm 
Offline

Joined: Tue Jul 24, 2012 2:27 am
Posts: 679
Just out of curiosity, do you know if those tools are developed in-house or outsourced? It's a disappointing shame that repeatedly the official tools seem to be of lower quality (though with broader scope) than the 3rd party stuff out there. Especially for as much as Mensch has talked about stability, quality, industrial, medical, etc uses of the hardware. I don't really want to rag on them, but this is in my wheelhouse, along with "if this has bugs, people will die" software development, so I'm particularly sensitive to that kind of stuff.

_________________
WFDis Interactive 6502 Disassembler
AcheronVM: A Reconfigurable 16-bit Virtual CPU for the 6502 Microprocessor


Top
 Profile  
Reply with quote  
 Post subject: Re: W65C816SXB
PostPosted: Sat Oct 31, 2015 11:41 am 
Offline

Joined: Mon May 24, 2004 8:48 pm
Posts: 59
I ordered one today before I have read this topic . Guys , what is included in the box ... software , schematic ???
Thx.


Top
 Profile  
Reply with quote  
 Post subject: Re: W65C816SXB
PostPosted: Sat Oct 31, 2015 6:31 pm 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
The box just contains the board. You need to find a USB cable to connect it.

The software is downloadable from the website as are some technical documents. WDC sent me a copy of schematic when I mailed them.

I don't use the IDE myself but I use the assembler, linker and debugger via make and batch files. I had problems creating TIDE projects from scratch.

_________________
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


Top
 Profile  
Reply with quote  
 Post subject: Re: W65C816SXB
PostPosted: Sat Oct 31, 2015 9:53 pm 
Offline
User avatar

Joined: Fri Oct 30, 2015 9:49 pm
Posts: 54
Location: San Antonio, TX
Howdy...

I just got this board and started playing around with it.
I got the Monitor (w65c816sxb-hacker) up and running to poke around in Memory...

I cleared the Baud Rate bits in the ACIA and got the speed up to 115200 Baud...

lda #%00010000 ; 8 bits, 1 stop bit, 19200 baud
sta ACIA_CTL
lda #%00001001 ; No parity, no interrupt
sta ACIA_CMD
lda ACIA_RXD ; Clear receive buffer

Then remove all but one of the TxDelay to fully use it...
You can even shorten the waiting time if you want to.

pha
php
short_a
sta ACIA_TXD
jsr TxDelay
plp
pla
rts

TxDelay: lda #$60
inc a
bne $-1
rts
endif

I have asked David Cramer @ WDC to send me the Schematic and any information on how to use the Flash ROM.
This looks like a really cool board to play with...

Thanks for the great memory monitor.


Top
 Profile  
Reply with quote  
 Post subject: Re: W65C816SXB
PostPosted: Sat Oct 31, 2015 10:29 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8543
Location: Southern California
Alamorobotics, welcome!

To keep the monospacing for code, and to the forum software from deleting your spaces, put [code] and [/code] around it, and it will look like this, as you intended:
Code:
                lda     #%00010000              ; 8 bits, 1 stop bit, 19200 baud
                sta     ACIA_CTL
                lda     #%00001001              ; No parity, no interrupt
                sta     ACIA_CMD
                lda     ACIA_RXD                ; Clear receive buffer

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
 Post subject: Re: W65C816SXB
PostPosted: Sat Oct 31, 2015 11:55 pm 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
Alamorobotics wrote:
Thanks for the great memory monitor.

It needs finishing. I've been a bit busy with other projects and work to get back to it, but I plan to at christmas when I have some vacation time.

_________________
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


Top
 Profile  
Reply with quote  
 Post subject: Re: W65C816SXB
PostPosted: Sun Nov 01, 2015 11:46 am 
Offline

Joined: Mon May 24, 2004 8:48 pm
Posts: 59
Hi ,
Could you please share the schematic with me ?.
Thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: W65C816SXB
PostPosted: Mon Nov 02, 2015 2:24 pm 
Offline
User avatar

Joined: Fri Oct 30, 2015 9:49 pm
Posts: 54
Location: San Antonio, TX
Howdy...

If David sends me the schematic, I'll ask him if I can redistribute it here on 6502.org.

I'll continue playing around with the board, I still have a lot of reading up to do.
Getting the w65c816sxb-hacker up and running was more of a getting started project...


Top
 Profile  
Reply with quote  
 Post subject: Re: W65C816SXB
PostPosted: Mon Nov 02, 2015 10:58 pm 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
I fixed a few bugs in the SXB-Hacker and got the XMODEM download working but flash programming is not working yet.

_________________
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


Top
 Profile  
Reply with quote  
 Post subject: Re: W65C816SXB
PostPosted: Tue Nov 03, 2015 10:15 pm 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
Found a bug in the unlock code sequence and ran a test to see if self writing works, and it does!!
Code:
.
.r0
.ma000 a00f
00:A000 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF |................|
.u
ROM area unlocked
.ma000 a00f
00:A000 CE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF |................|
.

Note how $a000 changes from $ff to $ce. Before I can program another ROM area I need to make a back up of the flash, add a command to erase a bank and move the byte write code into the XMODEM routine.

_________________
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


Top
 Profile  
Reply with quote  
 Post subject: Re: W65C816SXB
PostPosted: Tue Nov 03, 2015 11:38 pm 
Offline
User avatar

Joined: Fri Oct 30, 2015 9:49 pm
Posts: 54
Location: San Antonio, TX
Howdy...

I had a look at the doc for the ROM and found the magic sequence... ;-)
Looks like it has to be done for each write, to write $1234 at address $9000, I had to execute it twice and the delay in between have to be at least 20 micro seconds...

Code:
    ; Magic sequence...
    lda #$AA
    sta $D555

    lda #$55
    sta $AAAA

    lda #$A0
    sta $D555

    ; Program ROM
    lda #$12
    sta $9000

    ; Wait for it, should ideally be 20 uSec...
    lda     #$00
    inc     a
    bne     $-1

    ; Magic sequence...
    lda #$AA
    sta $D555

    lda #$55
    sta $AAAA

    lda #$A0
    sta $D555

    ; Program ROM
    lda #$34
    sta $9001


Top
 Profile  
Reply with quote  
 Post subject: Re: W65C816SXB
PostPosted: Wed Nov 04, 2015 4:32 pm 
Offline

Joined: Mon May 24, 2004 8:48 pm
Posts: 59
Hi ,
I got my board today , no issues ,no damages . Then I have downloaded the Tidy software and that's a disappointment . I cant open or create project , software just stop responding (under windows 10). also I'm getting that ' Failed to set data for 'Version' message . Tide version 2.0.5.0 .

Is there any other way to send my code to this board ????

Thanks !


Top
 Profile  
Reply with quote  
 Post subject: Re: W65C816SXB
PostPosted: Wed Nov 04, 2015 5:43 pm 
Offline
User avatar

Joined: Fri Oct 30, 2015 9:49 pm
Posts: 54
Location: San Antonio, TX
Try running the TIDE IDE as an Administrator, that seem to clear up a lot of problems on my Win 7...

When creating a new project it seem like I have to check the "Project Options" to make sure everything is set properly.
Then make sure you click the "Assemble and Link" button first, if you click the "Compile to Assembly" it seem to mess things up.
If you do click the "wrong" button first, remove everything but the .asm, .inc, .ini and .wdc files and try again...


Top
 Profile  
Reply with quote  
 Post subject: Re: W65C816SXB
PostPosted: Wed Nov 04, 2015 8:13 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8506
Location: Midwestern USA
You guys are all discovering, it would seem, why I installed TIDE, tried using it for several weeks, and then went back to the Kowalski assembler. TIDE is rough around the edges and for me at least, gets in the way of productivity.

As for the W65C816SXB board, I have to say I'm not very impressed. A number of us here have built units that were, in my opinion, as or more powerful, and better thought out. Daryl's SBC-3 design, based on a 65C816, programmable logic and 512KB of RAM, had more going for it in every way. So why spend several hundred USD on something that is second best?

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: W65C816SXB
PostPosted: Thu Nov 05, 2015 12:19 am 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
I agree that the W65C816SXB is not a great board but it is relatively easy to use with the WDC tools. I bought mine because I wanted to try out some code quickly without have to spend time designing, building and fixing a circuit.

The individual tools work well from the command line and when used with a makefile even complex builds can be easily automated.

I've just pushed the latest version of my hacker program to github. It can now erase the parts of SXB ROM that are not full of WDC firmware and will upload a binary file using XMODEM into RAM or flash. Needs a lot more testing but seems to work. I would recommend making a copy of the flash ROM before playing with uploading your own images.

_________________
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 47 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: