ICE T65/Z80/6809

discussion of games, software, hardware & emulators relating to the Acorn Atom
User avatar
sirmorris
Posts: 702
Joined: Wed Feb 11, 2009 12:18 pm
Location: oxfordshire uk
Contact:

Re: ICE T65/Z80/6809

Postby sirmorris » Sat Jul 29, 2017 4:08 pm

My board has an FT230X on it, I think the schematics may be loose at best.

fpga 51 tx <-> ftdi 4 rx

fpga 55 rx <-> ftdi 1 tx

:shock:
Last edited by sirmorris on Sat Jul 29, 2017 4:24 pm, edited 1 time in total.

User avatar
hoglet
Posts: 6391
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: ICE T65/Z80/6809

Postby hoglet » Sat Jul 29, 2017 4:14 pm

sirmorris wrote:My board has an FT230X on it, I think the schematics may be loose at best.

Can you post a close up photo of the top of the board?

User avatar
hoglet
Posts: 6391
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: ICE T65/Z80/6809

Postby hoglet » Sat Jul 29, 2017 4:26 pm

Looking at the FT230X pinout, the RxD input is pin 2 so I guess that's where you should find the signal.

Let me correct the baud rate and see if you get any closer.

Back in a mo....

User avatar
sirmorris
Posts: 702
Joined: Wed Feb 11, 2009 12:18 pm
Location: oxfordshire uk
Contact:

Re: ICE T65/Z80/6809

Postby sirmorris » Sat Jul 29, 2017 4:38 pm

Ignore the goop - I haven't cleaned it after reflowing the chips. Ignore the blob on pin 20 or so that was flux. Ignore the mess on pin 4 that was where I had a wire soldered.

IMG_3931.png

User avatar
sirmorris
Posts: 702
Joined: Wed Feb 11, 2009 12:18 pm
Location: oxfordshire uk
Contact:

Re: ICE T65/Z80/6809

Postby sirmorris » Sat Jul 29, 2017 4:39 pm

hoglet wrote:Looking at the FT230X pinout, the RxD input is pin 2


I think you're looking at the QFP pinout rather than the TSOP.

User avatar
hoglet
Posts: 6391
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: ICE T65/Z80/6809

Postby hoglet » Sat Jul 29, 2017 4:48 pm

OK, spotted the problem...

The silk screen says:
- Tx 51
- Rx 55

which is different to the picture on the Web, and different to Jason's board (Tx 46 and Rx 47)

Can you post a picture of the whole board, as there might be other differences.

I'll update the ucf file....

Dave

User avatar
sirmorris
Posts: 702
Joined: Wed Feb 11, 2009 12:18 pm
Location: oxfordshire uk
Contact:

Re: ICE T65/Z80/6809

Postby sirmorris » Sat Jul 29, 2017 4:52 pm

Ha! Looking at the documentation I see that my board looks different to that pictured :shock:

IMG_3941.jpg


FFS

User avatar
hoglet
Posts: 6391
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: ICE T65/Z80/6809

Postby hoglet » Sat Jul 29, 2017 5:21 pm

As far as I can see, it's only TxD and RxD that are different.

Here's another build that uses 51 of TxD and 55 for RxD:
icez80_test3.zip
(342.75 KiB) Downloaded 7 times

It also gets the baud rate much closer. Using a DCM ratio 12/31 clocks the AVR at 19.355MHz and gives us a baud rate of 57603.69 baud. I'll go with this I think.

Test LEDs updated slightly:
LD1 - turns off when either SW1 or SW2 pressed
LD2 - flashed at 1.15 Hz when SW1 pressed
LD4 - flashed at 2.98 Hz when SW2 pressed
LD5 - flashes on TxD

Duncan, any chance of a photo of your board?

Dave
Last edited by hoglet on Sat Jul 29, 2017 6:33 pm, edited 8 times in total.

User avatar
flynnjs
Posts: 738
Joined: Tue Jul 06, 2010 9:33 pm

Re: ICE T65/Z80/6809

Postby flynnjs » Sat Jul 29, 2017 5:59 pm

Do you mean Duncan?

Here's the user guide for the board I have.
XC6SLX9 Mini Board-User's Guide.pdf
(3.15 MiB) Downloaded 12 times


It has an FT232 on it, not an FT230.

Mine looks just like this : http://www.ebay.com/itm/Xilinx-FPGA-Spa ... 1640406811

User avatar
hoglet
Posts: 6391
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: ICE T65/Z80/6809

Postby hoglet » Sat Jul 29, 2017 6:49 pm

flynnjs wrote:Do you mean Duncan?

I meant Elminster, who is definitely a Duncan.

He's just received a board from eepizza.

I wanted to see if it's like your board, or like Charlie's.

(I've also ordered one from eepizza)
Last edited by hoglet on Sat Jul 29, 2017 8:25 pm, edited 1 time in total.

User avatar
sirmorris
Posts: 702
Joined: Wed Feb 11, 2009 12:18 pm
Location: oxfordshire uk
Contact:

Re: ICE T65/Z80/6809

Postby sirmorris » Sat Jul 29, 2017 8:11 pm

Aaaaaand relax..

Serial port COM13 opened
ICE-T80 In-Circuit Emulator version 0.73
Compiled at 19:17:30 on Jul 29 2017
4 watches/breakpoints implemented
Tracing every 1 instructions while single stepping
CPU free running...

User avatar
sirmorris
Posts: 702
Joined: Wed Feb 11, 2009 12:18 pm
Location: oxfordshire uk
Contact:

Re: ICE T65/Z80/6809

Postby sirmorris » Sat Jul 29, 2017 8:15 pm

It's amazing how so much stuff is just right there in front of your eyes - the silkscreen pin numbers :oops:

User avatar
Elminster
Posts: 1632
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK

Re: ICE T65/Z80/6809

Postby Elminster » Sat Jul 29, 2017 8:21 pm

hoglet wrote:
flynnjs wrote:Do you mean Duncan?

I meant Elminster, who I is definitely a Duncan.

He's just received a board from eepizza.

I wanted to see if it's like your board, or like Charlie's.

(I've also ordered one from eepizza)


Mine looks like Charlie's except jtag pins straight. oo green light now on usb device. will add photos shortly.
Attachments
fullsizeoutput_27f7.jpeg
IMG_3255.JPG
Last edited by Elminster on Sat Jul 29, 2017 8:25 pm, edited 1 time in total.

User avatar
1024MAK
Posts: 6680
Joined: Mon Apr 18, 2011 4:46 pm
Location: Looking forward to summer in Somerset, UK...

Re: ICE T65/Z80/6809

Postby 1024MAK » Sat Jul 29, 2017 8:23 pm

I've ordered an Xilinx FPGA Spartan 6 XC6SLX9 Core Board from eepizza as well.

The estimated delivery date range that I have is Thu, 03 Aug - Wed, 30 Aug. If in the unlikely event that I get mine before Duncan gets his or you get yours, I'll post up a photo.

Ahh, I see Duncan is now ready with a camera... 8)

Mark
For a "Complete BBC Games Archive" visit www.bbcmicro.co.uk NOW!
BeebWiki‬ - for answers to many questions...

User avatar
Elminster
Posts: 1632
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK

Re: ICE T65/Z80/6809

Postby Elminster » Sat Jul 29, 2017 8:26 pm

1024MAK wrote:I
The estimated delivery date range that I have is Thu, 03 Aug - Wed, 30 Aug. If in the unlikely event that I get mine before Duncan gets his or you get yours, I'll post up a photo.


i had similar delivery quote, but arrived today.

Pictures added to above.

User avatar
Elminster
Posts: 1632
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK

Re: ICE T65/Z80/6809

Postby Elminster » Sat Jul 29, 2017 9:26 pm

Hmm I dont get as far as Sir Morris, follow build instructions but program with 'Double clock on Program' and then fails straight away. What was the right prom verion in the end? seems to autodetect lx9 okay.

Edit: Might have to re-read thread and GitHub in case I missed something.

Or might try a build on a centos fm on Mac, as ubuntu on notebook was a faff. Although looks like it is working.

Edit2: Or try test3 but don't think I get there, looks like a transfer error.
Last edited by Elminster on Sat Jul 29, 2017 9:46 pm, edited 2 times in total.

User avatar
hoglet
Posts: 6391
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: ICE T65/Z80/6809

Postby hoglet » Sat Jul 29, 2017 9:39 pm

sirmorris wrote:Aaaaaand relax..

Serial port COM13 opened
ICE-T80 In-Circuit Emulator version 0.73
Compiled at 19:17:30 on Jul 29 2017
4 watches/breakpoints implemented
Tracing every 1 instructions while single stepping
CPU free running...

Cool, glad that's working.

All changes from today have been checked in, so you should be able to build it yourself.

It was worth going through this exercise, as I now understand why I couldn't get 115,200 baud to work previously.
Elminster wrote:Pictures added to above.

Thanks for these.

What I'm planning to do when my board turns up is:
- test it actually works (I'll probably start with the 6502 if Charlie is doing the Z80)
- move to 115,200 baud
- increase the number of simultaneous breakpoints (currently 4 or 8)
- increase the depth of the watchpoint event FIFO (currently 512x72)
- increase the size of the AVR program memory (currently either 8Kx16 or 9Kx16)

Dave

User avatar
hoglet
Posts: 6391
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: ICE T65/Z80/6809

Postby hoglet » Sat Jul 29, 2017 9:44 pm

Elminster wrote:Hmm I dont get as far as Sir Morris, follow build instructions but program with 'Double clock on Program' and then fails straight away. What was the right prom verion in the end? seems to atuodetect lx9 okay.

Do make sure you have updated to the latest code in git.

What PROM are you selecting? I think the correct one is the W25Q64BV, but check what's on the underneath of your board.

What error are you seeing in iMPACT - can you post the log?

Dave

User avatar
Elminster
Posts: 1632
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK

Re: ICE T65/Z80/6809

Postby Elminster » Sat Jul 29, 2017 9:48 pm

Already tried with magnifying glass and a torch and could read the Id of prom. Will try again. I added above (but our posts crossed in the ether), transfer error and bombs out straight away, so seems likely prom. Will try again in a few mins.

User avatar
hoglet
Posts: 6391
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: ICE T65/Z80/6809

Postby hoglet » Sat Jul 29, 2017 9:55 pm

Elminster wrote:Already tried with magnifying glass and a torch and could read the Id of prom. Will try again. I added above (but our posts crossed in the ether), transfer error and bombs out straight away, so seems likely prom. Will try again in a few mins.

Probably stating the obvious, but crashes in iMPACT are usually down to an incompatibility with the OS.

What OS are you running on?

If Windows 10-64 bit, have you tried any of the fixes? e.g:
- http://www.eevblog.com/forum/microcontr ... -8-64-bit/

Dave

User avatar
Elminster
Posts: 1632
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK

Re: ICE T65/Z80/6809

Postby Elminster » Sat Jul 29, 2017 10:05 pm

Attached flash is definitely W25Q64BV in software.

Error different. This time it is cable not found, which is odd as it auto detects lk9 board. and light on programmer is green.

lsusb show 03fd:0008 Xilinx etc. so it has right firmware.

imact, detects usb cable.

so bit odd. also seeing spi device not detected.

User avatar
Elminster
Posts: 1632
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK

Re: ICE T65/Z80/6809

Postby Elminster » Sat Jul 29, 2017 10:20 pm

Mag says

winbond 25032fvsig = w25q32fvsig = w25q32fv but only 'v' , 'dw' or bv' in the drop down list in impact.

trying. w25q32v

says it suceeded in 37 seconds

Edit: rechecked eBay and in blurb it says 'W25Q32BV'
Last edited by Elminster on Sat Jul 29, 2017 11:25 pm, edited 1 time in total.

User avatar
Elminster
Posts: 1632
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK

Re: ICE T65/Z80/6809

Postby Elminster » Sat Jul 29, 2017 10:25 pm

hoglet wrote:
Elminster wrote:Already tried with magnifying glass and a torch and could read the Id of prom. Will try again. I added above (but our posts crossed in the ether), transfer error and bombs out straight away, so seems likely prom. Will try again in a few mins.

Probably stating the obvious, but crashes in iMPACT are usually down to an incompatibility with the OS.

What OS are you running on?

If Windows 10-64 bit, have you tried any of the fixes? e.g:
- http://www.eevblog.com/forum/microcontr ... -8-64-bit/

Dave


sorry bombs out of program, not software. ubuntu 17, but was wrong prom. need refresh my git clone next now that is flashing.

Edit: git pulled, remaking, takes a while on an intel atom notebook msi u100plus, use that for portable. then set mac for speed. Need to setup mac ubuntu.

User avatar
Elminster
Posts: 1632
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK

Re: ICE T65/Z80/6809

Postby Elminster » Sat Jul 29, 2017 11:05 pm

Latest github code compiled and fpga flashed and .....

Code: Select all

ICE-T80 In-Circuit Emulator version 0.73
Compiled at 23:32:27 on Jul 29 2017
4 watches/breakpoints implemented
Tracing every 1 instructions while single stepping
CPU free running...


I call that success and bedtime.

User avatar
hoglet
Posts: 6391
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: ICE T65/Z80/6809

Postby hoglet » Sun Jul 30, 2017 6:52 am

Elminster wrote:I call that success and bedtime.

Excellent stuff.

You should be able to build/program the 6502 version as well. It's in:
- target/lx9_jason/ice6502

Same processes, and it should announce itself as ICE-T65 with 8 watches/breakpoints available.

Dave

User avatar
sirmorris
Posts: 702
Joined: Wed Feb 11, 2009 12:18 pm
Location: oxfordshire uk
Contact:

Re: ICE T65/Z80/6809

Postby sirmorris » Sun Jul 30, 2017 7:50 am

We're cookin! Great news all round.

User avatar
Elminster
Posts: 1632
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK

Re: ICE T65/Z80/6809

Postby Elminster » Sun Jul 30, 2017 8:14 am

hoglet wrote:You should be able to build/program the 6502 version as well. It's in:
- target/lx9_jason/ice6502

Will try to have a go on that this evening. Have also cleared 80GB space on Mac so will create ubuntu ISE vm, rather than slow intel Atom notebook.

User avatar
Elminster
Posts: 1632
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK

Re: ICE T65/Z80/6809

Postby Elminster » Mon Jul 31, 2017 11:35 pm

Got the Ubuntu 64bit VM built and retest building the icez80 and that compiled without issue.

Tried the ice6502 version and it faield to compile. 1 warning and 1 error.

Code: Select all

WARNING:HDLCompiler:946 - "/ICE-T/AtomBusMon/src/AtomCpuMon.vhd" Line 145: Actual for formal port sw1 is neither a static name nor a globally static expression

=========================================================================
*                            HDL Elaboration                            *
=========================================================================
ERROR:HDLCompiler:852 - "/ICE-T/AtomBusMon/src/AtomCpuMon.vhd" Line 25: Unit atomcpumon does not have a generic named ClkMult

Elaborating entity <AtomCpuMon> (architecture <behavioral>) with generics from library <work>.
Execution of entity atomcpumon failed


Followed the same steps on a build that is compiling icez80 okay. All Jason's versions.

User avatar
hoglet
Posts: 6391
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: ICE T65/Z80/6809

Postby hoglet » Tue Aug 01, 2017 5:39 am

Elminster wrote:Tried the ice6502 version and it faield to compile. 1 warning and 1 error.

Oops, that's my fault. It's an error in the last commit (allowing the AVR clock speed to be set from the .xise file).

I'll fix it this morning and test everything builds.

Dave

User avatar
hoglet
Posts: 6391
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: ICE T65/Z80/6809

Postby hoglet » Tue Aug 01, 2017 8:37 am

hoglet wrote:
Elminster wrote:Tried the ice6502 version and it faield to compile. 1 warning and 1 error.

Oops, that's my fault. It's an error in the last commit (allowing the AVR clock speed to be set from the .xise file).

I'll fix it this morning and test everything builds.

It's now fixed and github has been updated.

Dave


Return to “acorn atom”

Who is online

Users browsing this forum: No registered users and 3 guests