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

Relocatin several modules from flash to psram

Relocating code for execution form flash to psram according to http://www.keil.com/appnotes/files/apnt_138.pdf works fine.

USER CLASSES: SROM (0xC30000-0xC33FFF)

USER SECTIONS: ?PR?FLASH%FCODE (0xE00000)[], ?PR?CONTROL%FCODE (0xE00120)[], ....

As you can see there are several modules and each requires an explicit target address. As the codesize increases during development the adresses have to be adjusted form time to time which is very uncomfortable.

I've seen that the following setting places the code of CONTROL right after the code of FLASH.

USER SECTIONS: ?PR?FLASH%FCODE (0xE00000), ?PR?CONTROL%FCODE, ...

Unfortunately the addressing is not correct when I use this solution:

001666H _PR_CONTROL_l_ CONST --- --- ---
E00114H _PR_CONTROL_s_ CONST --- --- ---
E00114H _PR_CONTROL_t_ CONST --- --- ---

Is there a solution that places the code automatically without gaps to the psram an additionally creates all the addresses correctly when several mudules have to be copied to psram for execution ?

Parents
  • As Frank, we are facing to the same problem :
    We've got an application build with around 100 modules. Today, this application is stored & runs in FLASH.

    The objective is to add RAM memories & to run the whole application in RAM.

    How can we place all this code in RAM with execution addresses which are calculated automatically?

Reply
  • As Frank, we are facing to the same problem :
    We've got an application build with around 100 modules. Today, this application is stored & runs in FLASH.

    The objective is to add RAM memories & to run the whole application in RAM.

    How can we place all this code in RAM with execution addresses which are calculated automatically?

Children
No data