Nothing to see here ... - Tag - KP3A blog about hacking, programming, astronomy, and other unrelated stuff2022-05-09T07:27:03+02:00Jean-Christophe Ronaurn:md5:4aca13830534db85deafa89a62b675acDotclearInside a KORG Kaossilator Prourn:md5:baf4521501de5509c09930c0263e128a2014-09-04T21:48:00+02:002022-04-24T22:37:19+02:00JCHackingKaoss Pad 3Kaossilator ProKO-1 PROKorgKP3<p>The Kaossilator Pro is a Dynamic Phrase Synthesizer/Loop recorder from KORG, and I just got mine this week !</p>
<p><img src="http://blog.rona.fr/public/korg-kaossilator-pro-352879.jpg" alt="korg-kaossilator-pro-352879.jpg" style="display:table; margin:0 auto;" title="korg-kaossilator-pro-352879.jpg, sept. 2014" /></p>
<p>However, the version I was able to find for a reasonable price is the Pro one, which is discontinued... It has been replaced by the Pro + version which looks almost the same, but offers 50 more programs.<br />
I played a little with it, but soon I wondered if it was possible to upgrade it to the "+" version. After all, both version might share the same hardware (HW) ? It is quite possible since I do not see any real improvement that would justify a entirely new HW revision. Maybe a bigger ROM to fit the new programs ?</p> <p>I tried to find some service manuals, schematics, pictures of the inside of both versions, or any other useful information, but I had no luck. Well, that's not entirely true since I found the <a href="http://elektrotanya.com/korg_kp3_sm_ver2a_kaoss_pad_dynamic_effects_sampler.pdf/download.html">service manual of the KORG Kaoss Pad 3 (KP3)</a>. The KP3 looks like a red Kaossilator Pro, only offers effects (in a more advanced way than the Kaossilator Pro would), is also discontinued, and has been replaced by a "+" version too ! So not the same product, but they might still share some HW/production related stuff/firmware layout, and we will see they do ! I also found, on <a href="http://www.korg.com/us/support/">KORG's website</a>, one firmware upgrade for the Kaossilator Pro and and one for the KP3. No firmware upgrade for the Kaossilator Pro + however (that would have helped a lot), nor for the KP3 + yet... That's pretty much what I found so far.</p>
<p>The KP3 service manual is full of interesting things : a block diagram of the device, a disassembly guide, all the schematics, the special key combinations used in production/RMA, the touchscreen calibration procedure and the BOM ! If the Kaossilator Pro and the KP3 HW are close enough, I might be able to turn mine into a KP3...</p>
<p>So now I'm currently following two paths for deeper investigations :</p>
<ul>
<li>the hardware one</li>
<li>the firmware one</li>
</ul>
<p><br /></p>
<h4>Let's start with the hardware</h4>
<p>Since I found nothing on the Kaossilator Pro hardware, it did not take long before I opened mine, so here are some pictures :</p>
<p><a href="http://blog.rona.fr/public/IMG_8417.JPG"><img src="http://blog.rona.fr/public/.IMG_8417_s.jpg" alt="IMG_8417.JPG" title="IMG_8417.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8418.JPG"><img src="http://blog.rona.fr/public/.IMG_8418_s.jpg" alt="IMG_8418.JPG" title="IMG_8418.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8419.JPG"><img src="http://blog.rona.fr/public/.IMG_8419_s.jpg" alt="IMG_8419.JPG" title="IMG_8419.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8421.JPG"><img src="http://blog.rona.fr/public/.IMG_8421_s.jpg" alt="IMG_8421.JPG" title="IMG_8421.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8423.JPG"><img src="http://blog.rona.fr/public/.IMG_8423_s.jpg" alt="IMG_8423.JPG" title="IMG_8423.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8424.JPG"><img src="http://blog.rona.fr/public/.IMG_8424_s.jpg" alt="IMG_8424.JPG" title="IMG_8424.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8425.JPG"><img src="http://blog.rona.fr/public/.IMG_8425_s.jpg" alt="IMG_8425.JPG" title="IMG_8425.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8434.JPG"><img src="http://blog.rona.fr/public/.IMG_8434_s.jpg" alt="IMG_8434.JPG" title="IMG_8434.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8436.JPG"><img src="http://blog.rona.fr/public/.IMG_8436_s.jpg" alt="IMG_8436.JPG" title="IMG_8436.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8441.JPG"><img src="http://blog.rona.fr/public/.IMG_8441_s.jpg" alt="IMG_8441.JPG" title="IMG_8441.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8442.JPG"><img src="http://blog.rona.fr/public/.IMG_8442_s.jpg" alt="IMG_8442.JPG" title="IMG_8442.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8445.JPG"><img src="http://blog.rona.fr/public/.IMG_8445_s.jpg" alt="IMG_8445.JPG" title="IMG_8445.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8448.JPG"><img src="http://blog.rona.fr/public/.IMG_8448_s.jpg" alt="IMG_8448.JPG" title="IMG_8448.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8449.JPG"><img src="http://blog.rona.fr/public/.IMG_8449_s.jpg" alt="IMG_8449.JPG" title="IMG_8449.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8450.JPG"><img src="http://blog.rona.fr/public/.IMG_8450_s.jpg" alt="IMG_8450.JPG" title="IMG_8450.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8451.JPG"><img src="http://blog.rona.fr/public/.IMG_8451_s.jpg" alt="IMG_8451.JPG" title="IMG_8451.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8456.JPG"><img src="http://blog.rona.fr/public/.IMG_8456_s.jpg" alt="IMG_8456.JPG" title="IMG_8456.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8458.JPG"><img src="http://blog.rona.fr/public/.IMG_8458_s.jpg" alt="IMG_8458.JPG" title="IMG_8458.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8461.JPG"><img src="http://blog.rona.fr/public/.IMG_8461_s.jpg" alt="IMG_8461.JPG" title="IMG_8461.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8465.JPG"><img src="http://blog.rona.fr/public/.IMG_8465_s.jpg" alt="IMG_8465.JPG" title="IMG_8465.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8466.JPG"><img src="http://blog.rona.fr/public/.IMG_8466_s.jpg" alt="IMG_8466.JPG" title="IMG_8466.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8469.JPG"><img src="http://blog.rona.fr/public/.IMG_8469_s.jpg" alt="IMG_8469.JPG" title="IMG_8469.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8473.JPG"><img src="http://blog.rona.fr/public/.IMG_8473_s.jpg" alt="IMG_8473.JPG" title="IMG_8473.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8451.JPG"><img src="http://blog.rona.fr/public/.IMG_8475_s.jpg" alt="IMG_8451.JPG" title="IMG_8451.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8451.JPG"><img src="http://blog.rona.fr/public/.IMG_8477_s.jpg" alt="IMG_8451.JPG" title="IMG_8451.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8451.JPG"><img src="http://blog.rona.fr/public/.IMG_8479_s.jpg" alt="IMG_8451.JPG" title="IMG_8451.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8451.JPG"><img src="http://blog.rona.fr/public/.IMG_8485_s.jpg" alt="IMG_8451.JPG" title="IMG_8451.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8451.JPG"><img src="http://blog.rona.fr/public/.IMG_8490_s.jpg" alt="IMG_8451.JPG" title="IMG_8451.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8508.JPG"><img src="http://blog.rona.fr/public/.IMG_8508_s.jpg" alt="IMG_8508.JPG" title="IMG_8508.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8512.JPG"><img src="http://blog.rona.fr/public/.IMG_8512_s.jpg" alt="IMG_8512.JPG" title="IMG_8512.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8515.JPG"><img src="http://blog.rona.fr/public/.IMG_8515_s.jpg" alt="IMG_8515.JPG" title="IMG_8515.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8519.JPG"><img src="http://blog.rona.fr/public/.IMG_8519_s.jpg" alt="IMG_8519.JPG" title="IMG_8519.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8525.JPG"><img src="http://blog.rona.fr/public/.IMG_8525_s.jpg" alt="IMG_8525.JPG" title="IMG_8525.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8526.JPG"><img src="http://blog.rona.fr/public/.IMG_8526_s.jpg" alt="IMG_8526.JPG" title="IMG_8526.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8530.JPG"><img src="http://blog.rona.fr/public/.IMG_8530_s.jpg" alt="IMG_8530.JPG" title="IMG_8530.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8532.JPG"><img src="http://blog.rona.fr/public/.IMG_8532_s.jpg" alt="IMG_8532.JPG" title="IMG_8532.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8533.JPG"><img src="http://blog.rona.fr/public/.IMG_8533_s.jpg" alt="IMG_8533.JPG" title="IMG_8533.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8539.JPG"><img src="http://blog.rona.fr/public/.IMG_8539_s.jpg" alt="IMG_8539.JPG" title="IMG_8539.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8549.JPG"><img src="http://blog.rona.fr/public/.IMG_8549_s.jpg" alt="IMG_8549.JPG" title="IMG_8549.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8555.JPG"><img src="http://blog.rona.fr/public/.IMG_8555_s.jpg" alt="IMG_8555.JPG" title="IMG_8555.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8557.JPG"><img src="http://blog.rona.fr/public/.IMG_8557_s.jpg" alt="IMG_8557.JPG" title="IMG_8557.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8560.JPG"><img src="http://blog.rona.fr/public/.IMG_8560_s.jpg" alt="IMG_8560.JPG" title="IMG_8560.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8562.JPG"><img src="http://blog.rona.fr/public/.IMG_8562_s.jpg" alt="IMG_8562.JPG" title="IMG_8562.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8566.JPG"><img src="http://blog.rona.fr/public/.IMG_8566_s.jpg" alt="IMG_8566.JPG" title="IMG_8566.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8567.JPG"><img src="http://blog.rona.fr/public/.IMG_8567_s.jpg" alt="IMG_8567.JPG" title="IMG_8567.JPG, sept. 2014" /></a>
<a href="http://blog.rona.fr/public/IMG_8569.JPG"><img src="http://blog.rona.fr/public/.IMG_8569_s.jpg" alt="IMG_8569.JPG" title="IMG_8569.JPG, sept. 2014" /></a></p>
<p>We see that the KP3 and KaossPro HW are similar, but not identical.</p>
<p>They share (only the main ICs) :</p>
<ul>
<li>the C55xx DSP from TI (TMS320VC5501PGF 300)</li>
<li>the AKM 4384ET DAC</li>
<li>the 128Mbit SDRAM</li>
</ul>
<p>They do not share :</p>
<ul>
<li>the H8S/2215C CPU : the KP3 has a <a href="http://www.renesas.com/products/mpumcu/h8s/h8s2200/h8s2215/device/HD64F2215UTE16V.jsp">HD64F2215UTE16V</a> (256KB ROM, 16KB RAM), the KaossPro has a HD64F2215CTE24V which is probably <a href="http://www.renesas.com/products/mpumcu/h8s/h8s2200/h8s2215/device/HD64F2215CUTE24.jsp">this one</a> (256KB ROM, 20KB RAM)</li>
<li>the ADC : the KP3 has a AKM 5381ET, the KaossPro has a AKM 5358AE</li>
<li>the 64Kbit EEPROM : the KP3 has an SPI AKM 93C10AF, the KaossPro has what appears to be an I2C L64 0S33W EEPROM which is unknown to Google</li>
</ul>
<p>The ADCs are probably compatible, and the H8S/2215C CPU (<a href="http://www.renesas.com/req/product_document_lineup_child.do?REGION_KEY=1&LAYER_KEY=111&PDF_URL=http://documentation.renesas.com/doc/products/mpumcu/rej09b0140_2215hm.pdf&TKUPDATE=true&APNOTE=true">the manual can be found here</a>) of the KaossPro should be able to run the KP3 code just fine. However, if they switched from an SPI EEPROM to an I2C one, the KP3 FW will need to be patched...</p>
<p>I do not have the KaossPro schematics to check every connection, so if someone has/finds the Kaossilator Pro Service Manual, please let me know !<br />
I would also gladly appreciate if someone could do the same work on a Kaossilator Pro + or a KP3 +.</p>
<p>That's mainly what I found so far on the hardware side.
<br />
<br /></p>
<h4>Now on the software side</h4>
<p>I looked at both, the KaossPro (V1.02) and the KP3 (v2.00) firmware, and they follow the same format :</p>
<ol>
<li>a 256 byte header</li>
<li>a 256 kbyte (0x40000 bytes) block, which is the actual FW padded with 0xFF (the size of the H8S/2215C On-chip ROM, lucky us <img src="/themes/default/smilies/wink.png" alt=";-)" class="smiley" /> !)</li>
</ol>
<p>I saw no encryption/compression, nor signature.</p>
<p><img src="http://blog.rona.fr/public/KaossilatorPro_V102_HEX.png" alt="KaossilatorPro_V102_HEX.png" style="display:table; margin:0 auto;" title="KaossilatorPro_V102_HEX.png, sept. 2014" />
<br />
<img src="http://blog.rona.fr/public/KP3_V200_HEX.png" alt="KP3_V200_HEX.png" style="display:table; margin:0 auto;" title="KP3_V200_HEX.png, sept. 2014" /></p>
<p>The header format seems to be :</p>
<ol>
<li>the string "KORG SYSTEM FILE" on 16 bytes</li>
<li>the string "KaossilatorPro" or "KaossPad3" (depending on the targeted device), padded with 0x00 on 16 bytes</li>
<li>the string "SYSTEM" padded with 0x00 on 10 bytes</li>
<li>the FW version on 2 bytes (big-endian), read, as far as I know, by the Updater application only</li>
<li>a 4 byte unknown big-endian value (00 01 0E FF for the KaossPro, 78 FF FF FF for the KP3)</li>
<li>16 unkown bytes (00 00 00 00 00 00 04 00 00 00 00 00 00 00 04 00 for both)</li>
<li>a 2 byte unknown value (02 80 for the KaossPro, FF FF for the KP3)</li>
<li>190 bytes being all 0xFF</li>
</ol>
<p>The FW block seems to be exactly what the Updater will write into the ROM. The first 512 bytes match the expected Exception Handling Vector Table, the first vector being the actual entry point address (0x210).<br />
I built <a href="http://www.gnu.org/software/binutils/">the binutils tools</a> for the H8S arch, and used the generated objdump to disassemble the code. The result at 0x210 looks legit as expected, but I did not find enough time to analyze the code yet...<br />
The first bytes of the code section (0x200) are "KORG", followed by what appears to be the version in big-edian, probably the one returned/displayed by the device itself.
<br />
<br /></p>
<h4>What we learned so far</h4>
<p>The KP3 HW is very similar to the KaossPro one, however its firmware won't work as is on it. Some parts (at least the EEPROM access) will probably need to be patched. I say probably because we can see an unpopulated footprint close to the EEPROM that might be a SPI alternative for it.<br />
I still hope that the Kaossilator Pro/Pro + HWs are the same, but since I have no information on it at all, please do not hesitate to share anything you might find.</p>
<p>Regarding the firmware format itself, it seems that the code can be easily modified. However, that looks a little risky considering there is no recovery nor bootloader that would allow to restore a working firmware in case something goes wrong (the code allowing to update the unit seems to be in the firmware)... So for now, I will not play with that !</p>
<p>According to the H8S/2215C manual, it looks like there is a way to boot the CPU from the USB, which would allow to repair a damaged unit, as well as perform some safe tests. I will try to find more information about that !</p>