Hola
Continuando con mi proyecto, me he topado con un error q aun no habia visto,
ewram is full!!Os explico, tengo una clase llamada play, dentro creo 4 vectores de punteros a imagenes de 16 bits, luego creo otro vector donde almaceno esos vectores de punteros... hasta ahi bien, lo compilo y lo ejecuto... vale todo va bien... ahora hago un bucle para todos los stages y le paso un bloque de punteros a cad a stage, para q el ya se apañe kon lo q tenga q hacer.
El caso esque con ese bucle, no me compila bien...
Mirad el codigo y luego el error q os digo:
Play::Play(Player *player)
{
this->player = player;
const unsigned short *imagesTemples[IMAGES*MODS] = {IMG_1_Bitmap, MOD_1_1_Bitmap, MOD_1_2_Bitmap,MOD_1_3_Bitmap,
IMG_2_Bitmap, MOD_2_1_Bitmap, MOD_2_2_Bitmap,MOD_2_3_Bitmap,
IMG_3_Bitmap, MOD_3_1_Bitmap, MOD_3_2_Bitmap,MOD_3_3_Bitmap,
IMG_4_Bitmap, MOD_4_1_Bitmap, MOD_4_2_Bitmap,MOD_4_3_Bitmap,
IMG_5_Bitmap, MOD_5_1_Bitmap, MOD_5_2_Bitmap,MOD_5_3_Bitmap,
IMG_6_Bitmap, MOD_6_1_Bitmap, MOD_6_2_Bitmap,MOD_6_3_Bitmap,
IMG_7_Bitmap, MOD_7_1_Bitmap, MOD_7_2_Bitmap,MOD_7_3_Bitmap,
IMG_8_Bitmap, MOD_8_1_Bitmap, MOD_8_2_Bitmap,MOD_8_3_Bitmap,
IMG_9_Bitmap, MOD_9_1_Bitmap, MOD_9_2_Bitmap,MOD_9_3_Bitmap,
IMG_10_Bitmap,MOD_10_1_Bitmap,MOD_10_2_Bitmap,MOD_10_3_Bitmap};
const unsigned short *imagesAnfores[IMAGES*MODS] ={IMG_1_Bitmap, MOD_1_1_Bitmap, MOD_1_2_Bitmap,MOD_1_3_Bitmap,
IMG_2_Bitmap, MOD_2_1_Bitmap, MOD_2_2_Bitmap,MOD_2_3_Bitmap,
IMG_3_Bitmap, MOD_3_1_Bitmap, MOD_3_2_Bitmap,MOD_3_3_Bitmap,
IMG_4_Bitmap, MOD_4_1_Bitmap, MOD_4_2_Bitmap,MOD_4_3_Bitmap,
IMG_5_Bitmap, MOD_5_1_Bitmap, MOD_5_2_Bitmap,MOD_5_3_Bitmap,
IMG_6_Bitmap, MOD_6_1_Bitmap, MOD_6_2_Bitmap,MOD_6_3_Bitmap,
IMG_7_Bitmap, MOD_7_1_Bitmap, MOD_7_2_Bitmap,MOD_7_3_Bitmap,
IMG_8_Bitmap, MOD_8_1_Bitmap, MOD_8_2_Bitmap,MOD_8_3_Bitmap,
IMG_9_Bitmap, MOD_9_1_Bitmap, MOD_9_2_Bitmap,MOD_9_3_Bitmap,
IMG_10_Bitmap,MOD_10_1_Bitmap,MOD_10_2_Bitmap,MOD_10_3_Bitmap};
const unsigned short *imagesMitologia[IMAGES*MODS]={IMG_1_Bitmap, MOD_1_1_Bitmap, MOD_1_2_Bitmap,MOD_1_3_Bitmap,
IMG_2_Bitmap, MOD_2_1_Bitmap, MOD_2_2_Bitmap,MOD_2_3_Bitmap,
IMG_3_Bitmap, MOD_3_1_Bitmap, MOD_3_2_Bitmap,MOD_3_3_Bitmap,
IMG_4_Bitmap, MOD_4_1_Bitmap, MOD_4_2_Bitmap,MOD_4_3_Bitmap,
IMG_5_Bitmap, MOD_5_1_Bitmap, MOD_5_2_Bitmap,MOD_5_3_Bitmap,
IMG_6_Bitmap, MOD_6_1_Bitmap, MOD_6_2_Bitmap,MOD_6_3_Bitmap,
IMG_7_Bitmap, MOD_7_1_Bitmap, MOD_7_2_Bitmap,MOD_7_3_Bitmap,
IMG_8_Bitmap, MOD_8_1_Bitmap, MOD_8_2_Bitmap,MOD_8_3_Bitmap,
IMG_9_Bitmap, MOD_9_1_Bitmap, MOD_9_2_Bitmap,MOD_9_3_Bitmap,
IMG_10_Bitmap,MOD_10_1_Bitmap,MOD_10_2_Bitmap,MOD_10_3_Bitmap};
const unsigned short *imagesDeus[IMAGES*MODS] = { IMG_1_Bitmap, MOD_1_1_Bitmap, MOD_1_2_Bitmap,MOD_1_3_Bitmap,
IMG_2_Bitmap, MOD_2_1_Bitmap, MOD_2_2_Bitmap,MOD_2_3_Bitmap,
IMG_3_Bitmap, MOD_3_1_Bitmap, MOD_3_2_Bitmap,MOD_3_3_Bitmap,
IMG_4_Bitmap, MOD_4_1_Bitmap, MOD_4_2_Bitmap,MOD_4_3_Bitmap,
IMG_5_Bitmap, MOD_5_1_Bitmap, MOD_5_2_Bitmap,MOD_5_3_Bitmap,
IMG_6_Bitmap, MOD_6_1_Bitmap, MOD_6_2_Bitmap,MOD_6_3_Bitmap,
IMG_7_Bitmap, MOD_7_1_Bitmap, MOD_7_2_Bitmap,MOD_7_3_Bitmap,
IMG_8_Bitmap, MOD_8_1_Bitmap, MOD_8_2_Bitmap,MOD_8_3_Bitmap,
IMG_9_Bitmap, MOD_9_1_Bitmap, MOD_9_2_Bitmap,MOD_9_3_Bitmap,
IMG_10_Bitmap,MOD_10_1_Bitmap,MOD_10_2_Bitmap,MOD_10_3_Bitmap};
const unsigned short **images[STAGES]={imagesTemples,imagesAnfores,imagesMitologia,imagesDeus};
//aqui es donde peta!!!!!
for(u8 i=0;i<STAGES;i++){
stages[i] = new Stage(player,i,images[i]);
stages[i]->init();
delete stages[i];
}
}
El error es el siguiente:
1>c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.2/../../../../arm-eabi/bin/ld.exe: region ewram is full (build.elf section .rodata)
1>c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.2/../../../../arm-eabi/bin/ld.exe: section .init [02000000 -> 020002e7] overlaps section .ARM.extab [02000000 -> 020003af]
1>c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.2/../../../../arm-eabi/bin/ld.exe: section .ARM.exidx [020003b0 -> 02001427] overlaps section .text [020002f0 -> 0202991b]
1>c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.2/../../../../arm-eabi/bin/ld.exe: section .fini [0202991c -> 02029933] overlaps section .bss [0200239c -> 0203966b]
1>c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.2/../../../../arm-eabi/bin/ld.exe: build.elf: section .ARM.extab lma 0x2000000 overlaps previous sections
1>c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.2/../../../../arm-eabi/bin/ld.exe: build.elf: section .text lma 0x20002f0 overlaps previous sections
1>c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.2/../../../../arm-eabi/bin/ld.exe: build.elf: section .ARM.exidx lma 0x20003b0 overlaps previous sections
1>c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.2/../../../../arm-eabi/bin/ld.exe: build.elf: section .init_array lma 0x2001428 overlaps previous sections
1>c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.2/../../../../arm-eabi/bin/ld.exe: build.elf: section .fini_array lma 0x200142c overlaps previous sections
1>c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.2/../../../../arm-eabi/bin/ld.exe: build.elf: section .eh_frame lma 0x2001430 overlaps previous sections
1>c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.2/../../../../arm-eabi/bin/ld.exe: build.elf: section .jcr lma 0x2001434 overlaps previous sections
1>c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.2/../../../../arm-eabi/bin/ld.exe: build.elf: section .data lma 0x2001438 overlaps previous sections
1>collect2: ld returned 1 exit status
Tambien deciros que si pongo hasta 6 images si q funciona, xo hasta 10 no...
ALGUNA AYUDA¿???¿¿? si estoy excediendome al hardware d la nds q deberia hacer para programar algo asi??
Feliz navidad a todos