What steps will reproduce the problem?
1. Compile versaloon nano and vsprog under ubuntu 14.04.1 lts with gcc.
2. Try to flash stm8 (swim) or stm32 (swd) mcu.
What is the expected output? What do you see instead?
When I try to flash stm8 via swim, I get an errors. But SWIM goes to active
state.
STM32 not flashed via SWD too.
sasha@desktop:~/tmp/workspace/versaloon/2/src$ sudo ./vsprog -V"tvcc.set 3300"
VSProg 1.0 svn:1587M
CopyRight(c) 2008-2010 by SimonQian <SimonQian@SimonQian.com>
URL: http://www.SimonQian.com/en/Versaloon
mail: SimonQian@SimonQian.com
Info: Versaloon(0x01)by Simon(compiled on Feb 5 2015)
Info: USB_TO_XXX abilities: 0x0000126E:0x010001EF:0xC0000007
Info: Target runs at 0.317V
Info: Target runs at 3.111V
sasha@desktop:~/tmp/workspace/versaloon/2/src$ sudo ./vsprog -c stm8s003f3 -orf
-O flash.bin
VSProg 1.0 svn:1587M
CopyRight(c) 2008-2010 by SimonQian <SimonQian@SimonQian.com>
URL: http://www.SimonQian.com/en/Versaloon
mail: SimonQian@SimonQian.com
Info: Versaloon(0x01)by Simon(compiled on Feb 5 2015)
Info: USB_TO_XXX abilities: 0x0000126E:0x010001EF:0xC0000007
Info: Target runs at 3.109V
Error: usbtoswim command 0x50 failed with 0x01
Error: Invalid length of return data
Error: Fail to enter program mode.
Error: Fail to operate stm8.
Error: Fail to run command: enter_program_mode.
Error: usbtoswim command 0x30 failed with 0x01
Error: Invalid length of return data
Error: Fail to leave program mode.
Error: Fail to operate stm8.
Error: Fail to run command: leave_program_mode.
Error: Fail to run command: program.
What version of the product are you using? On what operating system?
Ubuntu 14.04.1 LTS. Vsprog with versaloon-nano programmer board.
Firmware created in gcc-arm-none-eabi-4_9-2014q4.
sasha@desktop:~$ gcc --version
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Please provide any additional information below.
In attach usb dump and logic-analyser screen with swim data.
Syslog messaes after plug-in prog:
Feb 6 22:58:56 desktop kernel: [40570.848222] usb 1-2.4.1: new full-speed USB
device number 12 using ehci-pci
Feb 6 22:58:56 desktop kernel: [40570.959329] usb 1-2.4.1: New USB device
found, idVendor=0483, idProduct=a038
Feb 6 22:58:56 desktop kernel: [40570.959340] usb 1-2.4.1: New USB device
strings: Mfr=1, Product=2, SerialNumber=3
Feb 6 22:58:56 desktop kernel: [40570.959346] usb 1-2.4.1: Product: Versaloon
Feb 6 22:58:56 desktop kernel: [40570.959352] usb 1-2.4.1: Manufacturer:
STMicroelectronics
Feb 6 22:58:56 desktop kernel: [40570.959358] usb 1-2.4.1: SerialNumber:
25FF86600566556504062078
Feb 6 22:58:56 desktop mtp-probe: checking bus 1, device 12:
"/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-2/1-2.4/1-2.4.1"
Feb 6 22:58:56 desktop mtp-probe: bus: 1, device: 12 was not an MTP device
sasha@desktop:~$ tail -n3 /lib/udev/rules.d/77-mm-usb-device-blacklist.rules
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a038", ENV{ID_MM_DEVICE_IGNORE}="1"
sasha@desktop:~$ tail -n1 /etc/modprobe.d/blacklist.conf
blacklist cdc_acm
Original issue reported on code.google.com by
al.sada...@gmail.comon 6 Feb 2015 at 8:07Attachments: