<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TKJ Electronics &#187; tlied2</title>
	<atom:link href="http://elec.tkjweb.dk/blog/author/tlied2/feed/" rel="self" type="application/rss+xml" />
	<link>http://elec.tkjweb.dk/blog</link>
	<description>The electronics-blog</description>
	<lastBuildDate>Mon, 06 Sep 2010 17:01:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>STM32 Peripheral Notes</title>
		<link>http://elec.tkjweb.dk/blog/2010/01/stm32-peripheral-notes/</link>
		<comments>http://elec.tkjweb.dk/blog/2010/01/stm32-peripheral-notes/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 07:46:36 +0000</pubDate>
		<dc:creator>tlied2</dc:creator>
				<category><![CDATA[ARM Projects]]></category>

		<guid isPermaLink="false">http://elec.tkjweb.dk/blog/?p=228</guid>
		<description><![CDATA[Got some sensors hooked up to my header board. The code is ugly and needs work, but gets data from stuff. UART1@115200 = ft232 USB adapter (todo change to internal usb) &#8211; for debugging UART2@9600 = SFE 16&#215;2 SerLCD (For Display) I2C1@100KHz = TMP102 (temperature) and HMC6352 (compass) TMP102: Compatible with LM75 TIe ADD0 to [...]]]></description>
			<content:encoded><![CDATA[<p>Got some sensors hooked up to my header board.<br />
The code is ugly and needs work, but gets data from stuff.</p>
<p>UART1@115200 = ft232 USB adapter (todo change to internal usb) &#8211; for debugging<br />
UART2@9600 = SFE 16&#215;2 SerLCD (For Display)<br />
I2C1@100KHz = TMP102 (temperature) and HMC6352 (compass)</p>
<p>TMP102:</p>
<p>Compatible with LM75<br />
TIe ADD0 to GND for default address 0&#215;90<br />
I just grabbed the LM75 stuff from ST&#8217;s STM32103B EVAL Demo kit (tsensor.h/c) and ripped out the LCD stuff &#8211; TODO work on formatting, return types, etc</p>
<p>HMC6352:</p>
<p>Get Heading: Send 0&#215;41 (&#8216;A&#8217;) and read in two bytes of data / 10 for decimal degrees</p>
<p>I think I like I2C, this was all entirely too easy <img src='http://elec.tkjweb.dk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>TODO: Improvements so maybe I can post some code, and should do a driver for the ADXL345 accelerometer.</p>
<p>New Gyro, Cam, LCD on the way to figure out as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://elec.tkjweb.dk/blog/2010/01/stm32-peripheral-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>STM32 Buildchain</title>
		<link>http://elec.tkjweb.dk/blog/2010/01/stm32-buildchain/</link>
		<comments>http://elec.tkjweb.dk/blog/2010/01/stm32-buildchain/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 10:01:41 +0000</pubDate>
		<dc:creator>tlied2</dc:creator>
				<category><![CDATA[ARM Projects]]></category>

		<guid isPermaLink="false">http://elec.tkjweb.dk/blog/?p=222</guid>
		<description><![CDATA[So I&#8217;m quite frustrated with trying to roll my own arm-elf- toolchain. Building it was easy enough, but getting the options right is proving to be challenging. I managed to work through all the hard/soft FPU stuff with newlib, and got things to compile, but still some linker warnings/errors that result in the app crashing [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;m quite frustrated with trying to roll my own arm-elf- toolchain.  Building it was easy enough, but getting the options right is proving to be challenging.  I managed to work through all the hard/soft FPU stuff with newlib, and got things to compile, but still some linker warnings/errors that result in the app crashing on the hardware.  One day I&#8217;ll learn to debug and look into this more.</p>
<p>In the meantime, even though the download link for it is quite well hidden, I have discovered that I am quite happy with Codesourcery&#8217;s G++ Lite edition.  It includes the GNU ARM buildchain, along with some of their proprietary tools (so no, I can&#8217;t mirror it <img src='http://elec.tkjweb.dk/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  ) as an unsupported command line only free version with a license that looks very reasonable to me, so I&#8217;m pretty comfortable working with it.  Thanks to those responsible for make the Lite version exist, now if only we could get an arm buildchain in the repos&#8230; </p>
<p>To save you the trouble of accidentally downloading their full suite trial edition like I did (feel free to purchase it if you want an IDE and other tools), here is a link to the downloads:<br />
<a href="http://www.codesourcery.com/sgpp/lite/arm/portal/subscription?@template=lite">http://www.codesourcery.com/sgpp/lite/arm/portal/subscription?@template=lite</a><br />
You will want to select the EABI (first) link (unless you need a different target OS, which for an STM you probably don&#8217;t)<br />
The first links for the Installer are the easiest to use, everything is packaged in a Java installer to extract and setup your path, make links, etc)</p>
<p>I&#8217;ve been using Randomskk&#8217;s STM32 Skeleton project <a href="http://github.com/randomskk">Randomskk&#8217;s GitHub</a>, he has a rather nice blinking LED example in there (I had to change the LED pin for my board and fixup the Makefile to have tabs, but that was all painless).</p>
<p>Now to see if I can get FreeRTOS to build under arm-none-eabi &#8211; what fun, doesn&#8217;t look like it will be trivial based on the errors I&#8217;m getting so far, but I can&#8217;t imagine it should be too bad.</p>
]]></content:encoded>
			<wfw:commentRss>http://elec.tkjweb.dk/blog/2010/01/stm32-buildchain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bizarreness</title>
		<link>http://elec.tkjweb.dk/blog/2010/01/bizarreness/</link>
		<comments>http://elec.tkjweb.dk/blog/2010/01/bizarreness/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 09:36:10 +0000</pubDate>
		<dc:creator>tlied2</dc:creator>
				<category><![CDATA[TKJ Electronics]]></category>

		<guid isPermaLink="false">http://elec.tkjweb.dk/blog/2010/01/bizarreness/</guid>
		<description><![CDATA[So we all know that GSM phones can induce various sounds in unshielded amplified speakers, but ever have one take over control of your machine? I recently got a new Blackberry 8320 and switched it from T-Mobile to AT&#038;T (work phone). Whats fun is that when I set it down to the right of my [...]]]></description>
			<content:encoded><![CDATA[<p>So we all know that GSM phones can induce various sounds in unshielded amplified speakers, but ever have one take over control of your machine?</p>
<p>I recently got a new Blackberry 8320 and switched it from T-Mobile to AT&#038;T (work phone).  Whats fun is that when I set it down to the right of my keyboard (by the mouse and my Polycom) my cursor starts doing strange and interesting things when its radio is active &#8211; cursor movement, right clicks/half-clicks, etc &#8211; just weirdness.  Now if this were an RF mouse or something, sure, but this is a wired, USB, optical mouse, which makes it seem odd.  Any theories?  Anyone know if optical mice have an ADC anywhere in the input chain?</p>
]]></content:encoded>
			<wfw:commentRss>http://elec.tkjweb.dk/blog/2010/01/bizarreness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>STM32 OpenOCD Config</title>
		<link>http://elec.tkjweb.dk/blog/2010/01/stm32-openocd-config/</link>
		<comments>http://elec.tkjweb.dk/blog/2010/01/stm32-openocd-config/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 01:52:49 +0000</pubDate>
		<dc:creator>tlied2</dc:creator>
				<category><![CDATA[ARM Projects]]></category>

		<guid isPermaLink="false">http://elec.tkjweb.dk/blog/?p=208</guid>
		<description><![CDATA[Below is the openocd config I am currently using with my STM32 (Olimex STM32 header board from SFE) to program through the JTAG header on the board. Randomskk had better scripts, but they didn&#8217;t want to behave for me. Its rather minimal, but it does the job. TODO: integrate changes back into the skeleton project. [...]]]></description>
			<content:encoded><![CDATA[<p>Below is the openocd config I am currently using with my STM32 (Olimex STM32 header board from SFE) to program through the JTAG header on the board.  Randomskk had better scripts, but they didn&#8217;t want to behave for me.  Its rather minimal, but it does the job.  TODO: integrate changes back into the skeleton project.</p>
<p>Tested on FC10/FC11 with openocd 0.3.1</p>
<p>GIves some weird warning know &#8211; run with sudo openocd -f thisfile.cfg 2>&#038;1 | grep -v khz for readable output (filters the repetitious warning)</p>
<p><code><br />
telnet_port 4444<br />
gdb_port 3333</p>
<p>interface parport<br />
parport_port 0<br />
parport_cable wiggler</p>
<p>jtag_khz 1000<br />
jtag_speed 0</p>
<p>source [find board/olimex_stm32_h103.cfg]</p>
<p>init<br />
reset halt<br />
stm32x mass_erase 0<br />
#flash write_image main.elf 0 elf<br />
#verify_image jtag/flash.elf 0 elf<br />
flash write_bank 0 main.bin 0<br />
verify_image main.bin 0 bin<br />
reset run<br />
shutdown<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://elec.tkjweb.dk/blog/2010/01/stm32-openocd-config/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
