|
Solved my own problem. Here are the details for those that need to know:
The example project files for downloadable applications are all setup for the 512KB parts.
The parts of RAM that are used by these apps, where the definition is and what to change for 256K parts is:
CODE: start 0x40003000 defined in ...firmware\common\fx3.ld stays the same
DATA: start 0x40030000 defined in ...firmware\common\fx3.ld changes to 0x40020000 (2 places)
HEAP: start 0x40038000 defined in cyfxtx.c in the project directory changes to 0x40028000
A define CY_U3P_SYS_MEM_TOP sets the top of RAM and needs to change from 0x40078000 to 0x40040000.
DMA BUFFERS location and size are automatically calcluated from the above settings based on what is left over.
These changes give the following size for the various sections:
CODE length 0x1D000 (116K)
DATA length 0x8000 (32K)
HEAP length 0x8000 (32K)
DMA BUFFERs length 0x10000 (64K)
Now your only job is to make everything fit inside those limits or move them around again to make it fit!
|