moreil ([info]moreil) wrote,
@ 2008-06-27 18:45:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
Current mood:Overdrawn at the karma bank

karma debt!
Ok, I'm very worried now. I think I've just incurred a huge karma debt...

So I finally upgraded the kernel for the NGW100 board I have. And it worked without need to break out the JTAG programmer. Spooky.

And then I logged in and did 'modprobe i2c-gpio; modprobe i2c-dev'. Which just worked. Really spooky.

So I write a tiny program to send and I2C message on the bus. Which compiled using the AVR32 toolchain without any breakage or mysterious messages of complaint from the depths of gcc. And it generated a binary !!!! I'm getting pretty freaked out here.

So I plugged my new expansion board I'd soldered up into the NGW100. And it didn't catch fire!!?!!?!!

So I run my program. Words fail me.

/tmp # ./i2c
opened device i2c-0
0x00000018


That's data! The first time I ran it, it give me data! Actually real data! The actual status register from the DS2482 chip! And it works every time I run it!

I need to go have a lie down, and morn the disaster that must surely be coming my way.



(3 comments) - (Post a new comment)


[info]syncretin
2008-06-30 02:56 pm UTC (link)
Heh. I foresee tsunami waveforms coming at you down that 1-wire bus, generating huge EMI and burning out the slew control circuitry. Beware the dark mouse.

(Reply to this)

code
(Anonymous)
2008-08-19 12:58 am UTC (link)
Since your amazing coder skillz got results on the 1st attempt, would it be possible to post your source code?

I'm looking to attach an i2c device to my ngw100 as well and would like to see your example.

Thanks.

(Reply to this) (Thread)

Re: code
[info]moreil
2008-08-19 01:49 am UTC (link)
See http://www.dgmo.org/ngw100software

(Reply to this) (Parent)


(3 comments) - (Post a new comment)

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…