Using the G120 with NetMF v4.3, I am not sure if I am able to make use of the amounts of RAM and ROM shown on the data sheet, which mentions 16MB RAM and 4MB FLASH.
On the GC debug output in VS2013, I see around 6MB RAM available in the managed heap, before creating any large data structures.
I made some applications that used a lot of ROM, to make sure my implementation of the In-Field Update feature would operate properly.
Enumerating the size of all of the assemblies in the largest successful application gave a total of less than 600KB.
I did not successfully reach my target of an application using about 1MB of ROM, which is only 1/4 of the ROM on the data sheet. When the larger applications failed, they corrupted the firmware, and I had to reload it.
And, it seems like there is a large amount of RAM that I can’t use, since I see about 6MB available to the managed heap, which is 10MB less than the 16MB on the data sheet.
It’s important for planning purposes to know if more ROM and RAM can be accessed, or if I need to look elsewhere when planning larger projects.
Has the Forum had different results than this? If so, are there any examples I can look at?
The Heap is used for many things, like 1MB reserved for display VRAM and 2MB for custom heap for large objects and 1MB for RLP…etc. It is sad how memory was fragmented in NETMF. We have changed some of that in TinyCLR OS.
When you check the RAM size, make sure you run the GC first.