mikaelnousiainen / RS41ng

Custom firmware for Vaisala RS41 and Graw DFM-17 radiosondes with support for amateur radio use. Ideal for tracking high-altitude balloons. Supported modes include APRS, Horus 4FSK mode, CATS, morse code (CW) and additional digital modes like WSPR and FT8 via Si5351.
GNU General Public License v2.0
109 stars 28 forks source link

Flashing instructions are unclear #38

Closed argilo closed 10 months ago

argilo commented 1 year ago

The flashing instructions in the readme are:

  1. Remove batteries from the sonde
  2. Connect an ST-LINK v2 programmer dongle [...]
  3. Unlock the flash protection [...]

These instructions didn't work for me. Instead I had to put the batteries in the sonde and press the power button to switch it on before unlocking & flashing would work. The ST-LINK v2 does not appear to supply power to the target device (but it could be that I connected it incorrectly).

If the instructions need updating, I'd be happy to open a pull request.

pinkavaj commented 1 year ago

The unlocking/flashing instructions worked for me, no batteries were necessary. I'm using some cheap ST-LINK v2 clone.

What comes to my mind:

argilo commented 1 year ago

I'm using a genuine ST-LINK v2. The manual is not entirely clear, but I don't believe it is intended to supply power to the target device.

iz2fly commented 1 year ago

I use this connection without batteries and it works fine. There are different versions. I also happened to find an ST-LinkV2 with the wrong pin descriptions, the ground was in the wrong place and I burned it.

RS41_STLink_connection_02

pinkavaj commented 1 year ago

The schemas seems to be identical, I guess the other should use the 3.3V ?

iz2fly commented 1 year ago

Only change the position of the pins for different ST-Link, always +5V

mikaelnousiainen commented 1 year ago

@argilo @pinkavaj @iz2fly

There are indeed different types of ST-LINK adapters and I wrote the instructions based on the small USB dongle type adapter I have. Some adapters might behave differently.

It is indeed possible to flash the sonde by powering it from batteries and NOT connecting the +3.3V from the ST-LINK adapter at all -> the only three wires needed with batteries are the GND, SWDIO and SWCLK.

argilo commented 11 months ago

Thanks for the clarification. I opened a pull request to update the README with that information: #48