de0 1 .jic? vid?
rjo__
Posts: 2,114
Hello again.
I am using a bare de0-nano. After programming the Nano using Chip's latest .jic file to allow SDRAM access, I can't find
the P2. If I use the old .jic, the driver compiles and loads, but doesn't work(of course). I'm sure that this issue has already been raised and answered, but after several hours of looking I'm coming up empty.
I think this problem is from a remapping of the Nano's pins to connect to the adapter board? Where are p90,91?
Is the pin map for the other header changed? Is there a new map?
Question 2:
I would like to look at some of the video drivers... starting with NTSC.
If I use pin0 for the NTSC, do I add a single resistor or do I need a resistor to ground as well?
Thanks.
I am using a bare de0-nano. After programming the Nano using Chip's latest .jic file to allow SDRAM access, I can't find
the P2. If I use the old .jic, the driver compiles and loads, but doesn't work(of course). I'm sure that this issue has already been raised and answered, but after several hours of looking I'm coming up empty.
I think this problem is from a remapping of the Nano's pins to connect to the adapter board? Where are p90,91?
Is the pin map for the other header changed? Is there a new map?
Question 2:
I would like to look at some of the video drivers... starting with NTSC.
If I use pin0 for the NTSC, do I add a single resistor or do I need a resistor to ground as well?
Thanks.
Comments
I believe your correct. My recollection is the later DE0 binary is for the add-on boards.
As for the NTSC driver, it still uses the DAC so again a add-on board is required.
It looks like we need more add-on boards for the DE0 & DE2.
Cheers
Brian
Andy
Andy... so where is ground?
David... this forum and those precious few add-on boards are for really serious developers... I'm really not:) If you will notice, I have asked a lot of questions and have a lot of opinions, but I have contributed nothing!!! This trend is likely to continue into at least the near future.
The last thing I would want to do is ask for a freebee... have Ken exhaust his supply... and then the next genius comes along and there is nothing there for him.
I would be happy to buy one... if anyone is selling:) Ken isn't:(
I can live without one for the time being, but hopefully not for long.
Rich
Andy
Rich
Your offer is too kind and greatly appreciated. PM is in the ether.
Andy
Thanks to you I have some good news: I am now communicating with my Nano-Prop, using the configuration file (.jic) that supports the SDRAM driver. The bad news is that the the SDRAM_Driver_DE0.obj file loads, but then hangs. Unless anyone has a suggestion, I will wait for the add-on board from Potatohead... and if it still doesn't work, assume I damaged my little Nano and get a new one.
I don't want to wait... so if there is something I need to figure out... fire away.
Thanks again
Rich
Does your SDRAM driver use the "ORGH $18E80" directive instead of "ORGH $E80"?
Just an idea
Cheers
Brian
I am using the prior version of PNUT, which had the HUB memory constraint. The driver just uses org
Yes it hangs, if you do it exactly according that description.
You need to switch back to byte mode before you upload the .obj file (just type Y before you open the menu). I have that added to the description later, but not posted as an update.
This driver was just a short test after Chip released his SDRAM driver, you can not do something useful with it in one cog.
Attached is another driver I made, that provides subroutines to init the SDRAM, and for read and write a quad. A quad is the minimal granulation (granularity?) you can read and write with this code.
I hope the description at begin is clear enough. You don't need the monitor to write and check the SDRAM, the serial routines and hex handling are all bulit in.
Andy
Thanks again.
My nano-P2 is alive and storing data. One issue I ran into with the above file was that the high word of q3 was read inaccurately. For small values, if the intended (low word) value was x, the high word of q3 was generally x-(x mod 2).
I tracked this down to a nop after the ramRead_ret retd
Correct me if I a mistaken on this:
nop #4 ... should take 16 clocks (4*(n=4)), required by the setxfr mode. So, I assume the extra 4 clocks created by NOP #1 shifted the value in q3 over by 4 bits, but why does this timing issue have anything to do with a single bit error in the high word of q3?
But the error is not in the Read, but in the Write routine. It seems the XFR transfer is stopped one cycle to early and w0 and w1 have always the same value.
I set up the SDRAM in a burst-8 mode, so the RAM stops every Read or Write command after 8 clocks, also if the Prop outputs or reads more data. So it could be only the Write with 1 XFR cycle too short.
Attached is the corrected version. The Read routine takes now also 1 cycle less.
Andy
Edit: NOP #4 takes 5 clocks, that is one nop + the #number additional nops. On Prop2 single cycle instructions take only 1 clock.
Yesterday, I got my first chance to set down with sdram_test1_1.spin and behold, Chip sent a major update our way:)
My still bare nano-P2 is running fine. I am using your Prop2 terminal 0.5?
I made the obvious changes to the sdram_test1_1.spin, changed clock speed to 80_000_000, changed the 200usec delay code to repeat 16000,
and set the monitor re-entry to $700.
The terminal locks up. I can reset the Prop and get the monitor.
I have looked through the code three times... have no clue(:
By the way, I love your terminal... do you have documentation? Google doesn't find Prop2 terminal, I can't remember where I found it, and I don't see anything yet on your website.
Thank you very much
Rich
You can set the clkfrq to 20 MHz, or use the attached version which does a clkset to 80 MHz.
There is some PropTerminal description in the Sticky thread here.
Prop2Terminal is just a little variation of the PropTerminal, the difference is that it allows to upload an object file over the P2-Monitor. You can use the description for PropTerminal in the ZIP files (I know that textfile is a mess).
Andy
Thanks for the info and effort.
Still no love from my Nano.
I am running a bare NanoP2. A couple of posts seem to indicate that this might be the problem. Chip has indicated that he believes there is a timing issue, which he plans to address. I can't get your cordic code to run either. I can get a "hello prop2" example to run, which uses your terminal.
I should be getting an add-on board from Mr. Potatohead soon. So, hopefully that will get me up and running.
Have you run this on a bare Nano?
Thanks again.
Rich