hi there,
i have some large arrays like this:
uint8_t spKETTENFETT[715] = {0xe9,0x6f,0xae,0x93,0x3d,0x6a,0xae,0xbf,0xf9,0x4a,0xd3,0x68,0x78,0xfe,0x6e,0xdb,0x5d,0xa2,0xd6,0xfa,0xbb,0x69,0x73,0x89,
0x4a,0xe9,0xaf,0x36,0x24,0x34,0x43,0xa3,0x3f,0x2b,0xe7,0x34,0xb7,0xac,0xfe,0x52,0x5e,0xaa,0xd4,0x1a,0x01,0x16,0xfb,0x44,0xc0,0x37,0xb5,0x08,0xf8,0x36,
0x37,0xfc,0x13,0x44,0x44,0xea,0xc2,0xf2,0x47,0x95,0x19,0x9a,0xaf,0xc7,0x5f,0x79,0x86,0xa9,0xaf,0x2a,0x7f,0xa5,0x99,0x22,0xbe,0x29,0xfd,0x0d,0x59,0x2b,
0xfb,0xa6,0xf4,0x57,0x64,0xad,0x12,0x9b,0xda,0x5f,0x59,0x86,0x88,0xad,0x5a,0x7f,0xe3,0x19,0x26,0xba,0x6a,0xfd,0x03,0x87,0x47,0xc8,0xea,0xf6,0x37,0x90,
0x19,0x29,0xab,0xca,0x9f,0x61,0x67,0x86,0x2e,0x74,0x7f,0x20,0x95,0x1d,0xba,0x90,0x00,0x9f,0xaa,0x31,0xe0,0x9b,0xf4,0xf2,0x0f,0xcb,0x18,0xd5,0xb5,0xda,
0x3f,0xbc,0xa0,0x4e,0x2f,0x6a,0xff,0x70,0x82,0x36,0xbd,0x28,0xfd,0x8d,0x2b,0xd5,0xd4,0x22,0x02,0x1c,0x31,0x86,0x80,0xaf,0xf6,0x10,0xf0,0xd5,0x1c,0x02,
0x7e,0xf4,0x00,0xf4,0x67,0xea,0x1c,0x6e,0x49,0xd2,0xdf,0x15,0xb3,0x6e,0xce,0x6a,0xff,0xb4,0x82,0xb4,0xf5,0xc8,0x01,0xd3,0x2b,0x1a,0x60,0x7a,0x41,0xf3,
0x0f,0x43,0x68,0x57,0x23,0xd1,0x9f,0x28,0xfb,0xb5,0xc6,0x26,0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,0xd8,0x9b,0xf4,0x0f,0x2f,0x22,0xe3,0x8b,0xc3,0x3f,0x82,0x31,0x4e,0x2c,0x36,0xff,0x88,0x8a,0xb4,0xb9,0x58,0xfc,0xdd,0x31,0xda,0xe7,0x22,0xf4,
0x07,0xea,0xbe,0x67,0x8e,0x11,0xf0,0xad,0x17,0x01,0xbe,0x99,0x41,0xc0,0xd5,0x3b,0x08,0x38,0xfa,0x86,0xfc,0xc3,0xbf,0xb3,0xa4,0x5b,0x00,0x00,0x00,0x00,
0x78};
uint8_t spZUCKER[122] = {0x08,0x58,0xaa,0x0d,0xc8,0x3f,0x5c,0x7b,0x66,0xd8,0x21,0xff,0x0c,0x1d,0x91,0x61,0xc7,0x00,0xd3,0x77,0xb8,0x7f,0xfa,0x4e,0x8f,0x48,
0x52,0xfe,0xac,0x5c,0x35,0xc3,0xf1,0xf8,0x6d,0x2e,0xf1,0x2a,0x39,0xed,0xb7,0x2d,0xc4,0x3b,0x15,0x9b,0x5f,0x77,0x93,0x68,0x57,0x64,0xfe,0xd6,0xdd,0x33,
0x35,0x71,0xf9,0xfb,0x8d,0x08,0xf3,0x24,0xed,0x6f,0x89,0x54,0x2a,0x62,0xad,0x3f,0x3a,0x0b,0x6f,0x96,0x73,0xfe,0x14,0x2c,0x62,0xd8,0xf1,0xf9,0x53,0x34,
0xcf,0x16,0xc5,0xeb,0x4f,0xd1,0x2c,0x5b,0x14,0x8f,0x3f,0x7a,0xd7,0x68,0xb2,0x1d,0xfe,0xe4,0x5c,0xbc,0xd4,0x89,0xf8,0x8b,0x0f,0x91,0x56,0xc7,0xe8,0xef,
0xa9,0x5d,0xd6,0x33,0xc3,0x03};
uint8_t *words[2] = {spKETTENFETT, spZUCKER};
and i adress them via the words pointer. this all works beautifully.
currently this all resides in my local data of the object.
my two questions are:
1) how do i force those arrays into sdram? i tried using attribute ((section (".sdram"))) but i always get an fpermissive error... if somebody could guide me here that would be great. i still need to be able to point to those arrays with the words pointer.
2) is there a way to put those arrays into a separate object and access the data from the main object? i would put all the arrays and the words pointer into the separate object.