I use BF518, VisualDSP++ 5.0.
I debug a code, and there are two wrong.
How can I slove it?
First - regarding the li1040 error - this is very command and, put simply, indicates that you are trying to put too much code/data into a memory segment that cannot hold that much.
There are two options you should ensure are enabled to minimise the occurrence of such an error. Go to 'Project: Project Options: Link'. Under "Elimination", enable the option to "Eliminate unused objects". Additionally, under 'General', enable the option to "Individually map functions and data items".
You may find that your project builds when you enable these options. If not, however, you need to take steps to move code into other memory sections - perhaps even using SDRAM if your code is too large for internal memory.
I recommend searching the EngineerZone on the li1040 error, as it is one that I have answered quite extensively on a few occasions. If you need to use SDRAM, here is a brief overview of what you would need to do:
First, your LDF does not define any SDRAM. Go to "Project Options: LDF Settings: External Memory". Enable the option to "Use external memory (SDRAM)", and your LDF will be regenerated by the tools. This will likely be enough to get your application to build.
If you want to force specific functions from your code into SDRAM, it would then be as simple as using the 'section' pragma, for example:
The LDF contains commands that map code marked in this way, as "sdram0", into external memory SDRAM bank 0.
They are my output's files.
I want to put the external code into sdram_bank0, how can I do?
Retrieving data ...