Parsing NesCartDB XML file: Where's battery-backed VRAM?

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
Parsing NesCartDB XML file: Where's battery-backed VRAM?
by on (#204107)
I'm trying to develop a program that translates each cartridge in the XML export from BootGod's NesCartDB (mirrored here) into the correct 16-byte NES 2.0 header for this cartridge. I've hit my first snag.

The NesCartDB entry for RacerMate Challenge II shows that both VRAMs are battery-backed. Normally a battery-backed memory will have battery="1". But in this XML document, the battery= attribute appears only in <wram> elements, not <vram> elements. Here's the <cartridge> element in question:
Code:
<cartridge system="NES-NTSC" revision="3.11.088" crc="74920C13"
 sha1="7BFC9DDE8E97F171263EB0C9C84C83705459432C"
 dump="ok" dumper="Skrybe" datedumped="2012-08-30">
  <board type="UNL-RACERMATE" pcb="R981-112-00" mapper="168">
    <prg name="N311088 05/15/91" size="64k" crc="74920C13"
     sha1="7BFC9DDE8E97F171263EB0C9C84C83705459432C"/>
    <vram id="0" size="32k"/>
    <vram id="1" size="32k"/>
    <chip type="74xx00"/>
    <chip type="74xx00"/>
    <chip type="74xx174"/>
    <chip type="74xx174"/>
    <chip type="74xx32"/>
    <chip type="74xx32"/>
    <chip type="74xx4040"/>
    <cic type="337002"/>
    <pad h="0" v="1"/>
  </board>
</cartridge>
Re: Parsing NesCartDB XML file: Where's battery-backed VRAM?
by on (#204116)
Well, for one, that it's showing both as backed conflicts with the bit calling for [ed: forgot words: the CHR-RAM field to be split backed/unbacked] I read in the NES 2.0 spec about Kevtris "tracing out the circuit himself" and "couldn't believe it"… (from when you originally imported his spec to the wiki, for the sake of thoroughness)

ed2: a four-years-older post by kev on same
Re: Parsing NesCartDB XML file: Where's battery-backed VRAM?
by on (#204117)
I've filed an issue against the cart profile.

J1-J4 affect whether both SRAMs, or just U2, are battery backed.