Re: Flash Memory - Loading an Application of 2M size into 1M Flash memory



Hi ,

I'm having trouble understanding how the application grew to 2MB when
your development platform only has 1 MB of flash??? Did you write an
extra 1MB of code before testing any of it???
It has exeeded in size so that it can not be placed
in Flash.
I do RAM execution, debugging and development . I did not try flashing
the application though many modules were getting integrated . Now the
code has got almost freezed as many modules have got finished . I did
try flashing now and there comes this issue.
It has not exactly doubled in size. It has crossed the 1.4 M mark.

You don't say whether or not you are executing in-place from the
flash,
or executing a copy out of RAM.
Bootloader execution is done as 'executing in-place' in
Flash.
But the application gets executed by getting copied to RAM. This
copying is
done by Bootloader as in any other normal embedded systems. So, this
area also needs some tricks so that the image in bits/pieces can be put
together by some means and executed !!

How much (spare) RAM do you have? What percentage of your application
is
code vs data?
RAM is not an issue. 32M is there and it is working
perfectly from
RAM . Only Flashing is the issue and i need tricks in that regard with
how to flash the big size image in bits / pieces as size has crossed
the Flash memory size and execute the bits / pieces as such or by
putting together in some groups with some tricks .

..XMAP file of the application has the following info w.r.t data & code
for your reference :
..text = 0x12C188 - 0xB0000 = 0x7C188
..rodata = 0x134CD5 - 0x12C188 = 0x8B4D
..data = 0x13620A - 0x134CE0 = 0x152A
..bss = 0x22AB66 - 0x136210 = 0xF4956


Regards,
Karthik Balaguru

.



Relevant Pages

  • Re: Flash for persistent storage and hive based registry
    ... I was under the impression there was quite a difference between executing ... from Flash as opposed to RAM. ... Saves RAM, system needs less RAM as RAM is only needed for stack,heap, ... >> My bootloader create a BINFS partition and an EXTENDED partition on ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Flash Memory has RAM
    ... What is the difference between FRAM and NOR Flash Memory ... w.r.t executing a complete application? ... we need not copy the code from Flash to RAM and execute in RAM. ... Acheiving Execution speed in Flash Memory just like RAM. ...
    (comp.arch.embedded)
  • Re: Flash Memory - Loading an Application of 2M size into 1M Flash memory
    ... I'm having trouble understanding how the application grew to 2MB when ... You don't say whether or not you are executing in-place from the flash, ... How much RAM do you have? ...
    (comp.arch.embedded)
  • Re: Performance and Flash Pipelining on TI 28F12 DSPs
    ... > of "critical code" we could move to RAM. ... > from internal flash? ... Since the external RAM is as big as the internal flash, ... the timers and all other interrupts are shut off, ...
    (comp.dsp)
  • Re: [ANNOUNCE] Ramback: faster than a speeding bullet
    ... The fact is, enterprise scale ramdisks are here now, while ... enterprise scale flash is not. ... does not approach the write performance of RAM, ... My goal is not to replace RAM with flash, but disk with flash. ...
    (Linux-Kernel)