Ji junli

DSP56F801 : how to locate a long array in flash?

Discussion created by Ji junli on Sep 7, 2006
Latest reply on Oct 10, 2009 by Dinesh Dhiman
I am programming for DSP56F801 and want to define a long array, as following:
uchar program_content1[]={0x8B,0x89,0x9E,0xFE,0x05,0xF6,0xAF,0x01,0x9E,0xFF,0x05,0x88,0x8A,0x81,0xA7,0xFC,0xC6,0xC0,0x85,0x4C,0x95,0xE7,0x01,0xC6,0xC0,0x84,0x4C,0xF7,0x32,0xC0,0x86,0x20,
                          0x1F,0x89,0x8B,0xF6,0x87,0xE6,0x02,0x4C,0x9E,0xE7,0x06,0xE6,0x03,0xEE,0x01,0x8A,0x4C,0x20,0x03,0x7F,0xAF,0x01,0x4B,0xFB,0x9E,0x6B,0x05,0xF7,0x8A,0x88,0xAF,0x04,
                          0x9E,0x6B,0x02,0xDD,0x9E,0x6B,0x01,0xD9,0x32,0xC0,0x88,0x89,0x8B,0xAD,0xB1,0x97,0x4C,0x9E,0xE7,0x03,0xAD,0xAA,0x4C,0x9E,0xE7,0x04,0x4A,0x26,0x03,0x51,0x00,0x18,
                          0xAD,0x9E,0x87,0x8A,0xAD,0x9A,0x97,0x20,0x05,0xAD,0x95,0xF7,0xAF,0x01,0x9E,0x6B,0x04,0xF7,0x9E,0x6B,0x03,0xF3,0x20,0xD5,0xA7,0x06,0x81,0x45,0x01,0x50,0x94,0xAD,
                          0x8D,0xCC,0xC0,0x92,0x00,0x00,0xC0,0x8A,0xC1,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0xB6,0x13,0xA4,0xFD,0xAA,0x01,0xB7,0x13,0x3F,0x02,0x3F,0x06,
                          0xB6,0x0A,0xA4,0x80,0xB7,0x0A,0xB6,0x0E,0xA4,0xE4,0xB7,0x0E,0xB6,0x12,0xA4,0xC0,0xB7,0x12,0xB6,0x46,0xA4,0xF8,0xB7,0x46,0xCD,0xC0,0xE3,0xA6,0x48,0xCD,0xC0,0xFB,
                          0xA6,0x65,0xCD,0xC0,0xFB,0xA6,0x6C,0xCD,0xC0,0xFB,0xA6,0x6C,0xCD,0xC0,0xFB,0xA6,0x6F,0xCD,0xC0,0xFB,0xA6,0x21,0xCD,0xC0,0xFB,0xA6,0x0A,0xCD,0xC0,0xFB,0xC7,0x18,
                          0x00,0x20,0xFB,0x3F,0x1A,0x3F,0x1E,0x3F,0x1B,0x3F,0x18,0x6E,0x1A,0x19,0xB6,0x1E,0xAA,0x0F,0xB7,0x1E,0xB6,0x1B,0xAA,0x2C,0xB7,0x1B,0x81,0x0F,0x1C,0x02,0xB7,0x1F,
                          0x16,0x1B,0x81,0x00,0x00};
when I compile, but display as below:
Link Error: Segment overflow .x_internal_RAM
                  Reserved size is 0x000003c0 --overflow 0x0000009f
 
but  I need this array, so i want to locate this arrray into program flash.
how can i do?
 
thanks & best regards
Ji

Message Edited by CrasyCat on 2007-04-13 02:18 PM

Outcomes