Hi everybody, I'm a lot confused about the available flash memory for programming, the amount that is available after CircleOS is installed, what can be debugged , what files can / must be manually edited ....
I spent a whole day figuring out how to compile the "PrimerMouse 1.1" demo program on a Primer2. Although it's supposed to be updated and to contain a project for the primer 2, it was indeed quite difficult to compile it, and took a lot of:
- understanding why the Ride ide often complainted about "FLASH IS FULL" or Flashb1 full
- searching through the forums
- manyally modifying the project, creating a new one (it was impossible to use circle_mgs with mouseLib.lib) , and ...
- manually tweaking the Circle_app.ld file.
I finally ended up with the program running ... but with lots of doubts. Can someone explain why ....
1) Circle_app.ld file must be manually modified?
2) it contains references to STM32F103_128K_20K_DEF.ld ... in the primer 2 we have a 512k flas device, right? So why 128K?
3) why we have to modify manually the amount of flash? I saw a lot of answers on the forum stating that the memory section must be modified like this:
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 16K
FLASH (rx) : ORIGIN = 0x8006000, LENGTH = 128K-0x6000
FLASHB1 (rx) : ORIGIN = 0x00000000, LENGTH = 0
EXTMEMB0 (rx) : ORIGIN = 0x00000000, LENGTH = 0
EXTMEMB1 (rx) : ORIGIN = 0x00000000, LENGTH = 0
EXTMEMB2 (rx) : ORIGIN = 0x00000000, LENGTH = 0
EXTMEMB3 (rx) : ORIGIN = 0x00000000, LENGTH = 0
}
with a reference to 128k - 0x6000, that is 128k - 24k?
4) Is 24k the size of CircleOS ? I suppose it WAS the size of CircleOS some version ago, but now with version 3.3 it has increased and so these numbers are inaccurate ....
5) Finally, what can be debugged? Is there a 32K limit? Is it 32k with or without CircleOS? Is it 32k with or without debugging information?
6) P.S: and what it the setting that must be somewhere about a "develop limitation"?
So ... a little clarification, a FAQ about these subjects would be really welcome....
Thank you.