Giter Site home page Giter Site logo

Comments (3)

Lokathor avatar Lokathor commented on July 23, 2024

When I do that mGBA crashes with a jump to 0x0800_0298, which if you dump the ELF file is the address of main in a release build.

The logs also show that it was doing a bunch of out of bounds reads to copy the IWRAM data before it crashes by trying to jump out of bounds. And if you set a breakpoint in the debugger (eg: break 0x08000000) you can pause the emulation before the crash and view the loaded rom. the rom data is extremely regular, like things didn't load right.

However, the ELF version of both the debug and release builds of the example work fine in mGBA.

So, I suspect we're doing objcopy wrong somehow? I haven't used the tool in so long I can't remember if there's some other flag to set or something. I'll link this on the GBA discord and hopefully we can get it sorted out soon.

from gba.

Lokathor avatar Lokathor commented on July 23, 2024

This appears to have been fixed on mGBA's side in 0.10.0 when I run the hello example after an objcopy, @ids1024 can you update your own mGBA and confirm?

from gba.

ids1024 avatar ids1024 commented on July 23, 2024

Yep. Not sure exactly what was going on and what change in mGBA fixed it, but it seems to be fine now in 0.10.0. And it seemed to be file size that's the issue in any case, so the solution would be padding with zeros and not any change in the gba crate.

from gba.

Related Issues (20)

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.