<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[ChipMusic.org - Weird EMS Cart issue - ROM check fail]]></title>
	<link rel="self" href="https://chipmusic.org:80/forums/feed/atom/topic/24136/"/>
	<updated>2021-09-29T09:13:41Z</updated>
	<generator>PunBB</generator>
	<id>https://chipmusic.org/forums/topic/24136/weird-ems-cart-issue-rom-check-fail/</id>
		<entry>
			<title type="html"><![CDATA[Re: Weird EMS Cart issue - ROM check fail]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/265406/#p265406"/>
			<content type="html"><![CDATA[<p>Hi,<br />years ago I&#039;ve purchased the usb 64m smart card. It worked pretty well at that time except from some games.<br />Recently I buyed some new DMG games and want to test the roms on the cartridge but cant make it work. I discovered that only small games like Tetris (256K) are working. Of course, LSDJ is not loading at all (blank screen)<br />Do you have any clue of what could be happening? Is there a way to low level format the cart?<br />May be there is some corrupt data over a certain memory register which could be causing he malfunction.<br />Please if you have any idea, let me know.<br />Beast regards</p>]]></content>
			<author>
				<name><![CDATA[cocaleru]]></name>
				<uri>https://chipmusic.org/cocaleru</uri>
			</author>
			<updated>2021-09-29T09:13:41Z</updated>
			<id>https://chipmusic.org/forums/post/265406/#p265406</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Weird EMS Cart issue - ROM check fail]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264451/#p264451"/>
			<content type="html"><![CDATA[<p>The actual function of the testis to check every byte of the ROM to ensure that there no bytes have been corrupted. It will keep doing this forever. The MBC5 test was just tacked on the existing test ROM and is a one time check of how the cartridge mapper reacts to writing 0 to the ROM bank selection register.</p><p>Really weird issue though.</p>]]></content>
			<author>
				<name><![CDATA[nitro2k01]]></name>
				<uri>https://chipmusic.org/nitro2k01</uri>
			</author>
			<updated>2020-11-21T06:56:32Z</updated>
			<id>https://chipmusic.org/forums/post/264451/#p264451</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Weird EMS Cart issue - ROM check fail]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264441/#p264441"/>
			<content type="html"><![CDATA[<p>Yeah, i&#039;ve waited for 2 iterations actually, but the test didn&#039;t output anything besides mbc version.<br />I also tried comparing the lsdj rom before loading and after dumping, and they are no different.</p>]]></content>
			<author>
				<name><![CDATA[bitwise]]></name>
				<uri>https://chipmusic.org/bitwise</uri>
			</author>
			<updated>2020-11-19T16:31:12Z</updated>
			<id>https://chipmusic.org/forums/post/264441/#p264441</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Weird EMS Cart issue - ROM check fail]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264438/#p264438"/>
			<content type="html"><![CDATA[<p>bitwise: Just to be sure, did you also let the test run for at least one iteration to see if there was any problem detected with the ROM integrity?</p>]]></content>
			<author>
				<name><![CDATA[nitro2k01]]></name>
				<uri>https://chipmusic.org/nitro2k01</uri>
			</author>
			<updated>2020-11-19T02:00:02Z</updated>
			<id>https://chipmusic.org/forums/post/264438/#p264438</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Weird EMS Cart issue - ROM check fail]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264437/#p264437"/>
			<content type="html"><![CDATA[<p>Hey, i&#039;ve got a similar problem!<br />I recently got a rev 05 gbc and planned to make a sound mod on it. I have an ems 64m cart too. <br />LSDJ gets stuck testing ROM while performing a cartridge test.<br />So far i&#039;ve tried re-inserting the SRAM battery on the cart, uploading different roms to it, and using different banks on the cart.<br />It runs small roms fine. Saving seems to work too. I did saving using chord by humbletune.<br />Running lsdj (8.3.4) on bank 1 gets it stuck on rom testing. On bank 2 the same rom got me a don&#039;t panic screen (see spoiler).<br />I also tried running newer lsdj version (8.5.1): bank 1 gives the same results, and bank 2 passes the rom test and stops at sram testing instead.<br />I also tried loading different roms such as tetris dx or smb deluxe, they both don&#039;t work. Tetris dx loops the sound of starting the game each time i press start or A though.<br />I tried running the original gameboy test cart rom. It worked fine and all tests were passed.<br />I also have nanoloop mono cart, which runs without any issues..</p><p>I have a spare gbc that runs everything fine. The point is that this &#039;faulty&#039; one has a newer revision.<br />Btw i checked the cart using a ROM nitro2k01 sent here, and it says MBC5.</p><div class="spoilerbox" id="spoiler1913068"><h3 onclick="$('#spoilerbox1913068').css('display','block');$('#spoiler1913068').css('display','none')">&#8250; DON&#039;T PANIC!</h3></div><div class="spoilerbox" id="spoilerbox1913068" style="display:none"><h3 onclick="$('#spoilerbox1913068').css('display','none');$('#spoiler1913068').css('display','block')">&#8249; DON&#039;T PANIC!</h3><p>ROM: 01<br />V8.3.4<br />STK:DFEF<br />A000<br />0100<br />D721<br />0C41<br />E47A<br />000F<br />A600<br />0014<br />0000<br />0000</p><p>PLY:0<br />CVW:4<br />CGB</p><p>SYN:0</p></div><p>(on a sidenote it seems to me that the problems here are in the gameboy rather than in the cartridge..)</p>]]></content>
			<author>
				<name><![CDATA[bitwise]]></name>
				<uri>https://chipmusic.org/bitwise</uri>
			</author>
			<updated>2020-11-18T23:43:03Z</updated>
			<id>https://chipmusic.org/forums/post/264437/#p264437</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Weird EMS Cart issue - ROM check fail]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/260994/#p260994"/>
			<content type="html"><![CDATA[<p>Lol, i know. Just meant within the chip realm you&#039;d be more likely to be correct than a college professor. Except maybe professor little-scale (depending on the specific hardware/software) <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[e.s.c.]]></name>
				<uri>https://chipmusic.org/e.s.c.</uri>
			</author>
			<updated>2018-12-31T11:52:05Z</updated>
			<id>https://chipmusic.org/forums/post/260994/#p260994</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Weird EMS Cart issue - ROM check fail]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/260992/#p260992"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>e.s.c. wrote:</cite><blockquote><p>When in doubt on things like this, always trust nitro, even over college professors. Dude knows his stuff</p></blockquote></div><p>To be fair, he&#039;s technically correct. (The best kind of correct as some people say.) But the use of the word ROM is colloquially acceptable in the context, and arguing that it&#039;s absolutely wrong, in my opinion becomes pretty much a <a href="https://en.wikipedia.org/wiki/Hypercorrection" target="_blank">hypercorrection</a>.</p><p>Here&#039;s the deal with the checksum check: The check is done whenever LSDj detects an incorrect signature in the save data under the assumption that this also means that the cartridge is being used for the first time. But this also means that the check is performed if the save RAM got corrupted. And it also means that if you write a working save file to SRAM, LSDj considers the cartridge to already be initialized and skips the check. So it&#039;s possible both to get false negatives and false positives compared to the intended outcome of the test.</p><p>But what&#039;s more, the checks relies on a particular behavior in the memory mapper (MBC) on the cartridge. A typical Gameboy cartridge ill expose two 16k areas, one that will always be bank 0, and one where the program can select any ROM bank. However older MBCs (MBC1-3) would select 1 if you asked it to select bank 0, because selecting bank 0 would mean that the same ROM bank is visible in two different places in the memory map. The newer MBC5 does not have this behavior, and selects bank 0 when asked to. LSDj&#039;s checksum relies on the fact that bank 0 is selected when writing bank 0, which is the newer MBC5 behavior.</p><p>Some emulators, as well as some flashcarts, implement the MBC1-3 behavior, which also causes this error. The latest version of LSDj should fix this so it works on either type of cartridge, so upgrading might be a good idea.</p><p>So the question is, which type does your EMS64 cart behave as? Here&#039;s a ROM for testing this. It will also test the whole ROM image for corruption, but that&#039;s not what&#039;s interesting here. You&#039;re looking for what it says after MBC type. Could you please write this to your cartridge and see what it says after MBC type? If it says MBC1/3 that explains the mystery. If it says MBC5, then it truly is a mystery.</p><p><a href="http://www.gg8.se/temp/verifyrom-mbctest.zip" target="_blank">http://www.gg8.se/temp/verifyrom-mbctest.zip</a></p><p>Btw, if you thought to make a backup of the RAM data before writing new data to the cartridge, I might be able to recover the songs that were ost.</p>]]></content>
			<author>
				<name><![CDATA[nitro2k01]]></name>
				<uri>https://chipmusic.org/nitro2k01</uri>
			</author>
			<updated>2018-12-30T21:44:12Z</updated>
			<id>https://chipmusic.org/forums/post/260992/#p260992</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Weird EMS Cart issue - ROM check fail]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/260978/#p260978"/>
			<content type="html"><![CDATA[<p>My advice, remove battery from EMS cart for an hour/or change to new, if still occurs and you have second Gameboy, try cartridge on this, if even on this fails, you have probably only option, send an e-mail to LSDJ author Johan Kotlinski. If all three things fails, there is probably some nasty ghost in the cartridge.</p><p>You may also write to manufacturer of the cartridge but i dont know what company is EMS, i have bought mine from nonfinite electronics, and even at kitch bent it is out of stock, so probably support is not available.</p>]]></content>
			<author>
				<name><![CDATA[martin_demsky]]></name>
				<uri>https://chipmusic.org/martin_demsky</uri>
			</author>
			<updated>2018-12-26T12:01:28Z</updated>
			<id>https://chipmusic.org/forums/post/260978/#p260978</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Weird EMS Cart issue - ROM check fail]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/260977/#p260977"/>
			<content type="html"><![CDATA[<p><strong>UPDATE: I have fixed the issue!</strong></p><br /><p>Simply enough, all it took was me uploading an older sav file.</p><p>I wonder why the sav file was messing up the ROM check??</p><p>Now THAT is a weird issue.</p><p>Anyone with the same issue I&#039;ve had - clear or revert the sav to an older version.</p><p>Sadly, I lost a couple weeks of progress, but it&#039;s something I can get back to with some time. I should start backing up more than once a month..</p>]]></content>
			<author>
				<name><![CDATA[Kal]]></name>
				<uri>https://chipmusic.org/Kal</uri>
			</author>
			<updated>2018-12-26T11:56:54Z</updated>
			<id>https://chipmusic.org/forums/post/260977/#p260977</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Weird EMS Cart issue - ROM check fail]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/260976/#p260976"/>
			<content type="html"><![CDATA[<p>Alright, update:</p><p>Dumped the ROM, files were EXACTLY identical. </p><p>Dude, what the heck?? It should work since there&#039;s no problem with the ROM -- So why isn&#039;t it?</p><p>Anyone have a clue, I dont want to give this up o.o</p><p>Anyone I could contact who might better be able to diagnose the issue?</p>]]></content>
			<author>
				<name><![CDATA[Kal]]></name>
				<uri>https://chipmusic.org/Kal</uri>
			</author>
			<updated>2018-12-26T11:45:51Z</updated>
			<id>https://chipmusic.org/forums/post/260976/#p260976</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Weird EMS Cart issue - ROM check fail]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/260961/#p260961"/>
			<content type="html"><![CDATA[<p>When in doubt on things like this, always trust nitro, even over college professors. Dude knows his stuff</p>]]></content>
			<author>
				<name><![CDATA[e.s.c.]]></name>
				<uri>https://chipmusic.org/e.s.c.</uri>
			</author>
			<updated>2018-12-23T19:56:00Z</updated>
			<id>https://chipmusic.org/forums/post/260961/#p260961</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Weird EMS Cart issue - ROM check fail]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/260960/#p260960"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>catskull wrote:</cite><blockquote><p>The rom check is something LSDJ does the first time the cart boots. My guess is that some issue only affecting higher sectors (like a bad sector, or possibly pins becoming desoldered or something). LSDJ is one of only a few roms that use 1mb flash storage, and the only one I know of that actually attempts to verify the rom image.</p><p>Was the rom you flashed the one from here? <a href="https://catskull.net/erase-an-ems-64-usb-gameboy-cart.html" target="_blank">https://catskull.net/erase-an-ems-64-us &#133; -cart.html</a></p><p>You could try flashing that rom, then dumping it again and comparing the roms in a hex editor to make sure it&#039;s all 1&#039;s and no 0&#039;s. You could also do the same thing but change the rom to write all 0&#039;s and do the same thing. My guess is somewhere near the end of the dumped rom, you&#039;ll see bad data.</p></blockquote></div><p>Thank you all for your replies! I reflashed the blank ROM before, but I did not think to compare it in a hex editor. Thank you for the idea, I&#039;ll be sure to check and report back here.</p><p>I also had another idea, of putting lsdj on the second bank to see if that would help solve the issue. As I stated before, it is a very weird issue and I don&#039;t think anyone else has had the same problem from what I can find. I&#039;ve been using LSDJ on these carts for 6 years now, no problem. I have another cart somewhere so all is well anyway, but I prefer having two cartridges because some of my projects use 2 gameboys(or I&#039;ll have a game on one and LSDJ on the other, makes it easier)</p>]]></content>
			<author>
				<name><![CDATA[Kal]]></name>
				<uri>https://chipmusic.org/Kal</uri>
			</author>
			<updated>2018-12-23T09:18:54Z</updated>
			<id>https://chipmusic.org/forums/post/260960/#p260960</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Weird EMS Cart issue - ROM check fail]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/260945/#p260945"/>
			<content type="html"><![CDATA[<p>During my time at electrotechnical high school my teacher told me that rom can be written only once, and eprom rewritten also only once (Erasable Programmable Read-Only Memory), so logically rom chips are used for pernament things on computer boot, like core of OS, basic interpreter, core routines to communicate with basic devices like disk drives, tapes, or printers on 8255 parallel port etc.</p><p>But i know what U mean Nitro <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" />))</p><p>And sorry for little offtopic, i hope that Kal has found solution to his question.</p>]]></content>
			<author>
				<name><![CDATA[martin_demsky]]></name>
				<uri>https://chipmusic.org/martin_demsky</uri>
			</author>
			<updated>2018-12-20T11:22:55Z</updated>
			<id>https://chipmusic.org/forums/post/260945/#p260945</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Weird EMS Cart issue - ROM check fail]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/260944/#p260944"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>martin_demsky wrote:</cite><blockquote><p>but formulation is not accurate, because ROM cannot be rewritten, maybe eprom or these flash nand technologies.</p></blockquote></div><p>In context, it&#039;s correct usage. Even though the flash memory can be rewritten, it works as a ROM for the most of the time. Even EPROM means electrically programmable read-only memory, which is an apparent oxymoron. But the point is that it fills the function that a ROM would normally fill, and is only seldom updated.</p>]]></content>
			<author>
				<name><![CDATA[nitro2k01]]></name>
				<uri>https://chipmusic.org/nitro2k01</uri>
			</author>
			<updated>2018-12-20T01:48:54Z</updated>
			<id>https://chipmusic.org/forums/post/260944/#p260944</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Weird EMS Cart issue - ROM check fail]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/260943/#p260943"/>
			<content type="html"><![CDATA[<p>That linked article is excellent, but formulation is not accurate, because ROM cannot be rewritten, maybe eprom or these flash nand technologies. During my time with LSDJ i had once occurance, where one track was not loaded properly, it was mistaked in some patterns, but it was battery in my gameboy, when i changed it to new all was loaded properly, luckily.</p>]]></content>
			<author>
				<name><![CDATA[martin_demsky]]></name>
				<uri>https://chipmusic.org/martin_demsky</uri>
			</author>
			<updated>2018-12-19T19:16:38Z</updated>
			<id>https://chipmusic.org/forums/post/260943/#p260943</id>
		</entry>
</feed>
