Thursday, November 8, 2012

Nexus 7

Well, been a little while since I've updated this, school seems to keep me pretty busy. However, I will have some free time this weekend during which I hope to work on (and maybe complete) a project or two. Which should mean more posts here!

As for the title of the post, I did just recently get a nice new toy/productivity device, a Google Nexus 7 (writing this post on it now in fact). I've already rooted it, and I plan on doing a few more fun/interesting things with it soon.

Hopefully I will be able to write up some posts and perhaps guides for some of what I do (plenty of rooting guides out there as is, but few if any custom chroot ones, I will be setting mine up with Arch to match my laptop). Once I have that properly set up I should be able to edit code, and even compile while on the go, amongst other things, which should translate into more posts here.

I'm also planning on being more active on Google+ now, so if you enjoy this blog and wanna chat/see smaller posts from me check me out there (I believe it's linked to this account, I will post a link later though if needed).

More to come soon!

Saturday, September 29, 2012

STM32F4 Discovery Hello World (with blinking lights!)

What better way to start off a new blog than with a hello world!? Last week a lovely little STM32F4 discovery board arrived at my door from digikey and this weekend I finally got around to hacking on it. First step was to set up a toolchain (I'm on Linux and using the summon arm toolchain as of now), this was pretty simple to do. Then I downloaded the development libraries from ST, which can be found here, along with tons of other great info about the microcontroller included on the Discovery board.

The next step was to set up a nice, simple, and adaptable template project that I could use as a basis for future developments. Parts of this were adapted from a template I set up for the STM32F1 that I had used previously, along with start-up and linking code from ST's examples. In the future I may personalize more of it, but for now it suits me just fine. The code in there now blinks the four LED's in order, clockwise from green to orange, then red and blue. It's a very simple example, but it's not hard to adapt this little code to do a whole lot more! All the code for this project can be found here.

After creating the code and compiling it, I used a jtag adapter to program the chip itself. The Discovery board comes with an ST-Link programming adapter, but the Linux support with that is somewhat minimal from what I've seen, and I already had my jtag adapter and environment set up how I liked it.

I may write a tutorial soon describing the process of setting up something like this, as well as one on how to use the template "properly". I will also be posting here regularly with updates on various projects made with this microcontroller, including some LCD interfacing soon hopefully!

Here is a little video of the demo running(sorry for the shaky camera, just using my cell phone right now):


And some nice higher resolution photos of the board itself:







This shows my JTAG debugger(yellow PCB) as well

Anyway, that's all for now~ Enjoy!

Monday, September 17, 2012