-
Notifications
You must be signed in to change notification settings - Fork 2
/
atom.xml
305 lines (292 loc) · 16.5 KB
/
atom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title><![CDATA[mchck.org]]></title>
<link href="http://mchck.org/atom.xml" rel="self"/>
<link href="http://mchck.org/"/>
<updated>2013-08-29T17:36:52+02:00</updated>
<id>http://mchck.org/</id>
<author>
<name><![CDATA[Simon Schubert and the MC HCK project]]></name>
</author>
<generator uri="http://octopress.org/">Octopress</generator>
<entry>
<title type="html"><![CDATA[Self hosted toolchain: The MC HCK as SWD adapter]]></title>
<link href="http://mchck.org/blog/2013-08-13-self_hosted_toolchain_the_mc_hck_as_swd_adapter/"/>
<updated>2013-08-13T23:34:40+02:00</updated>
<id>http://mchck.org/blog/self_hosted_toolchain_the_mc_hck_as_swd_adapter</id>
<content type="html"><![CDATA[<p><img src="http://mchck.org/images/mchck-r4-mchck.jpg" alt="/images/mchck-r4-mchck.jpg" /></p>
<p>I am happy to announce that we have a self-hosted toolchain: The MC
HCK can now act as SWD debug adapter for other MC HCKs, without
requiring any other external debug adapters or development boards.</p>
<p>The SWD interface is a debug interface, similar to JTAG; however, it
only requires two signal lines, and it is specific to ARM processors.
In the MC HCK toolchain, we use SWD to initially program the USB
bootloader, as well as to debug code. See below for a short example
session.</p>
<!-- more -->
<p>With this, the MC HCK project has reached an important step on the way
towards creating an entirely free (FLOSS) and inexpensive modern
microcontroller platform.</p>
<h3>Bootstrapping yourself</h3>
<p>Of course, if you are starting from zero, with only blank, <a href="http://mchck.org/blog/2013-08-06-self-built-mchck-for-5-dollars/">self-built
MC HCKs</a>, you will face a chicken-and-egg problem: how to program the
first MC HCK? Head over to the wiki, which explains <a href="https://github.com/mchck/mchck/wiki/Getting-Started">how to get
started</a> using other SWD programmer options, such as the Bus Pirate or
the Bus Blaster. And thanks to our portable SWD bitbang code, other
development boards will also be able to bootstrap the MC HCK
toolchain, starting (very soon!) with an Arduino sketch.</p>
<p>Even though the MC HCK SWD adapter could be used to connect to other
microcontrollers as well, there is no specific code support yet. But
our open source friends have you covered: check out <a href="http://www.versaloon.com/">Versaloon</a> or the
great <a href="http://www.blacksphere.co.nz/main/blackmagic">Black Magic Probe</a>, which directly presents as GDB target and
whose source helped a lot in developing the MC HCK SWD toolchain.</p>
<h2>Debugging a MC HCK</h2>
<p>Debugging a MC HCK via SWD is as easy as using gdb locally:</p>
<pre class="example">
% make gdb
ruby ../../toolchain//../programmer/gdbserver.rb name=mchck:dev=/dev/serial/by-id/usb-mchck.org_MC_HCK_SWD_adapter-if00 -- arm-none-eabi-gdb -readnow -ex 'target extended-remote :1234' blink.elf
GNU gdb (Linaro GDB) 7.6-2013.05
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-unknown-linux-gnu --target=arm-none-eabi".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/corecode/devel/electronics/mchck/examples/blink/blink.elf...expanding to full symbols...done.
Remote debugging using :1234
0x00000fe8 in main () at blink.c:7
7 for (volatile int i = 1000000; i > 0; --i)
(gdb) list
2
3 int
4 main(void)
5 {
6 for (;;) {
7 for (volatile int i = 1000000; i > 0; --i)
8 /* NOTHING */;
9 onboard_led(ONBOARD_LED_TOGGLE);
10 }
11 }
(gdb) p i
$1 = 33664
(gdb) break onboard_led
Breakpoint 1 at 0x10ee: file ../../toolchain//lib/mchck/onboard-led.c, line 6.
(gdb) c
Continuing.
Breakpoint 1, onboard_led (state=ONBOARD_LED_TOGGLE)
at ../../toolchain//lib/mchck/onboard-led.c:6
6 gpio_mode(GPIO_PTC0, GPIO_MODE_OUTPUT | GPIO_MODE_DRIVE_HIGH);
(gdb) list
1 #include <mchck.h>
2
3 void
4 onboard_led(enum onboard_led_state state)
5 {
6 gpio_mode(GPIO_PTC0, GPIO_MODE_OUTPUT | GPIO_MODE_DRIVE_HIGH);
7
8 if (state == ONBOARD_LED_OFF || state == ONBOARD_LED_ON)
9 gpio_write(GPIO_PTC0, state);
10 else
(gdb) q
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) y
Detaching from program: /home/corecode/devel/electronics/mchck/examples/blink/blink
.elf, Remote target
Quitting: Remote communication error. Target disconnected.: Broken pipe.
</pre>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[Self built MC HCK for $5]]></title>
<link href="http://mchck.org/blog/2013-08-06-self-built-mchck-for-5-dollars/"/>
<updated>2013-08-06T00:00:00+02:00</updated>
<id>http://mchck.org/blog/self-built-mchck-for-5-dollars</id>
<content type="html"><![CDATA[<p><img src="http://mchck.org/images/mchck-r4-about-to-assemble.jpg" alt="/images/mchck-r4-about-to-assemble.jpg" /></p>
<p>From the beginning, the MC HCK was conceived to be not only cheap to
produce and sell, but it was also conceived to be buildable at home,
at a low cost. In this post, we’ll show how to build a MC HCK at
home.</p>
<!-- more -->
<h2>Getting the Parts</h2>
<p>All required and optional parts are listed in the <a href="https://github.com/mchck/mchck/wiki/BOM">BOM</a>. Let’s quickly
go over how to get the required ones.</p>
<h3>PCB</h3>
<p>The MC HCK boards can easily be ordered from <a href="http://www.seeedstudio.com/depot/fusion-pcb-service-2-layers-p-835.html">the</a> <a href="http://imall.iteadstudio.com/open-pcb/pcb-prototyping/im120418001.html">usual</a> <a href="http://www.hackvana.com/store/">suspects</a> in
China. Just download the <a href="https://github.com/mchck/mchck-board/tree/fab">fabrication gerbers</a> and attach them to your
order; usually you will have to create a zip file. Now wait 10 days
or so until your PCBs arrive. <i>Cost: $10 + shipping for 10 boards</i></p>
<h3>MCU</h3>
<p>You can <a href="http://www.freescale.com/webapp/search.partparamdetail.framework?PART_NUMBER%3DMK20DX128VLF5&buyNow%3Dtrue#Ordering_Information">sample</a> a compatible MCU directly from Freescale. <i>Cost: $5 for 5 MCUs.</i></p>
<h3>Passives</h3>
<p>These are common parts, and many people will already have them in some
way or another. The SMT parts are 0603 size, but the pads are large
enough to take 0805 parts as well. In case you’re still missing one
or the other part, below is a list of possible eBay sources:</p>
<ul>
<li><a href="http://www.ebay.com/itm/100-smd-capacitor-0603-kr-x7r-9bb-104-0-1uf-100nf-m-/390325999203">100nf decoupling caps</a> <i>Cost: $1.85 for 100</i></li>
<li><a href="http://www.ebay.com/itm/20x-smd-capacitor-0603-zr-y5v-7bb-225-2-2uf-16v-new-m-/320700482046">2.2μf regulator caps</a> <i>Cost: $1.89 for 20</i></li>
<li><a href="http://www.ebay.com/itm/100-pcs-smd-chip-surface-mount-0603-resistor-33-ohm-/120823881206">33Ω resistors</a> <i>Cost: $2 for 100</i></li>
<li><a href="http://www.ebay.com/itm/50-smd-smt-0603-chip-resistors-surface-mount-1k-1kohm-102-5-1-10w-rohs-/231018648475">1kΩ resistors</a> <i>Cost: $0.99 for 50</i></li>
<li><a href="http://www.ebay.com/itm/15pcs-red-0603-super-bright-smd-led-/121111954334">LEDs</a> <i>Cost: $0.99 for 15</i></li>
<li><a href="http://www.ebay.com/itm/50-x-momentary-tact-tactile-push-button-switch-smd-smt-surface-mount-3x3-5x2mm-/230914271344">buttons</a> <i>Cost: $6+$1 for 50</i></li>
</ul>
<h2>Assembly</h2>
<p>Check out this soldering stop motion sequence taken while hand
soldering a MC HCK:</p>
<iframe class="imgur-album" width="100%" height="550" frameborder="0" src="http://imgur.com/a/3qSYL/embed"></iframe>
<h2>Software</h2>
<p>Once your MC HCK boards are soldered, use the <a href="https://github.com/mchck/mchck/wiki/Getting-Started">wiki to get started</a> with
the software library.</p>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[Design revision 5 has landed]]></title>
<link href="http://mchck.org/blog/2013-08-01-design-revision-5-has-landed/"/>
<updated>2013-08-01T00:22:00+02:00</updated>
<id>http://mchck.org/blog/design-revision-5-has-landed</id>
<content type="html"><![CDATA[<p><a href="http://mchck.org/images/mchck-r5-composite.png"><img src="http://mchck.org/images/mchck-r5-composite.png" alt="/images/mchck-r5-composite.png" /></a></p>
<p>Given that we are still waiting for components for the prototype kit,
I used the opportunity to do another design iteration. The new design
features (hopefully) improved analog noise performance, and a
rearranged pin layout that allows to use the nRF24L01+ RF boards
directly on SPI.</p>
<p>As usual, you can look at the <a href="https://github.com/mchck/mchck/wiki/Schematic-and-layout">schematics and design on the wiki</a> or
<a href="https://github.com/mchck/mchck-board/tree/fab">access the fabrication outputs</a> directly.</p>
<p>During the coming weeks, I will do a post series explaining the
gimmicks and features of the MC HCK.</p>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[Prototype kit funding succesful!]]></title>
<link href="http://mchck.org/blog/2013-07-27-prototype_kit_funding_succesful/"/>
<updated>2013-07-27T00:27:50+02:00</updated>
<id>http://mchck.org/blog/prototype_kit_funding_succesful</id>
<content type="html"><![CDATA[<p><i>This text is an adapted version of what has been mailed to the
prototype supporters.</i></p>
<p>Thanks to all supporters for ordering a MC HCK prototype kit and
supporting the project! The funding has been successful: almost all
kits have been sold.</p>
<p>There are a few things that will help make the MC HCK a success:</p>
<!-- more -->
<p>First, please subscribe to the MC HCK mailinglist to follow the
progress of the prototype order, and to exchange ideas and feedback
for the MC HCK. The mailing list is extremely low volume. Go to
<a href="https://0x2c.org/mailman/listinfo/nerds">https://0x2c.org/mailman/listinfo/nerds</a> to sign up. Best do it now
and then continue reading the email.</p>
<p>Second, if you bought a prototype kit, please make sure that you
received a mail from me and that your shipping address mentioned in
the mail is correct.</p>
<p>Third, a short status update; unless something big happens, I will
not email buyers with further updates. Subscribe to the mailing list if
you would like updates.</p>
<p>I have already received most parts for the kits, but some are on
backorder. The backorder is currently estimated to arrive on Sep 21,
2013, but DigiKey’s estimation has been slipping. I am thinking about
getting these parts from a different distributor.</p>
<p>Thanks again to everybody for supporting the MC HCK project, and
thanks for subscribing to the mailing list and contributing your
ideas!</p>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[First parts for prototypes]]></title>
<link href="http://mchck.org/blog/2013-07-19-First-parts-for-prototypes/"/>
<updated>2013-07-19T00:00:00+02:00</updated>
<id>http://mchck.org/blog/First-parts-for-prototypes</id>
<content type="html"><![CDATA[<p>Everything is progressing smoothly with the prototypes! We’ve sold
40 prototype kits so far, which means that this undertaking will
really happen.</p>
<p>Today, the first parts for the kits arrived:</p>
<p><img src="https://farm6.staticflickr.com/5321/9318462017_2c2b164e6e_c_d.jpg" alt="https://farm6.staticflickr.com/5321/9318462017_2c2b164e6e_c_d.jpg" /></p>
<!-- more -->
<p>DigiKey already shipped all parts that are not on backorder. The
stacks of LiPo batteries on the left, the bag of RF modules on the
right, and the cute QFP48 programming adapters in front came from
China using a TaoBao agent, which worked out nicely as well.</p>
<p>I realized that I forgot some Schottky diodes for running the LiPo
batteries on USB input, and some ferrite beads for experiments in
reducing ADC noise – I’ll add those to the outstanding DigiKey order.</p>
<p>The parts on backorder at DigiKey are:</p>
<ul>
<li>the MCUs (already in their stock)</li>
<li>reset/programming buttons (expected Aug 29)</li>
<li>boost converters (first est. Sep 4, now expected Sep 15)</li>
</ul>
<p>What’s missing, besides antistatic + bubble bags (which are ordered),
are the PCBs. I have decided to open a patch window for now, given
that we are waiting on parts anyways. That means we can do some last
changes to the design and layout, do a small prototype run using
SeeedStudio or iTeadStudio, and still get the PCBs made in time.</p>
<p>If anybody has some not-too-intrusive suggestions for layout change,
now would be the time to speak up. Next opportunity will be after
the prototype run when we collect experiences and feedback.</p>
<p>I have two changes I want to look into:</p>
<ul>
<li>move the ferrite beads from the power input section to the analog
supply lines of the MCU</li>
<li>allow operation from LiPo without Schottky diode</li>
</ul>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[Prototypes Available]]></title>
<link href="http://mchck.org/blog/2013-06-25-Prototypes-Available/"/>
<updated>2013-06-25T00:00:00+02:00</updated>
<id>http://mchck.org/blog/Prototypes-Available</id>
<content type="html"><![CDATA[<p>We are happy to be able to announce the first prototype MC HCK dev
kits. These prototype kits are meant for early adopters, who would
like to evaluate and verify the electrical design of the MC HCK, and
those who want to contribute to the growing software library.</p>
<!-- more -->
<p>During the past months of silence, several things have ripened to
usefulness:</p>
<p>We’ve created a bootloader that allows firmware updates via USB; this
means that the MC HCK can be programmed without additional programming
adapters. This also confirms that the MC HCK is definitely usable in
its most basic form.</p>
<p>Additionally, using our custom SWD toolchain, it is possible to debug
code on the MC HCK using gdb. The toolchain currently supports the
Bus Blaster and Bus Pirate boards as SWD adapters, but native
MC HCK <-> MC HCK SWD debug support is underway.</p>
<p>The prototype kits will come in parts (not assembled) and will contain
the following components:</p>
<ul>
<li>5x MCU (pre-programmed with USB bootloader)</li>
<li>5x boards (2.0 mm, direct USB pluggable)</li>
<li>1x discretes for all parts</li>
<li>2x NRF24L01+ RF board</li>
<li>2x MCP73831T-2ACI LiPo charger IC</li>
<li>2x 180mAh LiPo battery</li>
<li>2x W25Q80BV 1MB SPI flash</li>
<li>1x MIC5205-3.3 16V LDO</li>
<li>1x LM3671MF-3.3 buck IC</li>
<li>1x TPS61097-33 boost IC</li>
<li>2x Micro-USB AB receptacles</li>
<li>3x 32.768kHz RTC XTAL</li>
</ul>
<p>This allows you to build 5 standard MC HCKs, and run RF
communications, autonomous nodes, log large amounts of data, and run
from a variety of power sources. Not all of these options have been
verified to work yet, but that’s what this prototype kit is for.</p>
<p>The price of the prototype kit will be $60, and will include PayPal
fee and international shipping, either from Switzerland or the
European Union (your choice). The total cost calculation can be found
at <a href="https://github.com/mchck/mchck/wiki/Prototypes">Prototypes</a>.</p>
<p>To get to this price level, we need to purchase parts for 50 kits, and
also sell 50 kits.</p>
<p>This is where we need your support: We need 40 brave supporters, who
will commit to buying each a prototype kit (ask your friends and
hackspace!), and ideally transfer the money ahead of time. Simon is personally
prepared to eat the cost for up to 10 kits, should we not manage to
find 50 buyers.</p>
<p>Due to IC factory lead times, we expect the kits to ship end of August.</p>
<p><i>PayPal links removed after ordering deadline.</i></p>
<p>If we don’t get to at least 40 kits within one month, we will refund
all payments.</p>
<p>Thanks for your continued interest and support!</p>
]]></content>
</entry>
</feed>