Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could you please add detailed README? #1

Open
wdembinski opened this issue Nov 7, 2021 · 3 comments
Open

Could you please add detailed README? #1

wdembinski opened this issue Nov 7, 2021 · 3 comments

Comments

@wdembinski
Copy link

Hey @IndianBoy42
Great project! I would like to do something similar, custom PCB with NES emulator. Could you describe more your project? What steps are needed to make it running? What's inside directories (especially, stm32apu2, stm32apu2 and stm32apu3 - are they a separate project?). Where are games stored, in ROM (present in that repository) or in SD card (or something like this)?
I can see ROMS directory with some games but in the video (https://aaronwang.dev/stm32nes/) you also showed Battle City with tanks.

@IndianBoy42
Copy link
Owner

IndianBoy42 commented Nov 12, 2021

Hey, so this 'project' was part of a university course we did a while ago. So its pretty messy/unfinished in some ways. SD card loading of roms and audio output was planned but incomplete by submission time. Also we weren't really expecting public eyes on the repo.

The ROMs are just embedded as a static const array of bytes inside the code. the apu folders where projects for a separate stm32 mcu to use to emulate the APU of the NES.

The main limitation functionally we had is actually that the F4 wasn't always able to keep up with emulating the NES at full speed. I don't know if there is more optimizations we could do or if its just necessary to use a more powerful MCU

I can try describe more but I have mostly forgot a lot of it. I would love to hear about your progress with making a NES emulator as well. Feel free to ask any questions you have about our implementation.

@wdembinski
Copy link
Author

wdembinski commented Nov 16, 2021

At this moment I enabled -Ofast optimizations for the compilation and switched from external HSE to HSI, running F7 board with 216MHz. Result is 35 FPS. I'm going to use H7 with 480MHz to achieve higher FPS and being able to add other code to work with FreeRTOS. However if you know what optimizations in the code can be done - that would be great to know :)
Do you know what was the source of your emulator?

@Obeliux
Copy link

Obeliux commented Jun 29, 2024

Hi, I'm working on a similar base to emulate the NES and i'm having some trouble with the optable and the values not getting what they need to show the game image, do you have any repository so I could see How have you done it? Or could you help me with this? Sorry for the trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants