This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Program Size

Dear All, Iam new to STM32F103ZE evaluation kit and realview compiler in uVision 3.24,just i tried some example programs. The Total ROM size is too high for simple application programs.
Total ROM Size (Code + RO Data + RW Data) 31892 ( 31.14kB) By checking the map file it shows like

Load Region Execution Region ER_IROM1 (Base: 0x08000000, Size: 0x000001c4, Max: 0x00080000, ABSOLUTE)

Execution Region ER_IROM2 (Base: 0x08004180, Size: 0x000027d8, Max: 0xffffffff, ABSOLUTE, FIXED)

Just its skipping about 16kb from LR-IROM1 and starts from ER_IROM2. I tried for optimization but still it remain same. And I tried the option in Target IROM1 to set in 0x8000000 and IROM2 in 0x8000500 but still it takes like old 0x08004180.

please let me know what would be the problem.In Evaluation version scatter file also not possible to create iguess.

Rgds
Rajesh

Parents
  • "Yes, the problem (sic?) is that Keil gives a 16kB filler..."

    Problem? Isn't this what they mean when they state in the "Limitations" of the free Evaluation:

    "The vector table, reset handler, and library initialization code are linked at the base address. The remaining user code and constants are offset from the base address by 0x4000 (16 KBytes). Programs generated with the Evaluation Version of the tools may not be programmed into single-chip devices with less than 16 KBytes of on-chip ROM/Flash."

    http://www.keil.com/demo/limits.asp

    So it sounds like it is doing exactly what it says on the tine - isn't it?

Reply
  • "Yes, the problem (sic?) is that Keil gives a 16kB filler..."

    Problem? Isn't this what they mean when they state in the "Limitations" of the free Evaluation:

    "The vector table, reset handler, and library initialization code are linked at the base address. The remaining user code and constants are offset from the base address by 0x4000 (16 KBytes). Programs generated with the Evaluation Version of the tools may not be programmed into single-chip devices with less than 16 KBytes of on-chip ROM/Flash."

    http://www.keil.com/demo/limits.asp

    So it sounds like it is doing exactly what it says on the tine - isn't it?

Children