Hacking a Vtech Kids' Toy to Run Custom Code

Adding some funk to an old Vtech toy

Hacking a Vtech Kids' Toy to Run Custom Code

Malcolm Boyes and friends picked up a used Vtech Kidi Star Dance at Value Village, tore it open, and traced its ARM v4 SoC and BY25Q64AS flash chip. They forked flashrom to support the chip, dumped the firmware, and swapped user-facing strings in the hex editor. Same-length replacements kept it stable, and the toy booted with modified text. A Doom port is promised next.

Let's replace some of the strings that are obviously displayed to the user with more fun strings.
  1. tralarpa

    Interesting. I gave the firmware to an LLM and after a few minutes it found the function at file offset 0xbe1c that returns the start addresses of nine mp3 files embedded in the firmware. That was easy for the LLM because the function calls a logging function with the string " get mp3 id=%d error\r\n".

    The nine mp3 files start at file offset 0x3E0000. The last one ends at offset 0x6E6BA0.

  2. adzm

    The introduction had me interested... but then that was the entire article. Looking forward to more funk though

  3. dmitrygr

    > feel free to dissect it and share any findings.

    Looking at the dump, looks like an ARMv4T core indeed, the flash image looks like it loads at 0x20000000. It clearly has some ram at 0xF8005000 and peripherals seem to be around 0xC0000000 and 0xD0000000. There seems to be some ROM near 0x00000000, since some absolute calls are made to that. typical MCUs of this kind have ROM software libraries, for example 0xF8F2 has thumb-mode printf(), 0x14AD4 has thumb-mode func to read SPI flash ID vals, and 0xE900 has thumb-mode malloc()

    Code begins with a pretty typical sequence of setting up a .bss and copying some preinited bytes into a .data, then setting stacks for each exception mode

    Factory tests are in the binary and have a LOT of logging, incl register names and test names. With log messages giving func names and var names (eg: "In ListFolder: i32Offset=%d, (pBrowser0).u32FolderCnt=%d, (pBrowser0).u32FileCnt=%d"), Reverse engineering this should be of no serious difficulty. Sadly the display seems to be too low res for my interest (height is 64 pixels)

    EDIT: FWIW, archive.org has a product brief for this SoC (which is more than one usually gets for generalplus chips). It is useless due to lack of detail, but still, here: https://web.archive.org/web/20151226075810/http://www.genera...

More from this day

2026-11-25