st-flash (stlink v1) for Discovery VL board (F100)

Post Reply
User avatar
Pito
Posts: 94
Joined: Tue Dec 24, 2019 1:53 pm

st-flash (stlink v1) for Discovery VL board (F100)

Post by Pito »

!! The "STM32CubeProgrammer" does not support the "st_link v1 programmer" hw placed on the VL board anymore !!!

Hi, I've messed with the VL boards I found in my junkbox and ran into issues with the 1.6.1 version of the "st-flash" tool (Lubuntu 20.04).
It does not connect via usb to the VL board.
After spending hours I read the issue log there on the https://github.com/stlink-org/stlink/issues/1045 and the solution there worked - here is the install of the 1.6.0 from there:

Code: Select all

git clone -b v1.6.0 https://github.com/stlink-org/stlink.git
make clean
make release
cd build/Release && sudo make install
sudo ldconfig
// the udev rules files are still in place
// the /etc/modprobe.d file is still in place for /etc/modprobe.d/stlink_v1.conf
sudo udevadm control --reload-rules
sudo udevadm trigger
reboot the system
Now the flashing of the VL board works, ie.:

Code: Select all

pito@lub23:~$ st-flash write /tmp/arduino_build_463693/Fade.ino.bin 0x08000000
st-flash 1.6.0
2021-02-27T14:43:31 INFO common.c: Loading device parameters....
2021-02-27T14:43:31 INFO common.c: Device connected is: F1 Medium/Low-density Value Line device, id 0x10016420
2021-02-27T14:43:31 INFO common.c: SRAM size: 0x2000 bytes (8 KiB), Flash: 0x20000 bytes (128 KiB) in pages of 1024 bytes
2021-02-27T14:43:31 INFO common.c: Attempting to write 15416 (0x3c38) bytes to stm32 address: 134217728 (0x8000000)
Flash page at addr: 0x08003c00 erased
2021-02-27T14:43:32 INFO common.c: Finished erasing 16 pages of 1024 (0x400) bytes
2021-02-27T14:43:32 INFO common.c: Starting Flash write for VL/F0/F3/F1_XL core id
2021-02-27T14:43:32 INFO flash_loader.c: Successfully loaded flash loader in sram
 16/16 pages written
2021-02-27T14:43:33 INFO common.c: Starting verification of write complete
2021-02-27T14:43:34 INFO common.c: Flash written and verified! jolly good!
pito@lub23:~$ 
Would be great to add the st-flash as the "programmer" for the "VL Discovery board" into the STM distro..
Pukao Hats Cleaning Services Ltd.
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: st-flash (stlink v1) for Discovery VL board (F100)

Post by fpiSTM »

Thanks to report this, I was not aware of this... :(
Post Reply

Return to “STLink”