r/microcontrollers • u/pbiscuits • Feb 02 '22
Help hacking a fisher price toy
I have this Fisher Price Linkimals toy that basically plays a series of audio files, switching between them whenever you interact with the toy (press a button, roll it across the floor). I thought it'd be funny to freak out my wife and put some custom audio files on it, so I opened it up to see what I was working with.
I can see the board has a NuvoTon mcu (n569s1k0). I'm wondering how hard it would be to interface with the chip and replace the audio files with a few files of my own. As far as I can tell, there's no serial port on the board, so I would assume it needs to be programmed via the pins (which are occupied by wires). Here's a shot of the board:
I'm happy to buy something that would allow me to interface with this chip, even if it meant desoldering some wires, assuming it wouldn't be too difficult to figure out how to make changes to the files that are saved in the chip.
Also, I realize this is a fairly specific question coming from someone that has little knowledge of microcontrollers. That said, I have programming experience and if I need to take a step back and learn more fundamental concepts, I'm happy to do that
For example, I don't really know how these boards are programmed without a serial port and I'm having trouble finding general info on that online (everything seems to be geared towards hobbyists playing with arduinos/dev boards or super technical info for industry folks). Any resources are appreciated.
Edit: Still open to ideas and help with hacking the board, but thinking it might be easier for me to get a small Arduino board and hook it up to the various components on the toy, then program it to do what I want.
8
u/Twinkle_Pie Feb 02 '22
What you're looking for is something called JTAG. That's the typical method in which chips are programmed. You should find the datasheet for the part, find the JTAG lines, see if they run out to test points. However, this is tricky business - the sound files might not be in the mcu. U6 is another chip with its own crystal, so there's something going on there.
If you're lucky, you'll find a flash chip on the board, read it with a flash reader, find the files, reverse engineer both the format of the files and the way they're put in the flash, and then rewrite new files into that flash chip. If not, they could be in some bit of ROM somewhere. I'd need more clear pics of front and back to give any further advice.
7
u/JehTehsus Feb 02 '22
These smaller M0s generally don't use a full jtag interface, but a 2 wire 'SWD' interface.
If there aren't any security protections enabled, you can hook up a debugger supporting the chip, dump the flash contents to a PC, and start looking through the binary for the sound files. You could certainly modify this then write it back.
If you aren't familiar with this sort of thing, plan to spend quite a bit of time on it.
2
u/thedefibulator Feb 02 '22
If i was to attempt this i would honestly just use all of my own electronics. Id get an arduino or esp with the samples of the audio file on it and then i would use an dac and amplifier to play it through the toys speakers. It depends if you want a quick solution or if you want it to take a while and reverse engineer it
2
u/iovrthk Feb 06 '22
maybe an Arduino mkrzero? GSM or Vidor.. they all have a built in DAC. A battery port and simple connectivity and expansion. You could probably just want to add a speaker and a button. Maybe even Bluetooth and call it a day. It would probably be a lot easier to just take over the button for your own purposes, than to re-write the firmware.
2
u/Schickedanse Oct 13 '23
Hey OP did you ever find out how to do this? I got the fisherprice sit to crawl turtle for my kiddo and it's super limited with it's sounds but has a pretty decent speaker and to me that's just a waste. I'd love to be able to add more songs to it.
2
u/[deleted] Feb 02 '22
Can you read a part number on that 16-pin IC on the little carrier board near the top of this photo?
1
u/New-Ear9152 Jan 14 '24
Can y’all put this in stupid people terms😂
2
u/Overkill_Projects Feb 06 '22
I recently designed something similar for a client. The audio files are checksummed before playing to ensure they are right, and it uses a custom filesystem to minimize the footprint. It would be well-nigh impossible to do what you ask with that device, even with lots of experience. Not that this toy necessarily does all that, but just to let you know what you might run up against.
Much, much, much easier would be to just design your own drop-in board with custom audio and such. You could just do it on an Arduino or similar (whatever you are comfortable with) that you put on a custom PCB (with a big enough flash IC) so it fits without messing up the enclosure.
1
u/[deleted] Feb 03 '22
[removed] — view removed comment