As of August 2020 the site you are on (wiki.newae.com) is deprecated, and content is now at rtfm.newae.com.

Changes

Jump to: navigation, search

CW308T-D2000

1,905 bytes added, 17:10, 6 November 2018
no edit summary
else:
raise IOError("Did not detect external clock from D2000. Confirm jumpers and rerun, or increase delay before sample."
</syntaxhighlight>
 
== Building Firmware ==
To build firmware for the D2000, you'll need to download the [https://software.intel.com/en-us/articles/issm-toolchain-only-download Intel ISSM Toolchain] and uncompress it. The toolchain comes compressed/archived in the tar.gz format, so you may need to download a program that can work with those formats (such as 7-zip on Windows). Firmware is contained in <code>hardware/victims/firmware/intel_quark/simpleserial_example/</code> and can be built with make. Note that you'll need to specify where the toolchain is located:
 
=== Specifying Toolchain Location ===
If you're using <code>cmd</code> on Windows (as opposed to something like <code>Git Bash</code> or <code>Cygwin</code>, you'll need to create a new environment variable called <code>IAMCU_TOOLCHAIN_DIR</code> and set its value to the path to the toolchain. For example, I uncompressed the toolchain to <code>C:\Users\User\Downloads</code> and set the variable to <code>C:\Users\User\Downloads\issm-toolchain-windows-2017-01-25\tools\compiler\gcc-ia\5.2.1\bin</code>. Otherwise, running <code>export /path/to/toolchain/bin</code> should work on Mac, Linux, Git Bash, Cygwin, etc.
 
=== Troubleshooting ===
* No such file or directory when building on Windows
** This is usually caused by the default make directory command (<code>md</code>) not working. First, ensure that you have <code>mkdir</code> and cp on your system by opening <code>cmd</code> and running them. Then open <code>hardware/victims/firmware/intel_quark/qmsi/base.mk</code> and change:
** <syntaxhighlight lang="makefile">
# Any other version of Windows
mkdir = @md $(subst /,\,$(1)) > nul 2>&1 || exit 0
copy = @copy $(subst /,\,$(1)) $(subst /,\,$(2)) > nul 2>&1 || exit 0
</syntaxhighlight>to:
** <syntaxhighlight lang="makefile">
# Any other version of Windows
mkdir = @mkdir -p $(1) || exit 0
copy = @cp $(1) $(2) || exit 0
</syntaxhighlight>
Approved_users, administrator
366
edits

Navigation menu