Discussion:
[Arm-netbook] passthrough card stm32f072 firmware
Luke Kenneth Casson Leighton
2017-03-14 07:10:46 UTC
Permalink
Hi Luke,
Le Mon, 13 Mar 2017 16:13:26 +0000
ah! albert! did you get my email, am looking to invite you to help
with I2C EEPROM reading for the passthrough card (which has another
STM32F072...)
Yes -- sorry I did not answer this week-end. Of course I'd be happy to
help!
aawesome okaaayy here's the schematic:
http://hands.com/~lkcl/eoma/passthrough/
EOMA68_PASSTHROUGH_3.pdf

i just realised i made a couple of mistakes, the reset
"current-sinking-protecting-against-overvoltage" diode is the wrong
way round, and the BOOT0 TP should be a 3.3v not ground oh well that
explains a lot about why i can't see the damn thing on the USB bus
after trying to reset it... :)

ok the primary task that's needed is: to read the VESA I2C EEPROM
from the microdesktop board and to feed the resultant data out, on
request, to the TFP401a. so it's two main parts:

* read (in bit-banging mode!) an I2C EEPROM
* emulate an I2C EEPROM (probably best done via DMA and interrupts)

let's track it through - microdesktop pinouts:
http://hands.com/~lkcl/eoma/microdesktop/
v1.7 schematic

microdesktop SCL 17
microdesktop SDA 22

and that goes through to....

GPIO_2 on passthrough schematic
MCU_PWM0 on passthrough schematic

which are

PC6 (needing to be SCL)
PA8 (needing to be SDA)

respectively.


the *secondary* task is that a userspace-programming firmware
bootloader/uploader is needed... *on the USB* interface - the
STM32F072 doesn't actually have one. i could have left BOOT0 pulled
HIGH so that the STM32F072 always goes into bootloader mode but it may
be needed for early power-on initialisation and to have some sort of
"default" EDID response as well as bring up the TFP401a in cases where
people simply don't upload firmware to it at all.


the first part is critical to the functionality i believe - a first
prototype phase would be to just set up a static EDID buffer (static
string) and return that as an emulated I2C EEPROM "read" operation.

btw if you haven't _got_ an I2C EEPROM of some kind (AT24C64) kicking
around then perhaps simply wiring up two I2C interfaces back-to-back
in DMA mode would do the trick :)

*really* appreciated your help here albert.

l.

_______________________________________________
arm-netbook mailing list arm-***@lists.phcomp.co.uk
http://lists.phcomp.co.uk/mailman/listinfo/arm-netbook
Send l
Luke Kenneth Casson Leighton
2017-03-14 07:32:17 UTC
Permalink
sorry albert just checked the schematics and also watterott's
HDMI_Display schematic - it's HDMI DDC that the STM32F072 needs to
emulate! but looking at the watterott schematics that's just an
EEPROM (again).

l.

_______________________________________________
arm-netbook mailing list arm-***@lists.phcomp.co.uk
http://lists.phcomp.co.uk/mailman/listinfo/arm-netbook
Send large attachments to
Albert ARIBAUD
2017-03-16 15:40:05 UTC
Permalink
Hi Luke,

Le Tue, 14 Mar 2017 07:32:17 +0000
Post by Luke Kenneth Casson Leighton
sorry albert just checked the schematics and also watterott's
HDMI_Display schematic - it's HDMI DDC that the STM32F072 needs to
emulate! but looking at the watterott schematics that's just an
EEPROM (again).
l.
OK, I'm lost :) and not really familiar with the passthrough card so let
me try to find my bearings back; just stop me when I'm wrong. The goal
is that the passthrough card advertise on its HDMI connector's I2C the
display capabilities of the microdesktop it is slotted into. Correct?

So at the interface level, it should behave as an I2C slave EEPROM wrt
DDC_SDA and DDC_SCL (that's I2C1 on the STM32) and as an I2C master
wrt the EOM68 connector's I2C. Right?

Now, what I am not sure about yet is whether there are any conversion
to be made between the I2C data read from the microdesktop(s I2C and
the data to be provided on the HDMI DCC IC2.

Amicalement,
--
Albert.

_______________________________________________
arm-netbook mailing list arm-***@lists.phcomp.co.uk
http://lists.phcomp.co.uk/mailman/listinfo/arm-netbook
Send large attachments to arm-netbo
Luke Kenneth Casson Leighton
2017-03-17 07:23:27 UTC
Permalink
---
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68
Hi Luke,
Le Tue, 14 Mar 2017 07:32:17 +0000
Post by Luke Kenneth Casson Leighton
sorry albert just checked the schematics and also watterott's
HDMI_Display schematic - it's HDMI DDC that the STM32F072 needs to
emulate! but looking at the watterott schematics that's just an
EEPROM (again).
l.
OK, I'm lost :) and not really familiar with the passthrough card so let
me try to find my bearings back; just stop me when I'm wrong. The goal
is that the passthrough card advertise on its HDMI connector's I2C the
display capabilities of the microdesktop it is slotted into. Correct?
So at the interface level, it should behave as an I2C slave EEPROM wrt
DDC_SDA and DDC_SCL (that's I2C1 on the STM32) and as an I2C master
wrt the EOM68 connector's I2C. Right?
no, ignore the EOMA68 connector entirely - that has nothing to do with this.

the pins are the ones i listed. which is *NOT* the EOMA68 I2C pins.
it's two *SEPARATE* pins which is why it really should be done as
bit-banging.
Now, what I am not sure about yet is whether there are any conversion
to be made between the I2C data read from the microdesktop(s I2C and
the data to be provided on the HDMI DCC IC2.
nnnope! i would have said. it's very very simple. just straight
"read EDID data from EEPROM then replay EDID data from EEPROM.".

that's all that's needed.

l.

_______________________________________________
arm-netbook mailing list arm-***@lists.phcomp.co.uk
http://lists.phcomp.co.uk/mailman/listinfo/arm-netbook
Send large attachments to arm-***@files
Albert ARIBAUD
2017-03-17 19:42:52 UTC
Permalink
Bonjour,

Le Fri, 17 Mar 2017 07:23:27 +0000
Post by Luke Kenneth Casson Leighton
---
https://www.crowdsupply.com/eoma68
On Thu, Mar 16, 2017 at 3:40 PM, Albert ARIBAUD
Hi Luke,
Le Tue, 14 Mar 2017 07:32:17 +0000
Post by Luke Kenneth Casson Leighton
sorry albert just checked the schematics and also watterott's
HDMI_Display schematic - it's HDMI DDC that the STM32F072 needs to
emulate! but looking at the watterott schematics that's just an
EEPROM (again).
l.
OK, I'm lost :) and not really familiar with the passthrough card
so let me try to find my bearings back; just stop me when I'm
wrong. The goal is that the passthrough card advertise on its HDMI
connector's I2C the display capabilities of the microdesktop it is
slotted into. Correct?
So at the interface level, it should behave as an I2C slave EEPROM
wrt DDC_SDA and DDC_SCL (that's I2C1 on the STM32) and as an I2C
master wrt the EOM68 connector's I2C. Right?
no, ignore the EOMA68 connector entirely - that has nothing to do with this.
the pins are the ones i listed. which is *NOT* the EOMA68 I2C pins.
it's two *SEPARATE* pins which is why it really should be done as
bit-banging.
Now, what I am not sure about yet is whether there are any
conversion to be made between the I2C data read from the
microdesktop(s I2C and the data to be provided on the HDMI DCC
IC2.
nnnope! i would have said. it's very very simple. just straight
"read EDID data from EEPROM then replay EDID data from EEPROM.".
that's all that's needed.
OK, got it now.

There is no firmware started yet for the passthrough card at
Post by Luke Kenneth Casson Leighton
l.
Amicalement,
--
Albert.

_______________________________________________
arm-netbook mailing list arm-***@lists.phcomp.co.uk
http://lists.phcomp.co.uk/mailman/listinfo/arm-netbook
Send la
Luke Kenneth Casson Leighton
2017-03-18 19:25:07 UTC
Permalink
Post by Albert ARIBAUD
Bonjour,
Le Fri, 17 Mar 2017 07:23:27 +0000
OK, got it now.
There is no firmware started yet for the passthrough card at
correct - yes please. feel free to make a sibling directory to the laptop one.

l.

_______________________________________________
arm-netbook mailing list arm-***@lists.phcomp.co.uk
http://lists.phcomp.co.uk/mailman/listinfo/arm-netbook
Send large attachments to arm-***@f
Albert ARIBAUD
2017-03-21 21:04:17 UTC
Permalink
Bonjour,

Le Sat, 18 Mar 2017 19:25:07 +0000
On Fri, Mar 17, 2017 at 7:42 PM, Albert ARIBAUD
Post by Albert ARIBAUD
Bonjour,
Le Fri, 17 Mar 2017 07:23:27 +0000
OK, got it now.
There is no firmware started yet for the passthrough card at
scratch.
correct - yes please. feel free to make a sibling directory to the laptop one.
l.
OK. I'm currently busy but I'll do it this week-end.

Amicalement,
--
Albert.

_______________________________________________
arm-netbook mailing list arm-***@lists.phcomp.co.uk
http://lists.phcomp.co.uk/mailman/listinfo/arm-netbook
Send large attachments to arm-***@files.phco
Luke Kenneth Casson Leighton
2017-03-21 21:07:10 UTC
Permalink
---
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68
Post by Albert ARIBAUD
Post by Luke Kenneth Casson Leighton
correct - yes please. feel free to make a sibling directory to the laptop one.
l.
OK. I'm currently busy but I'll do it this week-end.
no problem there's plenty of time.

_______________________________________________
arm-netbook mailing list arm-***@lists.phcomp.co.uk
http://lists.phcomp.co.uk/mailman/listinfo/arm-netbook
Send

Loading...