August 25, 2010
Hello,
I am using a Maple Rev 3 board with IDE 0.0.6 on a Pentium III Thinkpad (512 meg RAM) with USB 1.1 running Windows XP Professional SP3.
I am wondering if my unpredictable experience with uploading sketches (yes, I was using the problematic SerialUSB.print() function) is related to the amount of memory reported to be available after I compile a sketch. My problem is described here:
http://forums.leaflabs.com/topic.php?id=128
The STM32F103RB chip used on the Maple R3 board should have 20KB RAM and 128KB FLASH memory.
How much of the 20KB RAM and the 128KB FLASH memory is available for sketches?
I am asking because when I compile the Blink example I am surprised by the amount of "available" memory.
Here is my data:
1) Maple R3 set to upload to "LeafLabs R3 Maple RAM"
Compile reports:
Total 12296
Binary sketch size is reported above. Check it against a 17000 byte maximum.
Question: Where are the missing "3KB"?
2) Maple R3 set to upload to "LeafLabs Maple R3 FLASH"
Compile reports:
Total 12296
Binary sketch size is reported above. Check it against a 61000 byte maximum.
Question: Where is the missing "67KB"?
I am not surprised that the full 20KB and 128KB bytes are not available, but I am surprised that so much is not available (especially when the sketch is compiled to upload to the FLASH memory).
Thanks!
Stephen from NYC