-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Greaseweazle stuck on read #24
Comments
Its seems, as RP2040 have insufficient voltage to trigger head stepper motor controller to work. |
Addendum: I tryied three different FDD, and state is same. |
Same problem here. Too late to track down the regression, but this got me up and running: git checkout b650a78743eca695132833b026f2771f45e1cdb0
echo 'diff --git a/src/Adafruit_Floppy.h b/src/Adafruit_Floppy.h
index 85993e1..9d44416 100644
--- a/src/Adafruit_Floppy.h
+++ b/src/Adafruit_Floppy.h
@@ -128,7 +128,7 @@ public:
adafruit_floppy_disk_t format = IBMPC1440K);
bool begin(void);
- bool end(void);
+ void end(void);
uint32_t size(void);
int32_t readTrack(uint8_t track, bool head);
diff --git a/src/Adafruit_MFM_Floppy.cpp b/src/Adafruit_MFM_Floppy.cpp
index 174cebd..e10f407 100644
--- a/src/Adafruit_MFM_Floppy.cpp
+++ b/src/Adafruit_MFM_Floppy.cpp
@@ -53,10 +53,10 @@ bool Adafruit_MFM_Floppy::begin(void) {
@returns True always
*/
/**************************************************************************/
-bool Adafruit_MFM_Floppy::end(void) {
+void Adafruit_MFM_Floppy::end(void) {
_floppy->spin_motor(false);
_floppy->select(false);
- return true;
+ // return true;
}
/**************************************************************************/
' | patch -p1 It just basically reverts to an earlier version of the code and patches a return type change. Afterwards I uploaded and was able to get a flux file from a disk without any issues. |
Hey @AidenShaw2020, I've struggled with the same issues. One disk would behave like yours for reading, another read fine. I've found using |
Hi @ca0abinary. For serial debug, you can use CH340 USB to TTL UART (for. example: https://www.laskakit.cz/prevodnik-usb-ttl-uart--ch340), and connect it RX on USB TTL to GPIO 0 (and GND to GND of course), and baudrate is: 115200. |
Does the most recent code work with the resister? I remember reading about a fix for fluxengine. |
With new code, is state same as begin of this issue (doesnt start read). |
Thanks for testing. For me the 6.8k resistor inline with IDC30 doesn't help
I've determined the regression started at commit d6dc0fe. Will look into it more later today. |
Maybe try it with different value (between 4.7 - 10k). |
Hey there, I've tried release I'm using the following pinout:
Tried to read using the following command with these results:
Serial console shows this:
I've tried from MacOS and Linux with the same results. No index pulse found. Any suggestions? Thanks. |
My bad. I was using the wrong platform. I had to choose I’m using a 4.7K pull-up resistor to 3.3V on READDATA. |
Hi, i have issue with Adafruit_Floppy (Raspberry Pi Pico RP2040 (philhower core)), using Greaseweazle.
When i try to read ibm.1440 (gw read test.img --device=com14 --format=ibm.1440), floppy drive goes to green and spin, but i dont get any data and progress, and head doesnt move.
I use last release (0.2.0) of Adafruit_Floppy and Greaseweazle 1.4.
Can you help me please?
Thanks
The text was updated successfully, but these errors were encountered: