2018-09-10 12:37 PM
Hi,
I'm trying to programm a Viasala RS41 radiosonde with STM32 Cube Programmer. I'm following instructions from some other people who did this already. But when I try to programme the chip, I get only an error:
Error: Failed to erase memory
This ist the Log:
21:22:31 :
21:22:31 : Memory Programming ...
21:22:31 : Opening and parsing file: C:\Temp\rtty.hex
21:22:31 : File : C:\Temp\rtty.hex
21:22:31 : Size : 62704 Bytes
21:22:31 : Address : 0x08000000
21:22:31 :
21:22:31 : Erasing Segment <0> Address <0x08000000> Size <62704>Bytes
21:22:31 : Erasing memory corresponding to segment 0:
21:22:31 : Memory erase...
21:22:31 : reset ap 0
21:22:31 : run ap 0
21:22:31 : halt ap 0
21:22:31 : w ap 0 reg 15 (0x20000000)
21:22:31 : w ap 0 reg 17 (0x20000500)
21:22:31 : w ap 0 reg 16 (0x01000000)
21:22:31 : w ap 0 @0x20000960 0x00000200 bytes
21:22:31 : w ap 0 @0x20000000 0x00000004 bytes
21:22:31 : w ap 0 @0x20000004 0x0000053E bytes
21:22:31 : Erasing internal memory sectors [0 61]
21:22:31 : Init flashloader...
21:22:31 : halt ap 0
21:22:31 : w ap 0 reg 0 0x00000001
21:22:31 : w ap 0 reg 1 0x00000000
21:22:31 : w ap 0 reg 2 0x00000000
21:22:31 : w ap 0 reg 3 0x00000000
21:22:31 : w ap 0 reg 4 0x00000000
21:22:31 : w ap 0 reg 5 0x00000000
21:22:31 : w ap 0 reg 6 0x00000000
21:22:31 : w ap 0 reg 7 0x00000000
21:22:31 : w ap 0 reg 8 0x00000000
21:22:31 : w ap 0 reg 9 0x00000000
21:22:31 : w ap 0 reg 10 0x00000000
21:22:31 : w ap 0 reg 11 0x00000000
21:22:31 : w ap 0 reg 12 0x00000000
21:22:31 : w ap 0 reg 13 0x00000000
21:22:31 : w ap 0 reg 14 0x20000001
21:22:31 : w ap 0 reg 15 0x20000005
21:22:31 : w ap 0 reg 16 0x01000000
21:22:31 : w ap 0 reg 17 0x2000093E
21:22:31 : w ap 0 reg 18 0x00000000
21:22:31 : run ap 0
21:22:31 : halt ap 0
21:22:31 : r ap 0 reg 0 0x00000001
21:22:31 : Loader sector erase...
21:22:31 : w ap 0 reg 0 0x08000000
21:22:31 : w ap 0 reg 1 0x0800F400
21:22:31 : w ap 0 reg 2 0x00000002
21:22:31 : w ap 0 reg 3 0x00000000
21:22:31 : w ap 0 reg 4 0x00000000
21:22:31 : w ap 0 reg 5 0x00000000
21:22:31 : w ap 0 reg 6 0x00000000
21:22:31 : w ap 0 reg 7 0x00000000
21:22:31 : w ap 0 reg 8 0x00000000
21:22:31 : w ap 0 reg 9 0x00000000
21:22:31 : w ap 0 reg 10 0x00000000
21:22:31 : w ap 0 reg 11 0x00000000
21:22:31 : w ap 0 reg 12 0x00000000
21:22:31 : w ap 0 reg 13 0x00000000
21:22:31 : w ap 0 reg 14 0x20000001
21:22:31 : w ap 0 reg 15 0x200001AF
21:22:31 : w ap 0 reg 16 0x01000000
21:22:31 : w ap 0 reg 17 0x2000093E
21:22:31 : w ap 0 reg 18 0x00000000
21:22:31 : run ap 0
21:22:31 : halt ap 0
21:22:31 : r ap 0 reg 0 0x00000000
21:22:31 : Error: failed to erase memory
21:22:31 :
21:22:31 : Error: failed to erase memory
The Sonde is connected through a ST-LINK V2 Interface.
The Cube Programmer seems to be conencted to the chip also.
Device Information says:
Device: STM32F100 Low/Medium densit...
Type: MCU
Device ID: 0x420
CPU: Cortex-M3
I have alreade disabled the read out protection in the settings.
But I can't imagine, why there is a problem erasing the memory.
How can I find out more about this problem, and has anyone an idea how to fix this?
If you need more information, just ask.
I'm not a professional programmer an I didn't do such a programming before.
Thanks in advance for any help.
Attila
2018-09-10 02:08 PM
Try updating the ST-LINK firmware to current
Try using ST-LINK Utilities instead
https://www.st.com/en/development-tools/stsw-link004.html
2018-09-11 08:57 AM
Thanks for this hint. It worked with this tool.
The Firmware has been updated already.
Thanks again! You made my day :)