[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gforth] I2C framework
From: |
Dennis Ruffer |
Subject: |
Re: [gforth] I2C framework |
Date: |
Mon, 9 May 2016 09:56:44 -0700 |
Another interesting unknown, on Fedora 22, I get:
address@hidden Forth]# gforth i2c.fs
sh: --silent: command not found
in file included from *OS command line*:-1
i2c.fs:23: libtool compile failed
>>>end-c-library<<<
Backtrace:
$B68C8B04 throw
$B68EA534 c(abort")
$B68EABD8 compile-wrapper-function1
DaR
-----Original Message-----
From: Dennis Ruffer [mailto:address@hidden
Sent: Sunday, May 8, 2016 8:48 PM
To: 'Bernd Paysan' <address@hidden>; address@hidden
Subject: RE: [gforth] I2C framework
From: Dennis Ruffer [mailto:address@hidden Sent: Saturday, May 7, 2016
6:53 PM
>From: Bernd Paysan [mailto:address@hidden Sent: Saturday, May 7,
>2016
2:46 PM
>>>Am Freitag, 6. Mai 2016, 15:14:54 CEST schrieb Dennis Ruffer:
>>>> Does anyone have an I2C framework on gforth that I can "borrow"?
>>>
>>>> I see that unix/serial.fs has most of the pieces, but it would be
>>> easier if someone had already tested the ioctl I2C_RDWR interface.
>>>
>>> Thanks for whatever pointers anyone can provide.
>>
>>I haven't tried yet, but one of my ARM boards actually has something
hooked up to the i2c bus, so I could try...
>
>I'll have to do something with some open hardware design then and post it.
>Maybe the Raspberry Pi has something.
Here's a start, but this one gives:
address@hidden:~/Documents/Forth $ gforth i2c.fs
in file included from *OS command line*:-1
i2c.fs:26: Undefined word
>>>O_RDWR<<< open throw
Backtrace:
$B68FBEDC throw
$B6908600 no.extensions
$B68FDE10 compiler-notfound1
But when I used r/w, I got:
address@hidden:~/Documents/Forth $ gforth i2c.fs Gforth 0.7.2, Copyright (C)
1995-2008 Free Software Foundation, Inc.
Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'
Type `bye' to exit
i2c-detect
/home/pi/.gforth/libcc-named/.libs/i2c.so.0: undefined symbol:
gforth_c_open_ann_n
:1: Invalid name argument
>>>i2c-detect<<<
Backtrace:
$B69CF7D8 throw
$B69CF900 link-wrapper-function
$B69D0730 open
$B69D080C open-i2c-dev
It's been a while since I've gotten this deep, so excuse my ignorance.
But help please. ;)
DaR