keirf / flashfloppy

Floppy drive emulator for Gotek hardware
Other
1.34k stars 193 forks source link

New GOTEK with AT32F415RBT7 #532

Closed ghost closed 3 years ago

ghost commented 3 years ago

[Moved to a new issue]

Hi ! I use on my all Gotek HXC and FF firmware. Recently I order 2 Goteks with AT32F415CBT7 First, I try to use it with FF last version (so 3.28 and tested also beta 4) No problem to flash, Oled work, navigation work, ... BUT, interface NOT detected and so, don't work, on Amiga (500, 600 no matter) NOT detected with or without FF.cfg I think it's 'normal' and because the last firmware 3.28 is not adapted to this new Chipset ? If it's the case, any idea when it will be supported ? Thks a lot.

Already tested, Gotek not detected on my computer. ...

I'v just re-try again.

On boot :

Info : PCB SFRKC30AT4 with AT32F415RBT7 This Amiga (A600) work good (with other Gotek (SFRC922D under 3.28 for example) and Original Floppy reader. On This new gotek PCBs, No jumper only S0 connected. (and buzzer) Tested on another gotek AT32F415RBT7, same problem... seams work good but, interface not detected.

IMG_20210909_121007 IMG_20210909_121002

Tested also on other Amiga (500 Rev6) Same... interface not detected.

If I remember well, when the ribbon is wrong connected, a message appear on OLED In my cas, no matter the connexion is good or bad (so ground reversed or well connected) No message to warn. Strange... I also try the 'Motor Signal' hack, always same problem. I try also With or without ff.cfg, no matter, same issue.

keirf commented 3 years ago

I have report from Facebook group that someone has one of these working. The board looks identical except the model name is printed as SFRKC30.AT4 instead of SFRKC30AT4.

ghost commented 3 years ago

Yep, strange. If you wan I can do some test. I have logical analyser and osciloscope.

keirf commented 3 years ago

I have further report from maker than the two models (with and without dot) are identical just from different PCB factories and hence he added the dot to discriminate them.

And someone else has reported the SFRKC30.AT4 variant works for them.

You may want to buzz out floppy interface pins to MCU pins. It's a little tedious. You'd do it with reference to the MCU pinning in the datasheet http://www.arterytek.com/download/DS_AT32F415_V1.03_EN.pdf

And check that floppy pins are connected to MCU port pins (PAx, PBx, etc) same as in the original Gotek schematic: eg https://cortexamigafloppydrive.files.wordpress.com/2021/01/gotek_usb_floppy_emulator_schematic_resized1.jpg

keirf commented 3 years ago

Beyond this, I need one of these offending PCBs in my hand to be able to test it myself.

keirf commented 3 years ago

I have someone sending me a SFRKC30.AT4. Note it's the dotted model, but is expected to be identical to your PCB.

keirf commented 3 years ago

By the way, actually this RBT7 chip is pin compatible with the original STM32 chip. So you can simply buzz to physical pin numbers on the MCU package and cross-check those to the STM32 schematic. There's not even any need to map to PAx/PBx/PCx port numbers.

ghost commented 3 years ago

Work in Progress. According to the PDF : LQFP64 we have AT32

Can you validate that please.

keirf commented 3 years ago

Correct

ghost commented 3 years ago

Well. For me, all is good. Except PF6 & PF7 not connected to ground but I don't think it's the problem here.

Gotek_AT32F415RBT7.pdf

Well, you'r right, It should work... Maybe the Ready signal ? I going to see signals with my osciloscope.

ghost commented 3 years ago

Just add some information. I trying with Kickstart 3.1, Enter to Early-Boot and see if Amiga See DF0 It saw it. (so S0 is good)

When I powerOn the Amiga, I can ear a floppy access (very quicly and short from y buzzer.... click...) (LED - L5) stay bright.

Enter to menu et select 'Exit and re-insert' But... no change. (and not sound from my buzzer), dsk_change don't work ? Going to check this.

Trace Dsk_Change (pin2 floppy) is well connected to U7 pin4. Scope of Dsk_Change (directly connected to Gotek floppy connector pin 2 -to-> My osciloscope.)

PowerOn Amiga -> Dsk_Change go to 5V and stuck to it Ok, Enter in the menu of FF with OLED and select 'Exit and re-insert', validate it... and... No change on my scope, Stuck to 5V.

Probe, PB7 (on 74HC04D pin13) Always test with 'Exit and re-insert' menu Stuck to 5V...

Try another Gotek Card with 3.28 firmware (Gotek SFR922D - STM32F105) Boot OK? lauch my adf image (always the same), Work good. Once Test kit lauched, change this board by the AT32F415RBT7 Enter to Drice menu and test It : Floppy IDs : 00000000 (DS-DD 80) F5 : SIGNAL TEST --> DF0: No Track0 (Drive not present?) Motors=( ) CIAAPRA=0xfc ( ) 0 Index Pulses (period 54.551ms); MTROff->RDY1 0ùs Off course, F5, F6, F7 and F8 at this step don't work.

Return to menu and select F6 Read Test -- DF0 : Double Density 80-Cyl Read Test -- No READY signal : PC or Escom drive ? No Track 0: Drive Not present.

I going to scope T0 and co

ghost commented 3 years ago

Here some capture.

Hardware : Amiga600 + FlashFloppy Firmware 3.28 + Dongle USB with Only 1 adf file (Amiga Test Kit)

With Gotek SFRC922D - STM32F105 Graphic start with PowerOn 5V and boot quickly to the adf file Gotek_WorkGood

Same USB dongle but on the New Gotek SFRKC30AT4 - AT32F415RBT7 Gotek_DONTWork

I've just test 'exit and re-insert' menu. No change on all signals.

keirf commented 3 years ago

Have you tried another usb drive? Maybe the Artery chip is fussier.

ghost commented 3 years ago

Another usb drive ? For ? My Logic analyser ? No need to, I have prove also with my Osciloscope (hantek), no signal present on this news Gotek (except Motor_On)

This 2 new gotek have been programmed with 'Artery ISP Programmer_V1.5.47' First Broke the read protection and erase the chip and second program with the last FF firmware. Same process like with STMFlashLoader. On the first 'new' gotek, leave like this and test It (So don't respond like floppy, but well progammed (checked after program it) and I See on the OLED the menu of FlashFloppy. On the second 'new' gotek, same programmation but after I change to FF v4 (beta) with USB dongle and press 2 buttons when Amiga Boot. So, on this 2 new goteks, tested on Amiga500 and Amiga600 Tested with FF 3.28 and beta 4, they behave the same. Seams working (OLED see 3.28 on boot, and I can move into menus) It detected on Amiga (early boot see DF0 and if I made hot swap, I can check with menu of 'Amiga Test Kit') But.... stuck in coma.

If I understand the 'step' of floppy reader (and so gotek) Focus

Amiga probe if they are S0 or S1 present into the chain. If yes, Amiga active 'Motor_On' to have some rotation (2 I think, seeking index maybe ?) Check Ready_Signal, and send go to 'T00' Not sure about the order of process...If you have a link !

Maybe the Ready Signal is not well replied by this gotek and so, process is stopping. Maybe is an electronic problem. Maybe I have 2 goteks broken. I don't know but I'm still searching :)

keirf commented 3 years ago

Could be a drive-select issue: That is floppy pin 10 (SEL0) needing to reach MCU pin 14 (PA0).

If the MCU does not think it is selected, it will not drive any output pins at all.

Trying another USB drive in the Gotek is just belt and braces. It's an easy test. What is your current USB drive make model?

keirf commented 3 years ago

Just received SFRKC30.AT4 model in the post. Jumpered to S0, tested on my Amiga 500... It works of course ;)

EDIT: MCU is A32F415RBT7 same as yours.

ghost commented 3 years ago

Could be a drive-select issue: That is floppy pin 10 (SEL0) needing to reach MCU pin 14 (PA0).

But, In this case, I will not have DF0 detected on the Early-Boot isn't it ?

When you tell 'USB drive' you spoke about USB stick ? It's a 32G, I don't know the name of this model but it's a 'standard', it's work good on other Gotek. It's detected by this new gotek and I can choose/naviguate on it if I write a lot of ADF file on it. I use it on this new gotek to update/write the firmware 4Beta to 3.28, no problem. I can test another 'usb drive' no problem.

Just received SFRKC30.AT4 model in the post. Jumpered to S0, tested on my Amiga 500... It works of course ;)

Sh... , what is wrong on my side... very strange.

I going to test another 'usb drive' Proble/trace signal(s) Re-flash with anoter tools...

Another strange thing. So I flash this 2 new model with USB A-A cable (same cable I use since a long time, it's work good) But now, On this 2 new models flashing in 3.28 FF, If I try to re-flash with A-A cable and so wire on Boot-3V and Tx-5V.) ...Device NOT detected on PC... nothing... Very very very strange.

ghost commented 3 years ago

Humm I think I find It. (need to correct to validate that) They are line cut betwen M0-S1-S0 So indeed, on one of the goteks, SEL0 is cut between AMIGA and MCU Just 2mn to correct that and check on another gotek if it's the same problem

ghost commented 3 years ago

Goal. :) That was it.

Line of SEL0 was cutting, with a wrap, it's work :)

I traced the SEL0 signal to VIAS to MCU, NOT directly pin10 to MCU This was my mistake, don't trust what you don't see. We always must traced from end to end, not stoping to an VIAS

There was a cut between the VIA (coming from MCU pin 14 (PA0)) and the jumper(s), below jumper exactly. o_O' I just checked on the second Gotek, same H/W issue. Easy to repair :)

It's normal in this case (line of SEL0 cut), amiga was detected anyway DF0 on Early boot ? PS : You can close this thread.

Thks a lot for your advices.

keirf commented 3 years ago

Amiga always assumes it has DF0. Since all Amigas (except CDTV/CD32 "consoles") have at least one floppy drive.