-
Hi there, before I resort to flashing it with a debugger ( btw. since the bundled flashtool scripts use openocd maybe you can add ftdi support? Many more people possibly have some kind of ftdi device than stlinks ) I wanted to see if I exhausted all possibilities on a "normal" install. Sorry if this is somewhat lengthy, I just wanted to show all my process, since I think I almost got it (due to the "bricked" state it must have changed the firmware somehow) the missing piece might be smoewhere in here... ContextI have a CH32F1 chip, ENH LCD. It seems to me that the device is somehow trying to emulate a FAT16 partitiion and communicating back to us via the filename of an empty .txt file. btw. does the LED red/green provide any useful status information? Attempt 1This documents the state more or less before/while writing this entry. During that time I tried something else whic possibly bricked the device completely (See Attempt 2) StateCurrent state: device is "bricked" (NOAPP.TXT), bootloader acticve, so it seems at one point it was trying to install the firmware, which gives me hope that I need a tiny step. LinuxThis is my machine, all others are just borrowed from friends so it would be best if it worked here ;) Plugging it in:
fsck seems to find some oddities:
this may or may not explain the problem of the other sytems to properly mount it. After mounting it, there is a Do we know exactly what the bootloader is looking for? I know from some chinese devices that they sometimes look for special magic bytes, some signature or even an exact location on the FAT16 device by block ( and don't really understand the filesystem) Win11USB 2 Port. Win10Only has USB3 capable ports. An "AIR01" device appears in the "Devices and Printers" section of windows but no drive. diskmgmt.msc does not show any volume/device without assigned drive letter. The dialogue of the AIR01 device at one point talks about it not working because a secondary device has an invalid hardware identification number, no idea what that one means. Looking at the windows eventlog at one point I find a message "USBSTOR too many separators" AndroidUpon plugging the device in (USB C to C) android tells me that there is something wrong with teh device and it needs to be formatted which does not succeed Attempt 2While writing this entry another thing to try under linux came to my mind, which now seems to have left the device in a bricked state at first glance. LinuxOne thing came to my mind: when copying the file, it is not using the 8.3 naming convention. So I mounted the device as This seems to do something, but either I was too impatiend or that went wrong for other reasons, the device no seems bricked. After that whenever I plug it in (irregardless of what buttons I have pressed ):
Removing the battery seems to resolve this somehow. Plugging in the battery seems to start some code, causing the usb to not work anymore, so the only option left now is trying to get it to work without the battery possibly? I would think that at this point there is some other code than the bootloader running which is unable to properly identify as a USB device. I just now noticed that there is a reset button which seems to make this easier to not have to unplug the battery all the time... Trying to install the original flash this way failed too. So what I am really wondering:
At the moment I also sometimes get ERRAPP.TXT ... do we know the exact circumstances of these error filenames? Win 10Windows gives an error message that it failed to provide a hardware ID |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 14 replies
-
here's a trick to make your life much easier: don't ask me why but it just works :) ps. you can use Windows for GeigerLog-RadPro if you like, it's fine with the COM hardware but ignores the USB mount. |
Beta Was this translation helpful? Give feedback.
-
I used Gnome/Wayland on Ubuntu 22.04. It mounts to /media/username/BOOTLOADER I think it does a cat as part of the drag/copy process to check what files exist and hence prompt for overwrite, if I remember correct normally a basic cp command just fails or requires a /f to force an overwrite if there's a name conflict great news you got it working, weird bug but at least we have a workaround now. win-really-blows.....but RadPro is great |
Beta Was this translation helpful? Give feedback.
-
Got my GC-01 bricked for a long time, nothing worked, UNTIL I SAVED IT with this:
It doesn´t amtter what you do nor how many times you do, while de flash memory is read protected and/or write protected, nothing gonna work. Disabling read/write protections using STM32 is the trick. |
Beta Was this translation helpful? Give feedback.
-
For those of us not using a dumbed down, useless file manager on Linux, I found that mounting the device (/dev/sdc in my case) at /mnt, and then "cp <the .binfile> /mnt, cp /mnt, umount /mnt" worked. Note that Linux mounts are buffered, and the cp writes to the buffer of the physical device - the umount forces the write to the hardware. (sync could also do this, but using sync leaves the GC-01 mounted, and would always return to the "Ready.txt" condition, but not come up.) Dropping the mount worked on the first try. FWIW . . . |
Beta Was this translation helpful? Give feedback.
-
I can't argue with that . . . all I know was that I was having zero luck with any "published" procedure (despite multiple attempts - I got the "READY.txt" status, and a black screen). I tried what I described and it instantly worked, so figured I'd pass that along, since despite long hours of reading docs and forums, never heard that suggested. Granted, and single data point, but might help someone . . . (This was tried with 2.0, 2.0.3, 2.1, and 2.1.1, and all behaved similarly, fwiw . . . 2.1.1 finally worked, so did not retry, since it was up). |
Beta Was this translation helpful? Give feedback.
here's a trick to make your life much easier:
forget Windows 11
use Linux
connect the device and power on
open the BOOTLOADER mounted drive
copy over the new firmware
(nothing will happen but leave the window open)
drag/copy over the same firmware file again
OK the overwrite
your device will now boot with the new firmware installed
don't ask me why but it just works :)
ps. you can use Windows for GeigerLog-RadPro if you like, it's fine with the COM hardware but ignores the USB mount.