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.

compiler error message problem?

Hi, everybody :

 I have some question about CCSv3.3 compiler error message. When I put in my Algorithm and compile it.

I can't pass this code and the error message is : 

error: can't allocate .far, size 1054094c (page 0) in DDR2 (avail:
            08000000)

error: errors in input - ./Debug/video_preview.out not built

I can't solve this problem. Please everybody help me to solve this problem.

 

best regards

Jerry

 

  • You are declaring memory that is too big to fit in your declared space.  If you check your linker command file (look for a .cmd file in your project file view in CCS) then you will see how much memory you have declared for DDR2.  In this case you have 128 MB, which sounds reasonable.  But your "far" section, which is typically where arrays and structures are placed, is gigantic: ~260 MB!  You need to get more DDR2 or declare less memory.  You can check your map file in the "debug" directory to see which objects are eating up the most memory.