This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

about the code over flow

hi, i m pradeep i m using piccolo f28069  and i want to increase the .text flash memory size. so almost i used flasha in page 0 in that totally memory  but i want yo use another flash so who to declare that plz... 

  • Hi Pradeep,

    You can link .text into multiple sections by using the >> operator and OR'ing the sections together using |.  Try doing something like this:

    .text :>> flasha | flashb | flashc

    You can learn more about this in the assembly language tools user guide.

    Trey

  • If you want complete control over which Flash sections you want to write / not write and you don't foresee a change in processor, then you can try combining 2 or more sections into one large section. However Trey's method is cleaner and easier for upgrades to other processors.

    Here is the Wiki link with the two methods listed.

  • thanks for reply, 
    i have one more query i m getting error like
    1) Description Resource Path Location Type
    program will not fit into available memory. placement with alignment/blocking fails for section ".econst" size 0x100 page 0.  Available memory ranges: FLASHA       size: 0x3f80       unused: 0x2c         max hole: 0x2c .econst             : > FLASHA,     PAGE = 0 F28069.cmd /Example_2806xEPwmUpDownAQ line 145 C/C++ Problem
    2) Description Resource Path Location Type
    program will not fit into available memory. placement with alignment/blocking fails for section ".switch" size 0x21c page 0.  Available memory ranges: F28069.cmd /Example_2806xEPwmUpDownAQ line 146 C/C++ Problem
     
    pl..... help me to solve  above errors.......................... 

     

  • Pradeep,

    These errors mean that these sections (.econst and .switch) won't fit in the memory you have allocated them to.  You'll need to put these in a different memory section.

    Trey

  • thanks for reply trey,

    i tried in this ways like FLASHA | fLASHH &  : {*(.text)} >>FLASHA | fLASHH but still i m getting same problem. more over i m getting same problem for .text also.

    if any other way of declaration is available pl inform me...........

    thanks and waiting for urs reply....

     

  • thanks for reply SBhushan,

    i cant use 1st method but i have  tried in 2nd method in wiki but still its not working properly