solarmon / FlashFloppy

FlashFloppy Projects
5 stars 3 forks source link

SPI not working #1

Open thbreidenbach opened 3 years ago

thbreidenbach commented 3 years ago

Hi, I wired all but could never make the Gotek show the OSD. Configuration from the Blue Pill works (with lots of jitter) but the OSD gives n nothing. -A0/A1 shorted. -KBData and Clock are wired to the blue pill rev 2 adapter -sda/scl/ground form Gotek are connected (3.3V left free).

As soon as I connect the blue pill there's no communication at all and an OLED wired to the second row of Pins on the adapter also gives no picture. Tried both jumper positions for sync.

Could you provide a working setup for the adapter including wiring and software? I successfully compiled and uploaded your version of the ff_osd fw to the blue pill. FlashFloppy on the Gotek is the latest. CPLD on the RGB2HDMI is programmed with the Beta36. Is more configuration needed?

solarmon commented 3 years ago

Hi.

Can you confirm what version of the adapter you are using, and which RGBtoHDMI board. Can you also provide some pictures of your setup.

Thank you

thbreidenbach commented 3 years ago

Hi, working on rev 2. Can provide pics late Sunday. Wired the most easy way, plugged into rgb2hdmi (9pin), kbdata and Clock (working) and the two 4pin rows for the Gotek wired to the corresponding pins (scl/sda/3.3/Gnd)

solarmon commented 3 years ago

Did you build the FF OSD adapter and RGBtoHDMI board yourself?

I admit there is not much info about how to get it all connected together and configured. So it I'll use this as a basis to put something together.

solarmon commented 3 years ago

Please refer to the following summary diagram of how it should/could be connected up:

https://github.com/solarmon/FlashFloppy/blob/main/FF%20OSD%20Adapter%20-%20Rev%202/RGBtoHDMI%20FF%20OSD%20Adapter%20Rev%202.png

image

Please also note that you need to use the FF OSD menu to set Display Enable on A15 and to set A15 to use Active Low

thbreidenbach commented 3 years ago

Thanks for the heads up, wondered if (r/g/b) is really needed, Display Enable on A15 gave a white screen before iirc but I can only try this tomorrow. Currently on the Autobahn.. The Diagramm helps a lot, thanks for contributing!!

solarmon commented 3 years ago

The RGBtoHDMI board and FF OSD adapter combined allows you to have both FF OSD displayed on both the HDMI output and the Amiga RGB output, as well as on an OLED display too.

thbreidenbach commented 3 years ago

Hey there, wired as suggested but still nothing. Board is jumpered to C/H-Sync. The OLED works when alone, but is blank (just like FF-OSD) when wired alongside the Blue-Pill. FF-OSD Setup OSD works and displays wavy on Screen. Config is set to Display Enable A15 low. Sync to 15Khz (Auto). I didn't connect the buffered output since I cannot hook up an analog monitor.

Blue Pill is programmed with your Forked FF_OSD but the Buttons have no effect on the Gotek. Gotek has the latest 3.27 on a STM32f105rbt6 Gotek from SukkoPerra.

Is there a certain option needed on the RGB2HDMI Config?

solarmon commented 3 years ago

You shouldn't need to configure anything on the RGBtoHDMI.

Please provide some pictures of your setup, including pictures of the RGBtoHDMI board and FF OSD adapter board. Did you build them yourself?

Check that you have the components soldered on correctly and that there are no shorts. Especially the R1 and R2 pullup resistors on the FF OSD adapter.

If you see FF OSD in the HDMI output then that suggests something is working (the FF OSD on HDMI is jaggy/wavy, which is expected/normal). Does the keyboard integration work - can you access and use the FF OSD menu using the keyboard?

So is the only thing not working the OLED screen? What is make/model of the OLED screen? Please provide some pictures. Does the OLED screen work with the Gotek without it connected to the FF OSD Blue Pill?

thbreidenbach commented 3 years ago

Hi, will provide pictures tomorrow, we came home later than expected.. FF_OSD Configuration via OSD works, Keyboard integration for the Config too. But E.g. using he Encoder to change an Image shows nothing so Communication between Gotek and Blue Pill Adapter seems to be faulty. Using only the Oled works, but as soon as I wire the Blue Pill Adapter too, all is blank. OLED is from AZDelivery and works.

Will provide pictures and will try another Blue Pill and RGB2HDMI Board. Got some older pictures of the setup without the pins on the blue pill adapter which arrived after the pics: https://imgur.com/a/wEhjBYY

solarmon commented 3 years ago

It sounds like the I2C communication between FF OSD and FF Gotek is not working.

Typically this is when the A0/A1 jumper is not set, and/or when there is something wrong with the I2C bus connections and/or pullup resistors. So I would be interested to show how it is all connected.

See how a standalone FF OSD setup is connected at:

https://github.com/keirf/FF_OSD/wiki/Hardware-Connections