#53927 - falvarez - Tue Sep 13, 2005 2:59 pm
Hello.
I'm trying to play some sound on the GBA.I've exported PCM data to an array and put into a C file.
Player is working well while the array is little. But when I try to play a bigger file, I get this error linking:
/c/devkitPro/devkitARM/bin/arm-elf-gcc sounds.c -I. -I/c/devkitPro/devkitARM/arm-elf/include -I/c/devkitPro/devkitARM/include -I./inc -c -g -O2 -Wall -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer -ffast-math -mthumb -mthumb-interwork
/c/devkitPro/devkitARM/bin/arm-elf-gcc -o player.elf player.o graficos.o irq_handler.o irq.o keyboard.o sprites.o mapper.o rooms.o sounds.o -mthumb -mthumb-interwork -specs=/c/devkitPro/devkitARM/arm-elf/lib/gba_mb.specs -L/c/devkitPro/devkitARM/arm-elf/lib/interwork -L/c/devkitPro/devkitARM/lib
/c/devkitPro/devkitARM/bin/../lib/gcc/arm-elf/3.4.4/../../../../arm-elf/bin/ld: region ewram is full (player.elf section .rodata)
/c/devkitPro/devkitARM/bin/../lib/gcc/arm-elf/3.4.4/../../../../arm-elf/bin/ld: section .ctors [02000000 -> 02000007] overlaps section .init [02000000 -> 02000233]
/c/devkitPro/devkitARM/bin/../lib/gcc/arm-elf/3.4.4/../../../../arm-elf/bin/ld: section .dtors [02000008 -> 0200000f] overlaps section .init [02000000 -> 02000233]
/c/devkitPro/devkitARM/bin/../lib/gcc/arm-elf/3.4.4/../../../../arm-elf/bin/ld: section .jcr [02000010 -> 02000013] overlaps section .init [02000000 -> 02000233]
/c/devkitPro/devkitARM/bin/../lib/gcc/arm-elf/3.4.4/../../../../arm-elf/bin/ld: section .eh_frame [02000014 -> 02000017] overlaps section .init [02000000 -> 02000233]
/c/devkitPro/devkitARM/bin/../lib/gcc/arm-elf/3.4.4/../../../../arm-elf/bin/ld: section .iwram [02000018 -> 02000127] overlaps section .init [02000000 -> 02000233]
/c/devkitPro/devkitARM/bin/../lib/gcc/arm-elf/3.4.4/../../../../arm-elf/bin/ld: section .data [02000128 -> 02000b37] overlaps section .init [02000000 -> 02000233]
I've defined the array like this:
const u8 pcmdata[65536] = { ..... };
How can I manage to store this "raw" data in the ROM or another region with more free space?
Thanks in advance.
I'm trying to play some sound on the GBA.I've exported PCM data to an array and put into a C file.
Player is working well while the array is little. But when I try to play a bigger file, I get this error linking:
/c/devkitPro/devkitARM/bin/arm-elf-gcc sounds.c -I. -I/c/devkitPro/devkitARM/arm-elf/include -I/c/devkitPro/devkitARM/include -I./inc -c -g -O2 -Wall -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer -ffast-math -mthumb -mthumb-interwork
/c/devkitPro/devkitARM/bin/arm-elf-gcc -o player.elf player.o graficos.o irq_handler.o irq.o keyboard.o sprites.o mapper.o rooms.o sounds.o -mthumb -mthumb-interwork -specs=/c/devkitPro/devkitARM/arm-elf/lib/gba_mb.specs -L/c/devkitPro/devkitARM/arm-elf/lib/interwork -L/c/devkitPro/devkitARM/lib
/c/devkitPro/devkitARM/bin/../lib/gcc/arm-elf/3.4.4/../../../../arm-elf/bin/ld: region ewram is full (player.elf section .rodata)
/c/devkitPro/devkitARM/bin/../lib/gcc/arm-elf/3.4.4/../../../../arm-elf/bin/ld: section .ctors [02000000 -> 02000007] overlaps section .init [02000000 -> 02000233]
/c/devkitPro/devkitARM/bin/../lib/gcc/arm-elf/3.4.4/../../../../arm-elf/bin/ld: section .dtors [02000008 -> 0200000f] overlaps section .init [02000000 -> 02000233]
/c/devkitPro/devkitARM/bin/../lib/gcc/arm-elf/3.4.4/../../../../arm-elf/bin/ld: section .jcr [02000010 -> 02000013] overlaps section .init [02000000 -> 02000233]
/c/devkitPro/devkitARM/bin/../lib/gcc/arm-elf/3.4.4/../../../../arm-elf/bin/ld: section .eh_frame [02000014 -> 02000017] overlaps section .init [02000000 -> 02000233]
/c/devkitPro/devkitARM/bin/../lib/gcc/arm-elf/3.4.4/../../../../arm-elf/bin/ld: section .iwram [02000018 -> 02000127] overlaps section .init [02000000 -> 02000233]
/c/devkitPro/devkitARM/bin/../lib/gcc/arm-elf/3.4.4/../../../../arm-elf/bin/ld: section .data [02000128 -> 02000b37] overlaps section .init [02000000 -> 02000233]
I've defined the array like this:
const u8 pcmdata[65536] = { ..... };
How can I manage to store this "raw" data in the ROM or another region with more free space?
Thanks in advance.