Parallax Forums
  HomeLog InRegisterCommunity CalendarSearch the ForumHelp
   
Parallax Forums > Public Forums > Propeller Chip > TriBladeProp PCB: Uses 3 Propeller ICs for a Single Board Computer (SBC)  Forum Quick Jump
 
New Topic Post Reply Printable Version
849 posts in this thread.
Viewing Page :
 
[ << Previous Thread | Next Thread >> ] | Show Newest Post First ]

Dr_Acula
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Dec 2008
Total Posts : 606
 
   Posted 9/22/2009 7:49 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Hi Cluso,

I have spent a couple of hours studying the dma code and how the buffers work. I can see how this works and it all seems to make sense and I have thought of all sorts of read/write/read scenarios and can't think of any way that incorrect data could get through. writesd is only called once for hard drive routines (and once in the floppy routines), and before this refresh_hd_cache is called so the cache is always updated

So - earlier you mentioned something about one of the bootup bits of code. This is a block of data that I think either you or heater created, so it is a bit hard to debug.


www.smarthome.viviti.com/build

Back to Top
 

Cluso99
We live onboard



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2008
Total Posts : 2276
 
   Posted 9/22/2009 8:02 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Drac: Our posts crossed, so please see description of the code, although I think you understand it anyway.

Yes, it is up to heater to find the solution. Heater, perhaps you could create say a 40KB version, to see if the problem is still there? The 64KB floppy version works.

Potatohead: Nice to see you here yeah


Links to other interesting threads:
Back to Top
 

heater
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Feb 2008
Total Posts : 1832
 
   Posted 9/22/2009 11:11 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
I did find SramTest1MB.spin already. Unfortunately it fails for me:)

Currently on Blade 2 I have fitted only: the Prop, RAM as U23, EEPROM, latch, resistor network and all other Cs and Rs. Crystal is 6.5536MHz

I have made the OE mod. U23 pin 24 disconnected from the board and then linked to U21 pin 37.

I do not have an SD card attached (or even the socket)

Power comes from the Blade 1 PSU.

I can program RAM and EEPROM with a Prop Plug via J21 and 25K ZiCog does at least start up such that I can single step through the ZIBOOT code.

SramTest1MB.spin fails.

When I have a moment I will buzz this out and check all connections shorts etc.

Is there a net list I could use as a check list? Working from the schematic makes my eyes spin.


For me, the past is not over yet.

Back to Top
 

Cluso99
We live onboard



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2008
Total Posts : 2276
 
   Posted 9/22/2009 11:14 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
OK, you will need to modify the test to only check the first 512KB ram. Hopefully this will be obvious in the code.


Links to other interesting threads:
Back to Top
 

Cluso99
We live onboard



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2008
Total Posts : 2276
 
   Posted 9/22/2009 11:27 PM (GMT -8)    Quote This PostAlert An Admin About This Post.

For those who are following and still want to play while we find/fix the 64K/PIP bug, here is _rr123 which has 2 floppies A & B and 2 hard drives I & J.

Attached are 3 files

  • Source code
  • Binary code (compiled for 5MHz xtal). You can use PropTool to download it.
  • SD files required
    • DSKBOOT_.ROM   (boots CPM) unchanged from previous releases
    • DRVCPM_2.DSK    (A: floppy file for CPM2.2)
    • DRVCPM_3.DSK    (B: floppy file for CPM3)
    • BLANK_I0.DSK      (I: Hard disk file - blank)
    • BLANK_J0.DSK      (J: Hard disk file - blank)
    • BLANK_E5.DSK      (unused, just a blank hard disk)

Postedit: This is a working 64KB CPM2.2 version with 2 Floppies and 2 8MB hard drives. 



Links to other interesting threads:
  Search the Propeller forums (uses advanced Google search)
My cruising website is:  www.bluemagic.biz   MultiBladeProp is: www.bluemagic.biz/cluso.htm

Post Edited (Cluso99) : 9/27/2009 3:28:31 AM GMT



File Attachment :
zicog_cpm_rc5.5b_rr123-bst-archive-090923-170907.zip   69KB (application/x-zip-compressed)
This file has been downloaded 18 time(s).

File Attachment :
zicog_cpm_rc5.5b_rr123.binary   13KB (application/octet-stream)
This file has been downloaded 25 time(s).

File Attachment :
V123_Floppy.zip   928KB (application/x-zip-compressed)
This file has been downloaded 20 time(s).
Back to Top
 

heater
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Feb 2008
Total Posts : 1832
 
   Posted 9/22/2009 11:30 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Maybe I'm a bit tired.
I'm looking at SramTest1MB.spin and all I can see is that it tests 1024 bytes (from U23 according to the comments)
Should ReadRam and WriteRam be using ram_enable_lo instead of ram_enable_hi ?


For me, the past is not over yet.

Back to Top
 

Dr_Acula
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Dec 2008
Total Posts : 606
 
   Posted 9/22/2009 11:49 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
I never did any ram tests. Just soldered it up, dropped in the complete emulation code and it ran. Are you doing ram tests because it doesn't run?


www.smarthome.viviti.com/build

Back to Top
 

heater
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Feb 2008
Total Posts : 1832
 
   Posted 9/23/2009 12:03 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
I want to do a RAM test because, well, I've always been fastidious about testing even the smallest sub assemblies before jumping to the big construction and ending up head scratching when nothing works at the end of it. Comes from a bad experience building my Nixie tube and TTL clock on my own design home etched PCB in 1973 :)

But more importantly in this case I don't have an SD card attached. So firing up TriBlade for external RAM is not going to do very much.

I have no SD card socket so I will have to hang an SD card onto the board as best I can, which may not be very good. I'd like to know the RAM works before moving on to that step (and again after it).


For me, the past is not over yet.

Back to Top
 

Cluso99
We live onboard



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2008
Total Posts : 2276
 
   Posted 9/23/2009 12:25 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Heater, yes it should be using ram_enable_lo which is for the lower 512KB sram.
Cannot get to my dev laptop and the moment - wife playing solitaire :-)

Heater: re microSD

If you can get an SD to microSD adapter (readily available) solder the pins via wires as follows.... (use the U25 Flash pins for all but 1 pin)

  • SD-4 (3V3) to U26-8
  • SD-3,6 (GND) to U26-4
  • SD-7 (DO) to U26-2
  • SD-2 (DI) to U26-5
  • SD-5 (CLK) to U26-6
  • SD-1 (-CS) to U25-13 (to the latch)

http://www.dd-wrt.com/wiki/index.php/Linksys_WRT54G-TM_SD/MMC_mod


Links to other interesting threads:
  Search the Propeller forums (uses advanced Google search)
My cruising website is:  www.bluemagic.biz   MultiBladeProp is: www.bluemagic.biz/cluso.htm

Post Edited (Cluso99) : 9/23/2009 8:36:42 AM GMT

Back to Top
 

heater
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Feb 2008
Total Posts : 1832
 
   Posted 9/23/2009 1:11 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
OK. So I was not so tired:)

Just started another stint of real work so this will have to wait until much later today:(

I'm all set with SD adapters. That's pretty much what I had in mind and what I have on my Prop Demo board.


For me, the past is not over yet.

Back to Top
 

Dr_Acula
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Dec 2008
Total Posts : 606
 
   Posted 9/23/2009 3:17 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Hanging the sd off the board would be fine. I'm hanging a seperate max232 board off my board (half a picaxe interface circuit). Lots of hot melt glue to reinforce the connections. Got to get you triblading, heater!


www.smarthome.viviti.com/build

Back to Top
 

Cluso99
We live onboard



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2008
Total Posts : 2276
 
   Posted 9/23/2009 3:58 AM (GMT -8)    Quote This PostAlert An Admin About This Post.

Here is a test program for testing the SRAM. Only the first 512KB will be tested.

Every location is tested, but each only with one value which is incrementing in each successive location, so it should catch any shorts or opens.

I noticed that the TriBlade #2 driver is not working above 512KB.


Links to other interesting threads:
  Search the Propeller forums (uses advanced Google search)
My cruising website is:  www.bluemagic.biz   MultiBladeProp is: www.bluemagic.biz/cluso.htm



File Attachment :
SramTestBlade2_003 - Archive [Date 2009.09.23 Time 21.54].zip   13KB (application/x-zip-compressed)
This file has been downloaded 15 time(s).
Back to Top
 

heater
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Feb 2008
Total Posts : 1832
 
   Posted 9/23/2009 8:59 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Check. RAM works :)


For me, the past is not over yet.

Back to Top
 

Cluso99
We live onboard



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2008
Total Posts : 2276
 
   Posted 9/24/2009 4:31 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Excellent :-) Now for the SD.... then ZiCog...


Links to other interesting threads:
Back to Top
 

heater
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Feb 2008
Total Posts : 1832
 
   Posted 9/26/2009 1:27 PM (GMT -8)    Quote This PostAlert An Admin About This Post.

ZiCog 1.0_rc_5.5b on the TriBladeProp v0.123
Starting Hdisks...
A:DRVCPM_2.DSK 49720 14
B:DRVCPM_3.DSK 115256 14
I:BLANK_I0.DSK 16952 14
J:BLANK_J0.DSK 33336 14
R:DSKBOOT_.ROM <-bootcode 180792 14
Loading SRAM...
Starting 8080 emulation...
Passed, please wait...

64K CP/M Version 2.2 (SIMH ALTAIR 8800, BIOS V1.25, 2 HD, 15-Jan-07)

A>


:)


For me, the past is not over yet.

Back to Top
 

Dr_Acula
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Dec 2008
Total Posts : 606
 
   Posted 9/26/2009 4:23 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Woot! There is so much code working behind that little signon message. Fantastic to see.

Are you at the point of being able to replicate the 'big file bug'?

There are several ways to replicate it - eg with Wordstar (but this prints escape characters all over a non VT100 terminal, so it is hard to see the bug) and BDS C. But perhaps the easiest is to put a large (40k?) text file on one hard drive and try doing a PIP to another hard drive.

Of course, if you can't replicate it, that would be even more exciting!


www.smarthome.viviti.com/build

Back to Top
 

Cluso99
We live onboard



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2008
Total Posts : 2276
 
   Posted 9/26/2009 7:24 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Heater: Sorry, that code does not exhibit the bug. I released that as an interim until the bug is resolved.


Links to other interesting threads:
Back to Top
 

heater
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Feb 2008
Total Posts : 1832
 
   Posted 9/26/2009 9:04 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Now worries if this version works :)

I'm planning on starting from this stock SIMH BIOS and gradually morphing it step by step into the one we want. Hopefully finding the problem at one of the steps.

This is what I did originally, carefully checking that each step worked as expected. Which it did, in 25K RAM.


For me, the past is not over yet.

Back to Top
 

heater
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Feb 2008
Total Posts : 1832
 
   Posted 9/27/2009 8:50 AM (GMT -8)    Quote This PostAlert An Admin About This Post.

A>ls b:
0 File(s), occupying 0K of 8136K total capacity
1024 directory entries and 8136K bytes remain on B:
A>boot
64K CP/M Version 2.2 (ZiCog, BIOS V1.27_Zi04, 8 HD, 10-Sep-2009)
A>ls bdos.prn
Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes
BDOS    PRN  168K
1 File(s), occupying 168K of 8136K total capacity
948 directory entries and 7272K bytes remain on A:
A>pip b:=bdos.prn
A>ls b:
Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes   Name    Ext Bytes
BDOS    PRN  168K
1 File(s), occupying 168K of 8136K total capacity
1018 directory entries and 7968K bytes remain on B:
A>


:)


For me, the past is not over yet.

Back to Top
 

Dr_Acula
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Dec 2008
Total Posts : 606
 
   Posted 9/27/2009 3:34 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Looking good! Are you using different code? There are a few more tests to do as occasionally I did manage to get a big file over onto a clean drive - next test might be to erase that file, then copy another big file over with a different name. If that works, then do a PIP *.* of one of the simh disks.


www.smarthome.viviti.com/build

Back to Top
 

heater
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Feb 2008
Total Posts : 1832
 
   Posted 9/27/2009 3:46 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Sorry to be so mysterious. I have to do a lot more testing here as you say. Just now I've managed to do a few sessions of:
ERA B:*.*
PIP B:=A:*.*
TYPE B:BDOS.PRN
etc. etc.

I have yet to see a crash.

Same code just configured slightly differently. I won't be happy until I find out exactly what this is about.


For me, the past is not over yet.

Back to Top
 

Dr_Acula
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Dec 2008
Total Posts : 606
 
   Posted 9/27/2009 4:03 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Can you try booting up Wordstar? You will get lots of escape characters and most of it won't make sense, but at least you will be able to see if it restarts 20x before it gets to the prompt. (Or, use the Teraterm package I uploaded last week and run it as a VT100 terminal, and then Wordstar makes sense).


www.smarthome.viviti.com/build

Back to Top
 

Dr_Acula
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Dec 2008
Total Posts : 606
 
   Posted 9/27/2009 4:30 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Unless you are in linux and don't have a VT100 terminal program?

In which case, try compiling a C program. Get the BDS C program and write a small program to print Hello. See post from me on 16th Sept at 9:19pm. If that works...


www.smarthome.viviti.com/build

Back to Top
 

Cluso99
We live onboard



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2008
Total Posts : 2276
 
   Posted 9/29/2009 3:13 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Temporarily out of action :-(


Links to other interesting threads:
Back to Top
 

BrainDamage
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Mar 2009
Total Posts : 3
 
   Posted 9/29/2009 9:45 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
In reference to the issue discussed by Dr_Acula et al. on September 16th, the BDS C / WS crashes due to possible opcode issues:

If it helps, here's some info on how CC/CC2/CLINK use Z80-specific ops (and to be quite honest, I cannot even recall if CLINK uses any): There's only ONE Z80-specific opcode that's ever used by the compiler or the libraries, and that's an extended block move operation. There's a subroutine (or two) used to relocate data; it works by first performing an "INR A" (increment A, I believe that was the Intel-style 8080 instruction name but it's been so damn long, lol) and checking the parity bit afterwards; if it's running on an 8080 it's one way, Z80 the other. If it sees 8080, it uses 8080 ops to do the move. Else it uses the Z80 op.

That's IT. So problems with any other Z80 opcodes would not effect BDS C compiler/linker behavior.

Good luck!
Back to Top
 
[ << Previous Thread | Next Thread >> ]
New Topic Post Reply Printable Version
849 posts in this thread.
Viewing Page :
 
 
Forum Information
Currently it is Friday, November 20, 2009 11:13 PM (GMT -8)
There are a total of 393,738 posts in 55,521 threads.
In the last 3 days there were 82 new threads and 702 reply posts. View Active Threads
Who's Online
This forum has 17687 registered members. Please welcome our newest member, mark09.
48 Guest(s), 2 Registered Member(s) are currently online.  Details
BradC, SRLM