Forum Discussion
Altera_Forum
Honored Contributor
21 years agoI’m surprised that you didn’t get an error when you tried to link this application, but the numbers you give at the bottom explain the problem. You can’t boot 25K’s worth of code & data out of a 24K memory. You will need to either increase the size of the memory, or reduce the size of your code.
One option that may help is that you can select small footprint drivers. If you still want to use the CFI flash driver in this case, you can do so by adding the define ALT_USE_CFI_FLASH to the list of defined symbols for the system library project. This is done on the C/C++ Build tab of the properties page. In your particular case, this may not make much of a difference since you don’t seem to have any other effected devices in the system – but it may be worth a go. I don't know if you've already done this, but you should also add the define: ALT_NO_INSTRUCTION_EMULATION. This will remove the software emulation of multiply and divide instructions. This emulation is generally not needed for HAL based applications, since the apropriate compiler flags are set to ensure multiply and divide instructions are not used when they're not available.