With a real GBA game in slot2 and your M3/R4 in slot1, boot your DS to the flashcarts menu screen, select "boot slot2". When the GBA game loads, it will have the "GBA frame" around the edge of the GBA game that used to be black.
Essentially, it will fill the empty border that GBA games always have.