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

Help with "sketch_hack_write" in MC-G01 Maintenance Cartridge hack #4

Open
nickport2024 opened this issue Aug 19, 2024 · 1 comment

Comments

@nickport2024
Copy link

I’m trying to use the sketch “sketch_hack_write” to upload a ROM to the MC-G01 chip, but when compiling the sketch, keep getting the error message:

"Programming\sketch_hack_write\sketch_hack_write.ino:97:35: error: 'my_rom1' was not declared in this scope
buf[j]=pgm_read_byte_near(my_rom1+i*buf_size +j); //!!!!!!!!switch from my_rom1 and my_rom2 if need ^

exit status 1

Compilation error: 'my_rom1' was not declared in this scope"

If I delete the subroutine below the line 87 “//more efficient write” step, the program runs, but the results don’t match the input ROM.

Any help with this sketch?

Thanks,

@wangyu-
Copy link
Owner

wangyu- commented Aug 23, 2024

Hi, here is a friendly reminder:

Yes, by default the sketch_hack_write cannot compile. Since it misses the rom:
image

The wiki says clearly, you need to copy the output from sketch_hack_read and copy to sketch_hack_write.
image

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

2 participants