I'm going to use the i2c.c from lm32 fw, but to make a i2c slave acting like an EEPROM
so I'm going to need a master to test my code
I'm thinking of using my Minnow board Max which has i2c pins and runs Debian Jessie
rohitksingh
ysionneau: ohkay... it should work, I haven't tried using it as slave yet...But, I can try that
any problem you are encountering?
Minnowboard Max side must be working well and good, i guess?
ysionneau
so far I don't have much to test
but I'll keep you posted if I have any issue or news
12:48 < rohitksingh> Minnowboard Max side must be working well and good, i guess? < it's a pretty good machine, I'm using it as my email server
rohitksingh
ysionneau: Awesome! Pls do inform me in case of any issues!
ysionneau
very kind of you, thx!
what's your timezone?
I'm UTC+1
rohitksingh
ysionneau: I had looked about Minnowboard Max, ~6 months back...neat little board....
ysionneau
yep
rohitksingh
mine is GMT+5:30
ysionneau
very little power consumption, no fan (so : no noise), and ... x86! so all your preferred OS are working
rohitksingh
I must try it! Just that it is little inaccessible in India at affordable rate (w/o huge import duties)
ysionneau
arg
I think I had lots of shipping cost as well :/
rohitksingh
I'm generally available online everyday from now to 7 hrs from now (UTC 12:00PM to UTC 7:00PM)
yeah...shipping also is around 30 USD :/
_florent_
ysionneau: are you sure your i2c slave will be fast enough? You have no restriction using bitbanging when you are the master, but when you are the slave you are not controlling the clock, so you will probably need to implement it in hardware (reuse code from edid)
rohitksingh
yeah...thats a valid point...
if hardware implementation is possible/allowed, for slave it would be better to go for it
ysionneau
ok, first short between gnd+vcc , board reboot
I hope I won't kill my email server
_florent_: ah good point
_florent_
that the reason why edid is done in hardware
ysionneau
yep I saw your implementation
mithro
i2c clock rate is either 100kHz or 400kHz
_florent_
that's not mine, sb0 did it
ysionneau
ah ok
_florent_
mithro: so that's probably too fast for a cpu that is doing others things
rohitksingh
mithro: 10kHz also is an allowed speed IIRC
mithro
_florent_: The lm32 runs at ~50MHz, right?
_florent_
yes
ysionneau
means 100 times the speed
but bitbanging is really slow
but maybe 100 instructions per cycle are enough
mithro
How many cycles per instruction?
ysionneau
(per i2c cycle)
rohitksingh
mitro: sorry, 10KHz not defined for I2C..only allowed in SMBus...I take my words back :p
*mithro
mithro
If you have 100 instructions per clock transition seems pretty dooable
ysionneau
yep
_florent_: for now I think we want to be able to act as a slave while doing nothing else
so full time polling as a slave
_florent_
that's for the FX2 configuration?
ysionneau
yes
_florent_
what's the size of the emulated EEPROM?
ysionneau
you want to put everything in blockram :p
mithro: what's the size of the fx2 fw?
mithro
16k
_florent_
I'm just going to remove the big buffer of 1280*8 lines for the encoder, so yes there will be block rams availables :)
mithro
I think kbytes but it could be kbit
ysionneau
that can fit in block rams
_florent_
removing this buffer reduce blockram usage from 88% to less than 50%
mithro
_florent_: \o/
ysionneau
but blockram issue is that you need to re synthesize the bitstream to change the fx2 fw
_florent_
why?
ysionneau
or you give access to the blockram via wishbone/etherbone from the host
_florent_
yes, that's what is done for edid
ysionneau
having the fw in spi flash is better I think
so that when you change it, and you reboot, it stays