GithubHelp home page GithubHelp logo

White screen about gba_vscode_basic HOT 4 CLOSED

jamiedstewart avatar jamiedstewart commented on August 16, 2024
White screen

from gba_vscode_basic.

Comments (4)

JamieDStewart avatar JamieDStewart commented on August 16, 2024

Hi I've not run this on a linux system, only tested on Mac and Windows. I'd imagine that the "linux" set up options in both launch.json and tasks.json would be similar to the Mac setup options.
I've not tried debugging with visualboyadvance, or retroarch mgba core. I know that mGBA versions after 0.6.2 dont work with the gdb debugging set up I'm using here.
Can you confirm that a gba rom is built? You should be able to simply build the gba file by following ctrl+shift+p and running the task 'make release'.
Could you build the rom that way and test?

from gba_vscode_basic.

tichun avatar tichun commented on August 16, 2024

Build is fine.
The problem is with main.c code - it just displays whitescreen, was it supposed to do so, though?
Tested even on an online emulator (http://endrift.github.io/gbajs/)
Every other demo I've thrown at it is fine. Tried both the prebuilt .gba from repo and building main.c

from gba_vscode_basic.

JamieDStewart avatar JamieDStewart commented on August 16, 2024

The code displays a full screen Serpinski style of visual effect that repeats every few pixels.
There is no pre-built GBA ROM in this repo?
When you are building this what is the output from the console that you receive?
I have tested this ROM image with the online emulator you linked and the version I have built under release works in this emulator as expected.

from gba_vscode_basic.

tichun avatar tichun commented on August 16, 2024

Build output

main.c
arm-none-eabi-gcc -MMD -MP -MF /home/tichun/Projects/GameBoy/build/main.d -g -Wall -O3 -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer -ffast-math -mthumb -mthumb-interwork -iquote /home/tichun/Projects/GameBoy/include -iquote /home/tichun/Projects/GameBoy/resources -I/opt/devkitpro/libgba/include -I/home/tichun/Projects/GameBoy/build -c /home/tichun/Projects/GameBoy/source/main.c -o main.o 
linking cartridge
built ... GameBoy.gba
ROM fixed!

ROM file hex (there is VS Code extension to view files as hex)


00000000: 2e00 00ea 24ff ae51 699a a221 3d84 820a  ....$..Qi..!=...
00000010: 84e4 09ad 1124 8b98 c081 7f21 a352 be19  .....$.....!.R..
00000020: 9309 ce20 1046 4a4a f827 31ec 58c7 e833  ... .FJJ.'1.X..3
00000030: 82e3 cebf 85f4 df94 ce4b 09c1 9456 8ac0  .........K...V..
00000040: 1372 a7fc 9f84 4d73 a3ca 9a61 5897 a327  .r....Ms...aX..'
00000050: fc03 9876 231d c761 0304 ae56 bf38 8400  ...v#..a...V.8..
00000060: 40a7 0efd ff52 fe03 6f95 30f1 97fb c085  @....R..o.0.....
00000070: 60d6 8025 a963 be03 014e 38e2 f9a2 34ff  `..%.c...N8...4.
00000080: bb3e 0344 7800 90cb 8811 3a94 65c0 7c63  .>.Dx.....:.e.|c
00000090: 87f0 3caf d625 e48b 380a ac72 21d4 f807  ..<..%..8..r!...
000000a0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000000b0: 3031 9600 0000 0000 0000 0000 00f0 0000  01..............
000000c0: 0600 00ea 0000 0000 0000 0000 0000 0000  ................
000000d0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000000e0: 0103 a0e3 0802 80e5 1200 a0e3 00f0 29e1  ..............).
000000f0: b8d0 9fe5 1f00 a0e3 00f0 29e1 b0d0 9fe5  ..........).....
00000100: 0100 8fe2 10ff 2fe1 2b48 4001 0bd2 7846  ....../[email protected]
00000110: 4001 0dd3 0222 1206 284b 9b1a 161c 9100  @...."..(K......
00000120: 00f0 3cf8 3047 4021 0903 c801 00f0 2bf8  ..<.0G@!......+.
00000130: 2348 2449 091a 00f0 26f8 2348 2349 091a  #H$I....&.#H#I..
00000140: 00f0 21f8 2249 234a 234c 00f0 26f8 2349  ..!."I#J#L..&.#I
00000150: 234a 244c 00f0 21f8 234a 2449 531a 02d0  #J$L..!.#J$IS...
00000160: 234a 00f0 1bf8 2349 234a 244c 00f0 15f8  #J....#I#J$L....
00000170: 2349 2448 0860 244b 00f0 0ef8 0020 0021  #I$H.`$K..... .!
00000180: 224b 00f0 09f8 0322 8918 9143 03d0 0022  "K....."...C..."
00000190: 04c0 0439 fcd1 7047 1847 a31a 0320 1b18  ...9..pG.G... ..
000001a0: 8343 03d0 01c9 01c2 043b fbd1 7047 c046  .C.......;..pG.F
000001b0: a07f 0003 007f 0003 0000 0008 0000 0002  ................
000001c0: 0000 0003 2000 0003 0000 0002 0000 0002  .... ...........
000001d0: b003 0008 2000 0003 2800 0003 b003 0008  .... ...(.......
000001e0: 0000 0003 0000 0003 b803 0008 b803 0008  ................
000001f0: 2800 0003 b803 0008 0000 0002 0000 0002  (...............
00000200: 1c00 0003 0000 0402 5103 0008 d502 0008  ........Q.......
00000210: f8b5 c046 f8bc 08bc 9e46 7047 0648 074b  ...F.....FpG.H.K
00000220: 10b5 8342 04d0 064b 002b 01d0 00f0 0af8  ...B...K.+......
00000230: 10bc 01bc 0047 c046 0000 0003 0000 0003  .....G.F........
00000240: 0000 0000 1847 c046 0848 0949 091a 8b10  .....G.F.H.I....
00000250: c90f c918 10b5 4910 04d0 064b 002b 01d0  ......I....K.+..
00000260: 00f0 0af8 10bc 01bc 0047 c046 0000 0003  .........G.F....
00000270: 0000 0003 0000 0000 1847 c046 10b5 084c  .........G.F...L
00000280: 2378 002b 09d1 fff7 c9ff 064b 002b 02d0  #x.+.......K.+..
00000290: 0548 00e0 00bf 0123 2370 10bc 01bc 0047  .H.....##p.....G
000002a0: 0000 0003 0000 0000 ac03 0008 064b 10b5  .............K..
000002b0: 002b 03d0 0549 0648 00e0 00bf fff7 c4ff  .+...I.H........
000002c0: 10bc 01bc 0047 c046 0000 0000 0400 0003  .....G.F........
000002d0: ac03 0008 f823 db01 f0b5 4e46 9946 f823  .....#....NF.F.#
000002e0: 9b00 4546 de46 5746 9846 1f23 e0b5 9c46  ..EF.FWF.F.#...F
000002f0: 0025 83b0 ae00 ae19 3604 330c 0193 c023  .%......6.3....#
00000300: db04 9a46 0024 6f00 7f19 5046 0021 0a00  ...F.$o...PF.!..
00000310: 4e46 2240 5319 9b02 1e40 b346 4646 d319  NF"@[email protected]..
00000320: 5b01 3340 5e46 3343 019e b346 6646 5a44  [.3@^F3C...FfFZD
00000330: 3240 1a43 0131 0280 0230 f029 e7d1 f023  [email protected].)...#
00000340: 5b00 9b46 0134 da44 a02c ded1 0135 d1e7  [..F.4.D.,...5..
00000350: 70b5 0e4d 0e4e 761b b610 06d0 0024 08cd  p..M.Nv......$..
00000360: 0134 00f0 1bf8 a642 f9d1 fff7 51ff 094d  .4.....B....Q..M
00000370: 094e 761b b610 06d0 0024 08cd 0134 00f0  .Nv......$...4..
00000380: 0df8 a642 f9d1 70bc 01bc 0047 2000 0003  ...B..p....G ...
00000390: 2000 0003 2000 0003 2400 0003 1847 c046   ... ...$....G.F
000003a0: f8b5 c046 f8bc 08bc 9e46 7047 0000 0000  ...F.....FpG....
000003b0: ad02 0008 7d02 0008 646b 4152 4d00 0000  ....}...dkARM...

Edit: That problem probably has nothing to do with your repository but devkitARM or something else

from gba_vscode_basic.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.