<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[SoliForum - 3D Printing Community — DaVinci Mini JTAG access]]></title>
	<link rel="self" href="https://www.soliforum.com/feed/atom/topic/16879/" />
	<updated>2019-01-06T14:54:25Z</updated>
	<generator>PunBB</generator>
	<id>https://www.soliforum.com/topic/16879/davinci-mini-jtag-access/</id>
		<entry>
			<title type="html"><![CDATA[Re: DaVinci Mini JTAG access]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/148372/#p148372" />
			<content type="html"><![CDATA[<p>Firmware 1.2.1 and could update, thank you</p>]]></content>
			<author>
				<name><![CDATA[nikikin]]></name>
				<uri>https://www.soliforum.com/user/20711/</uri>
			</author>
			<updated>2019-01-06T14:54:25Z</updated>
			<id>https://www.soliforum.com/post/148372/#p148372</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DaVinci Mini JTAG access]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/148371/#p148371" />
			<content type="html"><![CDATA[<p>Sorry, I don&#039;t have mini w machine, all I have is Jr. and miniMaker. Try upgrade to mini w firmware 1.2.5 from 1.2.3 and see if it works.</p>]]></content>
			<author>
				<name><![CDATA[yizhou.he]]></name>
				<uri>https://www.soliforum.com/user/17164/</uri>
			</author>
			<updated>2019-01-06T14:43:02Z</updated>
			<id>https://www.soliforum.com/post/148371/#p148371</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DaVinci Mini JTAG access]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/148369/#p148369" />
			<content type="html"><![CDATA[<p>hello, i need bump for Da Vinci mini w 1.2.3-1.2.5 firmware to SAM-BA. PLZ help because I went through this and my printer shows that it is constantly busy ..</p>]]></content>
			<author>
				<name><![CDATA[nikikin]]></name>
				<uri>https://www.soliforum.com/user/20711/</uri>
			</author>
			<updated>2019-01-06T14:31:30Z</updated>
			<id>https://www.soliforum.com/post/148369/#p148369</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DaVinci Mini JTAG access]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/147733/#p147733" />
			<content type="html"><![CDATA[<p>OK, I dump all flash content from all four devices, the content is all the same. And the flash content all contain two firmware version number, one is 1.0.1, which corresponding to the firmware that activated when you press and hold the LED button (bootloader firmware?). The 2nd one is the upgraded firmware version. And I go back and check the version nilezon dumped and posted in post#1, the 2nd firmware version is 1.1.0.</p><p>I flashed the version 1.1.0 to my miniMaker, and I was able to connect to it with David&#039;s miniMover and print, miniMover report version number 1.1.0. And I was able to flash back to my 1.2.1, and connect to it with David&#039;s miniMover and print, miniMover report version number 1.2.1. Also I noticed when I erase the firmware, the serialflash which stores the filament tag information is also cleared. So every time I reload the firmware, I can reuse my old tag. (or whenever I need to reuse my old tag, all I need to do is short the erase jumper and reload the firmware.)</p><p>I flashed the jr 2.2.0 firmware to miniMaker, miniMaker boots fine and I was able to connect to it with miniMover, miniMover report Da Vinci Jr. 1.0 and firmware version 2.2.0, however it report x-axis motor error and temperature 178C suggest the motor driver pinout and thermistor temperature table of miniMaker is different from Jr.</p><p>Also included firmware dump for miniMaker firmware version 1.2.3</p>]]></content>
			<author>
				<name><![CDATA[yizhou.he]]></name>
				<uri>https://www.soliforum.com/user/17164/</uri>
			</author>
			<updated>2018-12-03T01:28:25Z</updated>
			<id>https://www.soliforum.com/post/147733/#p147733</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DaVinci Mini JTAG access]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/147646/#p147646" />
			<content type="html"><![CDATA[<p>OK, I opened the firmware (miniMaker-dump.bin) nilezon posted in Post#1 with hex editor, and find the version number is 1.0.1, so I think it will be helpful to get firmware dump of higher version. So I followed nilezon&#039;s instruction soldered J-Link EDU Mini in SWD mode to a miniMaker with firmware version 1.2.1, and I dumped the firmware like what I did for Jr., and I opened it with hex editor, and I was disappointed that the version number still shows 1.0.1.</p><p>I notice when I connect to miniMaker though SWD, the miniMaker make low noise just like when I push and hold the front LED button after reboot. So I connect to miniMaker using David&#039;s miniMover, it report firmware version 1.2.1 normally, but when I push and hold the front LED button after reboot, miniMover shows the firmware version become 1.0.1.</p><p>So I hypothesis the miniMaker can boot from two different FLASH memory, when you push and hold the front LED button after reboot or connect through SWD, machine boot from 1.0.1 firmware (bootloader maybe). Otherwise it will boot from the real firmware which is 1.2.1 in my case.</p><p>So I go to J-flasher and there is option in configuration to select from 4 different device though JTAG SWD access. So I connect to every single one of them and dumped all the flash content, the 2nd device contain firmware version 1.2.1 and all the others dumped firmware 1.0.1. I have not checked if all there firmware 1.0.1 are all the same or they are different firmware for different chips, but my guess is the MiniMaker-dump.bin nilezon posted in Post#1 is not the real/complete firmware for printer (or maybe he intend to post NFC reader flash content). </p><p>I will erase all chips and flash back the 1.2.1 firmware and test if the printer will function as normal, and then I can be sure I can go back to stock firmware.</p>]]></content>
			<author>
				<name><![CDATA[yizhou.he]]></name>
				<uri>https://www.soliforum.com/user/17164/</uri>
			</author>
			<updated>2018-11-26T16:54:58Z</updated>
			<id>https://www.soliforum.com/post/147646/#p147646</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DaVinci Mini JTAG access]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/141059/#p141059" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>modfreakz wrote:</cite><blockquote><p>I got the &quot;J-Link EDU Mini&quot; today, can you help with the JTAG pins on the board?</p></blockquote></div><p>Sorry for the delay. I&#039;m attaching the wiring scheme for SWD.</p>]]></content>
			<author>
				<name><![CDATA[nilezon]]></name>
				<uri>https://www.soliforum.com/user/17696/</uri>
			</author>
			<updated>2017-12-26T14:17:56Z</updated>
			<id>https://www.soliforum.com/post/141059/#p141059</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DaVinci Mini JTAG access]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/140868/#p140868" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>nilezon wrote:</cite><blockquote><p>To read/write/debug the ATSAM4E8E you need to connect using JTAG or SWD. SWD is easier since it&#039;s fewer cables to solder.<br />You can probably use any SWD reader that support Atmel ATSAM4E8E, including Atmel-ICE and all J-Link debuggers. You can probably also use a BusPirate or other generic SWD device.<br />So for I have only used Atmel-ICE and J-Link EDU (not Mini), but I&#039;m quite sure the J-Link EDU Mini works as well.</p></blockquote></div><p>I got the &quot;J-Link EDU Mini&quot; today, can you help with the JTAG pins on the board?</p>]]></content>
			<author>
				<name><![CDATA[modfreakz]]></name>
				<uri>https://www.soliforum.com/user/17913/</uri>
			</author>
			<updated>2017-12-20T15:33:28Z</updated>
			<id>https://www.soliforum.com/post/140868/#p140868</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DaVinci Mini JTAG access]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/140720/#p140720" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>nilezon wrote:</cite><blockquote><br /><p>Should work, yes.<br />I tried the online version and it timed out :-(</p><br /><p><a href="https://retdec.com/decompilation/">https://retdec.com/decompilation/</a><br />Use the dump (first post).<br />Select Raw machine code, ARM and Little endian.<br />Entry address: 0x00000000<br />VM address: 0x20000000</p></blockquote></div><p>Thank you very much for the information, the readme file mentioned it use lots of memory, so I&#039;m downloading the standalone version. I&#039;m sure it will end up with codes that I don&#039;t necessary understood, but it is fun to see if I can compile it back.</p>]]></content>
			<author>
				<name><![CDATA[yizhou.he]]></name>
				<uri>https://www.soliforum.com/user/17164/</uri>
			</author>
			<updated>2017-12-15T16:17:42Z</updated>
			<id>https://www.soliforum.com/post/140720/#p140720</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DaVinci Mini JTAG access]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/140718/#p140718" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>yizhou.he wrote:</cite><blockquote><p>Hi, nilezon, Can this be used to decompile the firmware?</p><p><a href="https://github.com/avast-tl/retdec">https://github.com/avast-tl/retdec</a></p></blockquote></div><br /><p>Should work, yes.<br />I tried the online version and it timed out :-(</p><br /><p><a href="https://retdec.com/decompilation/">https://retdec.com/decompilation/</a><br />Use the dump (first post).<br />Select Raw machine code, ARM and Little endian.<br />Entry address: 0x00000000<br />VM address: 0x20000000</p>]]></content>
			<author>
				<name><![CDATA[nilezon]]></name>
				<uri>https://www.soliforum.com/user/17696/</uri>
			</author>
			<updated>2017-12-15T15:54:39Z</updated>
			<id>https://www.soliforum.com/post/140718/#p140718</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DaVinci Mini JTAG access]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/140717/#p140717" />
			<content type="html"><![CDATA[<p>Hi, nilezon, Can this be used to decompile the firmware?</p><p><a href="https://github.com/avast-tl/retdec">https://github.com/avast-tl/retdec</a></p>]]></content>
			<author>
				<name><![CDATA[yizhou.he]]></name>
				<uri>https://www.soliforum.com/user/17164/</uri>
			</author>
			<updated>2017-12-15T15:32:59Z</updated>
			<id>https://www.soliforum.com/post/140717/#p140717</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DaVinci Mini JTAG access]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/140714/#p140714" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>modfreakz wrote:</cite><blockquote><p>ok ordered &quot;J-Link EDU Mini&quot; and spare ATSAM4E8E ICs (I can solder them easily)</p><p>Stupid idea. Why we can&#039;t erase the flash and program the decrypted firmware, since we have it?</p></blockquote></div><p>We can. I have downgraded fw this way</p>]]></content>
			<author>
				<name><![CDATA[nilezon]]></name>
				<uri>https://www.soliforum.com/user/17696/</uri>
			</author>
			<updated>2017-12-15T13:26:03Z</updated>
			<id>https://www.soliforum.com/post/140714/#p140714</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DaVinci Mini JTAG access]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/140711/#p140711" />
			<content type="html"><![CDATA[<p>ok ordered &quot;J-Link EDU Mini&quot; and spare ATSAM4E8E ICs (I can solder them easily)</p><p>Stupid idea. Why we can&#039;t erase the flash and program the decrypted firmware, since we have it?</p>]]></content>
			<author>
				<name><![CDATA[modfreakz]]></name>
				<uri>https://www.soliforum.com/user/17913/</uri>
			</author>
			<updated>2017-12-15T10:46:13Z</updated>
			<id>https://www.soliforum.com/post/140711/#p140711</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DaVinci Mini JTAG access]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/140709/#p140709" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>modfreakz wrote:</cite><blockquote><p>As far as I understand, the firmware is stored after update in Atmel ATSAM4E8E and in MX25L3206E SPI ?<br />Removing the SPI chip or downgrading the firmware on SPI chip make no difference, the firmware in Atmel always starts.</p><p>I need something to change/delete/reflash firmware inside Atmel. <br />Is the recommended device &quot;J-Link EDU Mini&quot; sufficient for this?</p><p>Sorry Im also new on this low level hardware hacking, but I learning fast.&nbsp; ;-)</p></blockquote></div><p>The ATSAM4E8E is the main chip of the printer and contains it&#039;s own firmware.<br />The eeprom MX25L3206E is an external &quot;storage&quot; used by ATSAM4E8E to cache the decrypted firmware before updating. It is also used to store known NFC tag details. No code is every run on or from MX25L3206E, it&#039;s just storage (a bit simplified).</p><p>To read/write/debug the ATSAM4E8E you need to connect using JTAG or SWD. SWD is easier since it&#039;s fewer cables to solder.<br />You can probably use any SWD reader that support Atmel ATSAM4E8E, including Atmel-ICE and all J-Link debuggers. You can probably also use a BusPirate or other generic SWD device.<br />So for I have only used Atmel-ICE and J-Link EDU (not Mini), but I&#039;m quite sure the J-Link EDU Mini works as well.</p>]]></content>
			<author>
				<name><![CDATA[nilezon]]></name>
				<uri>https://www.soliforum.com/user/17696/</uri>
			</author>
			<updated>2017-12-15T08:49:01Z</updated>
			<id>https://www.soliforum.com/post/140709/#p140709</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DaVinci Mini JTAG access]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/140679/#p140679" />
			<content type="html"><![CDATA[<p>As far as I understand, the firmware is stored after update in Atmel ATSAM4E8E and in MX25L3206E SPI ?<br />Removing the SPI chip or downgrading the firmware on SPI chip make no difference, the firmware in Atmel always starts.</p><p>I need something to change/delete/reflash firmware inside Atmel. <br />Is the recommended device &quot;J-Link EDU Mini&quot; sufficient for this?</p><p>Sorry Im also new on this low level hardware hacking, but I learning fast.&nbsp; ;-)</p>]]></content>
			<author>
				<name><![CDATA[modfreakz]]></name>
				<uri>https://www.soliforum.com/user/17913/</uri>
			</author>
			<updated>2017-12-14T21:33:18Z</updated>
			<id>https://www.soliforum.com/post/140679/#p140679</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DaVinci Mini JTAG access]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/140676/#p140676" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>modfreakz wrote:</cite><blockquote><p>Im going to buy one of this Atmel-ICE device. Do I need something else?</p><p>What about software?</p></blockquote></div><p>You probably shouldn&#039;t.<br />The Atmel-ICE can only be used with Atmel chips.<br />I had to buy an additional J-Link Edu to dump the NFC chip (from NXP).</p><p>I think you can use a &quot;J-Link EDU Mini&quot; for all chips on these printers, and it&#039;s very cheap (less than $20).</p><p>Atmel-ICE uses &quot;Atmel Studio&quot;. J-Link devices works with a variety of software, I tried &quot;Segger Ozone&quot; and liked it.</p>]]></content>
			<author>
				<name><![CDATA[nilezon]]></name>
				<uri>https://www.soliforum.com/user/17696/</uri>
			</author>
			<updated>2017-12-14T21:08:53Z</updated>
			<id>https://www.soliforum.com/post/140676/#p140676</id>
		</entry>
</feed>
