This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Program will not fit into available memory when combining idle profile and camera application

Hi all, I try to combine the code sample of idle profile together with camera. But the camera_app.c code is too big and causing not enough memory space. Anyone has idea on how to fix this or reduce the code size of camera_app.c?

The memory allocation in my cmd file is as following:

MEMORY
{
/* Application uses internal RAM for program and data */
SRAM_CODE (RWX) : origin = 0x20004000, length = 0x12FFF
SRAM_DATA (RWX) : origin = 0x20017000, length = 0x19000
}

Also with: --retain=g_pfnVectors

Thanks!