I am having a problem converting an older VS2008 project designed for the discontinued USBizi DevSys board written in .NETFM version 2 to work with .NETFM version 4 and the FEZ Domino board. The project is found at:
(link removed)
The program.cs was modified thusly ( commented lines are original, and the line following is new):
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
//using GHIElectronics.Hardware;
using GHIElectronics.NETMF.FEZ;
using System.Threading;
// static SPI.Configuration conf = new SPI.Configuration(GHIElectronics.Hardware.USBizi.Pins.E43x, false, 0, 0, false, false, 4000, SPI.SPI_module.SPI1);
static SPI.Configuration conf = new SPI.Configuration((Cpu.Pin)GHIElectronics.NETMF.FEZ.FEZ_Pin.Digital.Di5, false, 0, 0, false, false, 4000, SPI.SPI_module.SPI1);
static SPI SPI_port = new SPI(conf);
// static OutputPort RST = new OutputPort(GHIElectronics.Hardware.USBizi.Pins.E36x, true);
static OutputPort RST = new OutputPort((Cpu.Pin)GHIElectronics.NETMF.FEZ.FEZ_Pin.Digital.Di0, true);
// static OutputPort DC = new OutputPort(GHIElectronics.Hardware.USBizi.Pins.E37x, true);
static OutputPort DC = new OutputPort((Cpu.Pin)GHIElectronics.NETMF.FEZ.FEZ_Pin.Digital.Di1, true);
All compiles fine and loads.
In addition, the sparkfun OLED carrier board was jumpered on JP1 and JP2 to enable the voltage boost circuit.
BS1 and BS2 were left alone (unjumpered) - this could be a problem!
According to the table there on page 15, only one configuration is given for Serial communication, and that is unjumpered, which is what I had. I hate it when I asked for verification of the code and I get an unnecessary delay like this.
[quote]According to the table there on page 15, only one configuration is given for Serial communication, and that is unjumpered, which is what I had.
[/quote]
Maybe I didn’t read it right. Where do you see that the pins are serial by default? It says 0 is serial so you need to connect the pins to GND. There is no mention is the whole document saying those pins are defaulted to serial?!
Hate?! We are doing all this help to get you started because we like helping users, but it is not a requirement by any means It is not fair that I had spent sometime looking up the datasheet for you and told you what page to look at and we get this response!
Not only that, I modified your post to make the code more readable and I checked it for you too!!! So, why are you hating my friend?
If our answers here are not satisfying or fast enough then, though our paid consulting service, we can work with you one-on-one and even do the whole project for you if you like.
The sparkfun people provided a datasheet that showed the BS configs, which I tried to no avail. I asked you guys to check the updated pinout for the Domino board and the updated code. Would you PLEASE do that.
Like I said in last post, I have checked them the first time you posted. I was trying to help further but if this is all you need to know…yes the pins are connected correctly.
Now, did you try what I suggested? You must connect the 2 BS pins to select serial before you proceed to try anything else.
Like I said in my last post, I tied BS jumpers to GND, That is the serial setting. And nothing showed up on the display. Is there another project that uses SPI I can look at? I keep thinking that some of the pins acting as SPI pins are not initialized or something, because they obviously have different default uses. It seems that the USBizi DevSys board had more pins available by default for SPI.
You do not need other projects…I am trying to step you through it so just keep on posting here.
Also, the old DevSys board didn’t have anything special over FEZ. They both use the exact same USBizi chipset.
Now that we have made sure the connections are right, we can check the software further. First, lower your SPI clock to 1Mhz (you are using 4Mhz now)
The code will be