Gissio / radpro

Custom firmware for Geiger counters/radiation meters (FS2011, Bosean FS-600, FS-1000, FS-5000, FNIRSI GC-01)
MIT License
154 stars 20 forks source link

Bosean FS-5000: Can't flash #91

Closed JTknives closed 3 months ago

JTknives commented 3 months ago

I'm trying to flash an fs-5000. i have tried 2 separate counters with the same results. I can connect to it using the st-link utility and I included an image of that. but if i try to do anything with the utility it says device has shut down.

Backing up old firmware image... xPack Open On-Chip Debugger 0.12.0+dev-01557-gdd1758272-dirty (2024-04-02-07:27) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : auto-selecting first available session transport "hla_swd". To override use 'transport select '. Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD Info : clock speed 500 kHz Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748 Info : Target voltage: 1.566316 Error: init mode failed (unable to connect to the target)

Flashing new firmware image... xPack Open On-Chip Debugger 0.12.0+dev-01557-gdd1758272-dirty (2024-04-02-07:27) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : auto-selecting first available session transport "hla_swd". To override use 'transport select '. Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD Info : clock speed 500 kHz Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748 Info : Target voltage: 1.564737 Error: init mode failed (unable to connect to the target)

Done. Press any key to continue . .

stlink utility

ricsim commented 3 months ago

You need to press the OK key all the time. Gissio added this info to the FS5000 page.

JTknives commented 3 months ago

I have been holding the ok/power button and it does not make a difference. I have tried it with the battery plugged in and unplugged. as soon as I hold the ok button the screen shows starting up and now the Geiger counter is powered on.

ricsim commented 3 months ago

I had exactly the same issue. I never disconnected the battery. Pushed OK and keep it pushed, then start the flashing while still holding OK pressed. (ignore that it turned on, just continue). That worked for me.

JTknives commented 3 months ago

When I do that I get the same thing. what's weird is it never shows 3v like all the other screen shots I have seen. mine always say 1.55v. And it says press any key to continue which I do and the window just closes. I bought the actual ST-link v2 not a clone.

Backing up old firmware image... xPack Open On-Chip Debugger 0.12.0+dev-01557-gdd1758272-dirty (2024-04-02-07:27) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : auto-selecting first available session transport "hla_swd". To override use 'transport select '. Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD Info : clock speed 500 kHz Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748 Info : Target voltage: 1.551547 Error: init mode failed (unable to connect to the target)

Flashing new firmware image... xPack Open On-Chip Debugger 0.12.0+dev-01557-gdd1758272-dirty (2024-04-02-07:27) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : auto-selecting first available session transport "hla_swd". To override use 'transport select '. Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD Info : clock speed 500 kHz Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748 Info : Target voltage: 1.551547 Error: init mode failed (unable to connect to the target)

Done. Press any key to continue . . .

JTknives commented 3 months ago

Here is a few pictures of my set up. I think everything is wired up correctly.

image

image

image

Gissio commented 3 months ago

Try flashing with the Bosean FS-5000 powered through USB.

Also, check the electrical connections from the FS-5000 to the ST-LINK with a multimeter.

If that doesn’t work, try an ST-LINK v2 clone.

JTknives commented 2 months ago

Yeah I tried all of that and still just say's 1.55v so I labeled it defective and returned to Amazon and ordered a $9 clone.