I wrote a similar topic few days ago (and Gus replied me), after that I had a problem with my GHI’s account so I deleted the previous topic and now I’m here to write for the same issue.
I’m trying to use N18 Display with FEZ Cerberus but I get an exception “System.OutOfMemoryException in Microsoft.SPOT.Graphics.dll”.
I was developing using VS2010 SP1 and a FEZ Cerberus with firmware and tinybooter 4.2.6.0.
Gus suggested me to update firmware and tinybooter at last version.
So I’ve done it and I changed also Visual Studio.
Now I’m using Visual Studio 2012 and the FEZ Cerberus mainboard has both firmware and tinybooter version at 4.2.6.1.
I still get the exception “System.OutOfMemoryException”.
The code executed is:
Public Sub ProgramStarted()
With display_N18
.SetBacklight(True)
.SimpleGraphics.BackgroundColor = GT.Color.White
End With
' Use Debug.Print to show messages in Visual Studio's "Output" window during debugging.
Debug.Print("Program Started")
End Sub
Can you help me?
If you need additional information don’t hesitate to ask.
In my first post I said that, as you suggested, I updated firmware from 6.0 to 6.1!
About the code, I haven’t checked the ebook because I’m writing code for gadgeteer mainboards from about 6 months using FEZ Spider and other displays, so I thought that display N18 wasn’t different at all.
The code that I try to execute is the one above and the exception is thrown from the row:
The Initialize method was for an older SDK version, I have removed it from the N18 page. It is a private method called automatically now. I tried the code in your first post and it worked fine. Do you have any other code in the program? Any other modules in the designer?
Yes, your question made me realize that I forgot an important detail (I think!): the FEZ Cerberus firmware is for ethernet module usage.
I don’t have other code in the program but I have other modules in designer (and also phisically plugged at the mainboard):
Ethernet ENC28 Module (at socket 6)
Micro SD Card Module (at socket 7)
For your information, Display N18 is plugged at socket 5.
@ BigFoot - The Ethernet firmware uses a lot of RAM for networking. It will not be enough to handle N18, not with the driver we provide (simple graphics).
If you need simple things in the display them you can still use the ethernet firmware. Of course you can upgrade your fez and you will get a lot more memory. Try to compare products on the catalog of you want.