Has anyone managed to flash an AT32F415 Gotek in Linux? #698
Replies: 4 comments 8 replies
-
I figured it out, using dfu-util. Sorry for wasting yourall's time! I should have dug deeper before giving up. |
Beta Was this translation helpful? Give feedback.
-
Updating above instructions for my AT32F435 based Gotek. Step 8 appears to be unnecessary now. Where version and free_mem are the actual values from the firmware/sram. Many thanks for saving me a lot of time figuring this out ;-) |
Beta Was this translation helpful? Give feedback.
-
Maybe it helps someone else: First attempt failed with an error |
Beta Was this translation helpful? Give feedback.
-
Maybe it helps someone else: I tried above steps to flash friend's two STM32 based Goteks and failed (I succeeded using serial though!). Details below: When plugged Gotek to USB, it took few seconds until it appeared on USB bus, this is what I've got in
Output from step 7:
Output from step 8:
Again, it took few seconds for USB device to reappear - but I guess that's normal. Step 9. fails with following:
|
Beta Was this translation helpful? Give feedback.
-
Gentlemen. I am about at my wit's end.
SFRKC30.AT2, with the AT32F415. Devuan Chimaera (basically Debian 11.1 without systemd). AMD64. Windows isn't an option. I'll flip these units on ebay and buy some with flashfloppy already installed before I install Windows on something just to flash a gotek.
Trying to flash over USB. Downloaded the "ISP Console for Linux". Zip file. Ok, cool I guess. Extract.
Head->desk for a while in library hell. Two beers later, it turns out that it ships with an obsolete version of QT that is dynamically linked against an obsolete release of libicu. I eventually delete their QT and symlink in my system QT and the software starts working.
Disable flash access protection. Check.
Disable erase and program protection. Check.
Try to flash+verify flashfloppy.
Segmentation fault (core dumped).
One more beer won't hurt.
Looks like they didn't strip the symbol table. Too bad there's no source code.
Tempted to try it over serial. Problem is, I don't have any TTL-level USB-to-serial dongles. When programming ESP-01 units and the like, I've always just used a raspberry pi, since it already has a 3.3v serial port on the GPIO header anyway. But the only scraps they throw us are a precompiled amd64 binary linked against some obsolete libraries, so flashing from a Pi isn't gonna happen this time.
I do have USB-to-RS232-level dongles, though, along with MAX3232 ICs, a bench supply, and a breadboard.
But I figured I ought to ask in here before I do something that ends up requiring more beer:
Have any of y'all managed to flash a '415 unit from Linux? I'd appreciate any clue-sticks you gentlemen could hit me with.
Many thanks.
Beta Was this translation helpful? Give feedback.
All reactions