<div dir="ltr">Hi, our company bought two SIMtrace Hardware Kits. We want to use <a href="https://github.com/kamwar/simlabTrace/wiki/res/bin/sim_forwarder-simtrace-at91sam7s128-flash_dfu.bin" style="box-sizing:border-box;color:rgb(64,120,192);text-decoration:none;font-family:-apple-system,blinkmacsystemfont,"segoe ui",helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";font-size:16px">SIM forwarder</a> firmware<div>in our project. but have problem with flashing it to the board.</div><div><br></div><div>in one way I installed toolchain as described at <a href="http://osmocom.org/projects/baseband/wiki/GnuArmToolchain">http://osmocom.org/projects/baseband/wiki/GnuArmToolchain</a></div><div><br></div><div>and made forwarder firmware - success1.</div><div><br></div><div>but any tries to flash it using dfu-util failed.</div><div>tries was next:</div><div>--------------------------</div><div>- from windows10 host using steps from </div><div><a href="https://github.com/kiibohd/controller/wiki/Loading-DFU-Firmware#windows">https://github.com/kiibohd/controller/wiki/Loading-DFU-Firmware#windows</a> - kii-dfu can`t flash it due to three dfu devices with NO serial numbers.</div><div>Try using dfu-util with -a0 flag gives same result as later cases - DFU found, state idle, activate alternative=0 ... and nothing more. reruns not helps. reconnects with or w/o BOOTLOADER button gives same result - nothing.</div><div>---------------------</div><div>- same win10 host with vmWare Ubuntu16.04 VM. tries to install using ubuntu. device shown on lsusb - dfu mode on. dfu-utils installed, toolchain too, firmware made OK. simtrace made too.</div><div><br></div><div>BUG1</div><div>experiment with simtrace gives output with wrong parsing of commands - may be you have to open bug case to resolve it. same results with usb2 on vm and usb3.</div><div><br></div><div>all tries to flash forwarder or reader to board failed on same place as before.</div><div>tried with button at connect and using -ao and w/o button and using -i param (forgot number of interface for apps partition mb was -i1 ) - failed</div><div><br></div><div>- pure ubuntu 16.04 host. all above with same results. using usb3 port and usb2 extender.</div><div>--------------------------------</div><div><br></div><div>Now the time to tell about second way - SAM-BA . here is another problem:</div><div><br></div><div>used <a href="http://osmocom.org/projects/simtrace/wiki/SIMtrace_Firmware">http://osmocom.org/projects/simtrace/wiki/SIMtrace_Firmware</a></div><div><br></div><div>installed <a class="gmail-wiki-page" href="http://osmocom.org/projects/baseband/wiki/GnuArmToolchain" style="color:rgb(17,102,153);text-decoration:none;word-wrap:break-word;font-family:verdana,sans-serif;font-size:12px">GnuArmToolchain</a><span style="color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:12px">. as described on </span><span style="color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:12px"> </span><a class="gmail-wiki-page" href="http://osmocom.org/projects/baseband/wiki/Toolchain" style="color:rgb(17,102,153);text-decoration:none;word-wrap:break-word;font-family:verdana,sans-serif;font-size:12px">toolchain</a> link, included to PATH.</div><div><br></div><div>Trying to do:</div><div><pre style="font-family:consolas,menlo,"liberation mono",courier,monospace;margin:1em 1em 1em 1.6em;padding:8px;background-color:rgb(250,250,250);border:1px solid rgb(226,226,226);border-radius:3px;width:auto;overflow-x:auto;overflow-y:hidden;color:rgb(51,51,51);font-size:12px">git clone git://<a href="http://git.osmocom.org/openpcd.git">git.osmocom.org/openpcd.git</a>
cd openpcd/firmware
make -f Makefile.dfu BOARD=SIMTRACE
make BOARD=SIMTRACE DEBUG=1 TARGET=main_simtrace
cat dfu.bin main_simtrace.bin > main_simtrace.samba
cd ../..</pre></div><div>failed on 3rd string: <span style="background-color:rgb(250,250,250);color:rgb(51,51,51);font-family:consolas,menlo,"liberation mono",courier,monospace;font-size:12px">make -f Makefile.dfu BOARD=SIMTRACE </span>- arm-elf-gcc not found!<br>tries to rename <span style="background-color:rgb(250,250,250);color:rgb(51,51,51);font-family:consolas,menlo,"liberation mono",courier,monospace;font-size:12px">arm-none-eabi gcc to </span>arm-elf-gcc was not successful. so I cant produce</div><div>your dfu.bin to use samba (I made it with success) with</div><div><pre style="font-family:consolas,menlo,"liberation mono",courier,monospace;margin:1em 1em 1em 1.6em;padding:8px;background-color:rgb(250,250,250);border:1px solid rgb(226,226,226);border-radius:3px;width:auto;overflow-x:auto;overflow-y:hidden;color:rgb(51,51,51);font-size:12px">cat dfu.bin my_forwarder.bin > my_forwarder.samba</pre></div><div><br></div><div>Also, at the string <span style="background-color:rgb(250,250,250);color:rgb(51,51,51);font-family:consolas,menlo,"liberation mono",courier,monospace;font-size:12px">cat dfu.bin main_simtrace.bin > main_simtrace.samba we see </span><span style="background-color:rgb(250,250,250);color:rgb(51,51,51);font-family:consolas,menlo,"liberation mono",courier,monospace;font-size:12px">dfu.bin which is possibly dfu-boot-loader with wrong name which </span><span style="background-color:rgb(250,250,250);color:rgb(51,51,51);font-family:consolas,menlo,"liberation mono",courier,monospace">crashes brain of google</span></div><div><span style="background-color:rgb(250,250,250);color:rgb(51,51,51);font-family:consolas,menlo,"liberation mono",courier,monospace;font-size:12px">so we have a </span><span style="background-color:rgb(250,250,250);color:rgb(51,51,51);font-family:consolas,menlo,"liberation mono",courier,monospace;font-size:12px">BUG2:</span></div><div><span style="background-color:rgb(250,250,250);color:rgb(51,51,51);font-family:consolas,menlo,"liberation mono",courier,monospace;font-size:12px">- to rename produced dfu.bin filename to something relative i.e. </span></div><div><span style="background-color:rgb(250,250,250);color:rgb(51,51,51);font-family:consolas,menlo,"liberation mono",courier,monospace;font-size:12px">dfu-boot-loader-arm-SAM7.bin</span></div><div><span style="background-color:rgb(250,250,250);color:rgb(51,51,51);font-family:consolas,menlo,"liberation mono",courier,monospace;font-size:12px">- to place link to binary of loader(s) at your instructions.</span></div><div><br></div><div>installed also crosstool-ng - but arm-elf-gcc not found too</div><div><br></div><div>So, we have fails using dfu-util and unmaking state of firmware which gives use of SAM-BA impossible due to insufficient <span style="background-color:rgb(250,250,250);color:rgb(51,51,51);font-family:consolas,menlo,"liberation mono",courier,monospace;font-size:12px">dfu-boot-loader-arm-SAM7.bin aka dfu-bin</span>.</div><div><br></div><div>This situation looks like failed "smoke test"...</div><div><br></div><div>Please help me to solve these issues.</div><div><br></div><div>Regards,</div><div><br></div><div>Alexandr</div><div><br></div><div>-- <br><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><a href="https://L-in-K.com/147a258u369">https://L-in-K.com/147a258u369</a><div style="color:rgb(0,0,0);font-family:"times new roman";font-size:0px;display:inline-block;vertical-align:top;max-width:440px"></div></div><div dir="ltr"><br></div></div></div>
</div></div>