Both sides previous revisionPrevious revisionNext revision | Previous revision |
projects:jimbob:radiosonde [2018/08/22 17:07] – kevwal | projects:jimbob:radiosonde [2018/09/05 09:17] (current) – kevwal |
---|
Tom SP9UOB kindly gave some of us a RS41-SG Radiosonde at the UKHAS 2018 conference. | Tom SP9UOB kindly gave some of us a RS41-SG Radiosonde at the UKHAS 2018 conference. |
| |
Software options seem to be: | Software options that I can find: |
* [[https://github.com/yanosik/STM32_RTTY]] - Original | * [[https://github.com/yanosik/STM32_RTTY]] - Original? |
* [[https://github.com/Qyon/STM32_RTTY]] - Added APRS | * [[https://github.com/Qyon/STM32_RTTY]] - Added APRS |
* [[https://github.com/df8oe/RS41HUP]] - Make UKHAS format compatible | * [[https://github.com/df8oe/RS41HUP]] - Make UKHAS format compatible |
* [[https://github.com/darksidelemm/RS41HUP]] - Remove APRS, add 4FSK and other tidy-ups (Fix compile on Windows, by adding missing files - Projects window, right click, 'Add Files' - and add all missing files.) | * [[https://github.com/darksidelemm/RS41HUP]] - Remove APRS, add 4FSK and other tidy-ups (Fix compile on Windows, by adding missing files - Projects window, right click, 'Add Files' - and add all missing files.) |
| * [[-]] - Toms software which is not publicly available yet. |
| |
Downloaded and installed the IDE [[https://www.wyzbee.com/download/Utilities/Software/CoIDE-1.7.8.exe]] | Download and install the CoIDE [[https://www.wyzbee.com/download/Utilities/Software/CoIDE-1.7.8.exe]] |
| |
Downloaded and installed the Compiler [[https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q3-update/+download/gcc-arm-none-eabi-5_4-2016q3-20160926-win32.exe]] | Download and install the GCC ARM compiler [[https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q3-update/+download/gcc-arm-none-eabi-5_4-2016q3-20160926-win32.exe]] |
| |
Open the project in CoIDE and setup the defaults in main.c or config.h (depends which sw you are using), and then build: | Open the project in CoIDE and setup the defaults in main.c or config.h (depends which software you are using), and then build: |
| |
<code> | <code> |
And with a few warnings it builds! | And with a few warnings it builds! |
| |
Reprogramming needs a STM programmer like this [[https://www.aliexpress.com/item/FREE-SHIPPING-ST-Link-V2-stlink-mini-STM8STM32-STLINK-simulator-download-programming-With-Cover/1823628996.html|one from china]], or if yuo can't wait that long, [[https://www.amazon.co.uk/gp/product/B0722WMDFQ/|this one]] on Prime from Amazon. The Driver for the ST-link-V2 programmer is here [[https://www.st.com/en/development-tools/stsw-link009.html]]. I used the ST-Link utility programming tool (which includes the driver) from [[https://my.st.com/content/my_st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/stsw-link004.license=1533224576969.html|here]]. | Reprogramming needs a STM programmer like this [[https://www.aliexpress.com/item/FREE-SHIPPING-ST-Link-V2-stlink-mini-STM8STM32-STLINK-simulator-download-programming-With-Cover/1823628996.html|one from china]], or if you can't wait that long, [[https://www.amazon.co.uk/gp/product/B0722WMDFQ/|this one]] on Prime from Amazon. The driver for the ST-link-V2 programmer is here [[https://www.st.com/en/development-tools/stsw-link009.html]]. I used the ST-Link utility programming tool (which includes the driver) from [[https://my.st.com/content/my_st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/stsw-link004.license=1533224576969.html|here]]. |
| |
Pinout of the SG41 2mm connector is [[https://github.com/Qyon/STM32_RTTY/blob/master/docs/pinout_extension_port.txt|here]]. | Pinout of the SG41 2mm connector is [[https://github.com/Qyon/STM32_RTTY/blob/master/docs/pinout_extension_port.txt|here]]. |
* SWDIO to SWDIO | * SWDIO to SWDIO |
* Rst to Rst | * Rst to Rst |
Be aware that some of the circuit diagrams around are for the OEM ST-Link V2 programmer which has many more pins than this cheap one. | Be aware that some of the circuit diagrams around are for the OEM ST-Link V2 programmer which has many more pins than the cheap one I link to above. |
| |
And we have a connection using the ST-Link utility. | And we have a connection using the ST-Link utility. |
</code> | </code> |
| |
I then tried for several hours to re-programme the chip, and kept failing, before discovering that I needed to turn off the 'Read Out Protection that was turned on in the chip. I used the STM32 ST-Link utility to do that, connecting to the RS41 (Target -> Connect) and then editing the Options Bytes (Target -> Options Bytes) to disabled Read Out Protection and 'Unselect all' in the bottom 'Flash sectors protection' section. | I then tried for several hours to re-programme the chip, and kept failing, before discovering that I needed to turn off the 'Read Out Protection' that was turned on in the chip. I used the STM32 ST-Link utility to do that, connecting to the RS41 (Target -> Connect) and then editing the Options Bytes (Target -> Options Bytes) to disabled Read Out Protection and 'Unselect all' in the bottom 'Flash sectors protection' section. |
| |
<code> | <code> |
| |
Hopefully this is of use to others - any corrections please do let me know. | Hopefully this is of use to others - any corrections please do let me know. |
Cheers, kevin | |
| Cheers, |
| Kevin |
| |
| |