Adding some funk to an old Vtech toy

(boyesm.ca)

13 points | by PennRobotics a day ago ago

5 comments

  • tralarpa 2 hours ago ago

    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.

    • tralarpa 2 hours ago ago

      The LLM also immediately noticed the tag 'GPMD' at file offset 0x80000. It seems to be followed by some event byte sequences. The function at file offset 0x41DC consumes or executes these sequences. I have never used this toy, but I guess they trigger the dance moves etc.?

  • adzm 9 hours ago ago

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

    • PennRobotics 6 hours ago ago

      Same here though it's not my blog.

      We recently got a Vtech Codi (coloring robot) that I'd like to tear down and reverse engineer.

      I also had no idea Vtech CMS is the manufacturing force behind quite a few well-known brands---guessing by the product photos: Allen & Heath, Sharp, Siemens, Mean Well.

      I assumed they only make toys e.g. a green plastic car with the most annoying-yet-catchy music imaginable.

  • dmitrygr 8 hours ago ago

    > 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...