Forums - extend heap memory size

2 posts / 0 new
Last post
extend heap memory size
helen_chien
Join Date: 28 Jun 20
Posts: 1
Posted: Thu, 2020-10-29 03:33

Hi ,

I use QCA4020 eval board with Hello World project to extend heap size.

My plan is that  I move "RAM_FOM_APPS_RO_MEMORY" 128K to "RAM_FOM_APPS_DATA_MEMORY" with no adding "RAM_FOM_APPS_DATA_MEMORY" size.

Therefore , I follow " QCA402x(CDB2x) Programmer's Guide 80-YA121-142 Rev.D 11/20, 2018 " , section 4.3.4 "Resize application memory" instruction :

1. modify DefaultTemplateLinkerScript.ld :

   change

RAM_FOM_APPS_RO_MEMORY (Rx) : ORIGIN = 0x10046000, LENGTH = 0x3a000
RAM_FOM_APPS_DATA_MEMORY (W) : ORIGIN = 0x10080000, LENGTH = 0x10000

   to

RAM_FOM_APPS_RO_MEMORY (Rx) : ORIGIN = 0x10046000, LENGTH = 0x1a000
RAM_FOM_APPS_DATA_MEMORY (W) : ORIGIN = 0x10060000, LENGTH = 0x10000   // I keep length to 0x10000

2.. modify DevCfg_master_devcfg_out.xml :

  change

<!-- FOM Code and Data region = --> 0x00, 0x00, 0x00, 0x10,  0x00, 0x00, 0x10, 0x00, 0x02, 0xF1, 0x06, 0x00,

  to

<!-- FOM Code and Data region = --> 0x00, 0x00, 0x00, 0x10,  0x00, 0x00, 0x10, 0x00, 0x02, 0xF9, 0x06, 0x00,

------------------------------------------------------------------------------

After modifying these change, i finish building the code.

However, qca4020 demo board couldn't run this image....

I have been troubled for some time of this problem

Could you help me to figure out what step i have wrong?

Thank you so much

  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Mon, 2020-11-09 14:27

2.. modify DevCfg_master_devcfg_out.xml  // This is used for default QCA402x EVK board

Kindly Modify DevCfg_master_devcfg_out_cdb.xml   // for CDB2x device

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.