i.MX7 DUAL Cortex-M4 MEMORY ISSUE

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX7 DUAL Cortex-M4 MEMORY ISSUE

1,600 Views
raviranjankumar
Contributor III

Hi all,

I am working on i.MX7 Dual board (Cortex M4 running with FreeRTOS). When I am compiling my application. It is showing like

Error[Lp011]: section placement failed

      unable to allocate space for sections/blocks with a total estimated minimum size of 0xEF62 bytes

(max align 0x4) in <[0x20000000-0x200077ff], [0x1fff8240-0x1fffffff]>(total uncommited space 0x7DC0).

Error[Lp011]: section placement failed

      unable to allocate space for sections/blocks with a total estimated minimum size of 0xCF9C bytes

(max align 0x4) in <[0x20000000-0x200077ff]>(total uncommited space 0x7800).

I am using IAR Workbench. I tried to increase memory size in linker file but didnt work. default addresses are in tcm linker file are

define symbol m_interrupts_start = 0x1FFF8000;
define symbol m_interrupts_end = 0x1FFF823F;

define symbol m_text_start = 0x1FFF8240;
define symbol m_text_end = 0x1FFFFFFF;

define symbol m_data_start = 0x20000000;
define symbol m_data_end = 0x20007FFF;

And one more question, can I debug this board with given JTAG port. if yes then please provide the procedure.

Please help me. 

Regards,

Ravi Ranjan Kumar.

0 Kudos
5 Replies

1,381 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ravi

for m4 memory usage one can look at AN5317 Loading Code on Cortex-M4

from Linux for the i.MX 6SoloX and i.MX7Dual/7Solo 

https://www.nxp.com/docs/en/application-note/AN5317.pdf 

Debugging with jtag is described in sect.7 Debugging Application with Trace32 Debugger

attached Getting Started with FreeRTOS BSP for i.MX7Dual.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,381 Views
raviranjankumar
Contributor III

Hi,

Thanks for your reply. In document, for every linker file size is only 32KB. If my application size is more than 32KB then

What should I do?

Can I run application more than 32kb, (RAM size is given 256kb).

Regards,

Ravi Ranjan.

0 Kudos

1,381 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ravi

for iar this may be due to code size limitations for its evaluation trials

IAR Embedded Workbench 


Best regards
igor

0 Kudos

1,381 Views
raviranjankumar
Contributor III

Hi,

I am using IAR license full version. So no problem with that. Actually my application size is more.

I came to know that I can increase OCRAM size in linker  file up to 128kb. But when I am changing address, code is not running. can you help with text and data address for 128kb.

m_interrupts_start = 0x20210000;
m_interrupts_end = 0x2721023F;

m_text_start         = 0x20210240;
m_text_end          = 0x2F217FFF;

m_data_start        = 0x20000000;
m_data_end         = 0x200A7FFF;

And if I will increase OCRAM size then how it will effect. like any limitations.

Regards,

Ravi Ranjan

0 Kudos

1,381 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ravi

one can check iar linker manual for linker errors description and if this will not help
apply to iar tech support, as this is specific iar linker problem.
http://supp.iar.com/FilesPublic/UPDINFO/007218/xlink.ENU.pdf

IAR Technical Support 

Best regards
igor

0 Kudos