FX3S-MEMORY RELATED ISSUES

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
rasu_4591691
Level 2
Level 2

Hi,

I am using PACTRON'S FX3S FPGA Dev Board REV-C and cypress EZ-USB SUITE. My question is

1.How to see the consumed memory after build the project?

2.If I build the code this error occurred  region `DATA' overflowed by 12156 bytes. `.bss' will not fit in region `DATA' .So I change the fx3.ld file and I update the CY_U3P_MEM_HEAP_BASE in cyfxtx.c file. In fx3.ld file I update sys_mem and data like this:

     MEMORY

     {

      I-TCM : ORIGIN = 0x100 LENGTH = 0x3F00

      SYS_MEM : ORIGIN = 0x40003000 LENGTH = 0x2D000

      DATA : ORIGIN = 0x40030000 LENGTH = 0x8000

     }     

But still the error occurs. So what I should do to solve the error?

Thanks & Regards

S. Ravi Chandrika

0 Likes
1 Solution
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

Please try changing the Length of DATA from 0x8000 to 0xC000. i.e

DATA : ORIGIN = 0x40030000 LENGTH = 0xC000

After this, adjust the CY_U3P_MEM_HEAP_BASE accordingly.

Best Regards,

Jayakrishna

Best Regards,
Jayakrishna

View solution in original post

0 Likes
3 Replies
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

Please try changing the Length of DATA from 0x8000 to 0xC000. i.e

DATA : ORIGIN = 0x40030000 LENGTH = 0xC000

After this, adjust the CY_U3P_MEM_HEAP_BASE accordingly.

Best Regards,

Jayakrishna

Best Regards,
Jayakrishna
0 Likes

Thanks! its working now .

I want to know how to see the consumed memory after build the project?

Thanks & Regards

S. Ravi Chandrika

0 Likes

Hello,

The code area used by the application will be same as the size of the image file obtained after building the project.

The data and bss region used by the application  can be found from the .map file which will be found in the debug drop down which is available under the project in project explorer in EZ USB suite. For the project below, it will be in GpifToUsb.map.

pastedImage_3.png

The heap area is allocated at run time.

The DMA buffer area used can be found by adding the total size of all DMA buffers associated with all the DMA channels used in the application.

Best Regards,

Jayakrishna

Best Regards,
Jayakrishna
0 Likes