Search found 3 matches

by g012
Sun Jan 03, 2016 12:56 pm
Forum: GBA Development
Topic: GBA Overlay sections [Solution]
Replies: 1
Views: 11170

GBA Overlay sections [Solution]

Hi, I create a new topic since the previous one hasn't been approved yet. I've managed to get overlays working by changing the linkscript: Old: __iwram_overlay_end = . ; __ewram_lma = __iwram_overlay_lma + (__iwram_overlay_end - __iwram_overlay_start) ; New: __iwram_overlay_size = __load_stop_iwram0 ...
by g012
Sun Jan 03, 2016 1:11 am
Forum: GBA Development
Topic: GBA Overlay sections [Solution]
Replies: 1
Views: 11170

GBA Overlay sections

Hello, I'm trying to use overlay sections. However when I do so, it seems the .pad section doesn't count them and overlaps them. Here's what I get in the map file: .iwram0 0x030036ac 0x24 load address 0x080ca818 *(.iwram0) .iwram0 0x030036ac 0x14 t_overlay.thumb.o 0x030036ac Overlay0 .iwram0.__stub ...
by g012
Sat Mar 07, 2015 8:28 pm
Forum: GBA Development
Topic: Section Type Conflict IWRAM data + code
Replies: 1
Views: 8986

Section Type Conflict IWRAM data + code

Hello, How should I go to put data and code in IWRAM ? I've done the following: IWRAM_DATA static u32 s_frameCount; IWRAM_CODE static void VBlank(void) { ++s_frameCount; } And I get: main.c:87:24: error: VBlank causes a section type conflict with s_frameCount IWRAM_CODE static void VBlank(void ...