- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Jayakrishna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Jayakrishna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks! its working now .
I want to know how to see the consumed memory after build the project?
Thanks & Regards
S. Ravi Chandrika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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
Jayakrishna