Comments (3)
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.
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.
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)
- The API for integer `with_*` in MMIO type definitions expects pre-shifted values. HOT 1
- how to handle multi-mode addresses? HOT 2
- examples shouldn't use vcount spinning HOT 1
- investigate what registers are available for inline-asm trashing HOT 1
- Many vblank irqs sent per frame HOT 17
- Incorrect example code in docs for art::CGA_8X8_THICK HOT 1
- update voladdress dep to 1.0
- `asm!` and `global_asm!` moved to `core::arch` HOT 2
- High registers (r8+) cannot be used HOT 1
- Add support for MultiPlay communcation HOT 7
- memclr4 and memclr8 incorrect docs
- docs: explain that extern C fn doesn't mean actually C code
- document vram access patterns
- [Suggestion] Make voladdress and bitfrob workplace inherited HOT 1
- question about arm7 binaries on debug HOT 17
- License header for linker_scripts/mono_boot.ld? HOT 2
- Consider depending on `fixed` crate for fixed point, instead of reimplementing HOT 3
- mGBA debug logging allows data race from safe code. HOT 3
- Linker errors on newer nightly Rust builds HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gba.