我在Ubuntu 14.04下使用Eclipse来处理STM32F4DISCOVERY我已经设置系统将我的闪烁项目闪存到Discovery。在构建项目之后,我转到Run->外部工具并点击运行以将代码下载到闪存,但我在控制台窗口中收到以下消息:
invalid command line
stlinkv1 command line: ./st-flash [--debug] [--reset] {read|write} /dev/sgX path addr <size>
stlinkv1 command line: ./st-flash [--debug] /dev/sgX erase
stlinkv2 command line: ./st-flash [--debug] [--reset] {read|write} path addr <size>
stlinkv2 command line: ./st-flash [--debug] erase
use hex format for addr and <size>
我使用的外部工具配置如下: Main-&GT;位置/ usr / local / bin / st-flash 主要 - &gt;工作目录$ {project_loc} / Release 主要 - &gt;参数:写$ {project_name} .bin 0x8000000
我运行了以下命令来检查所有内容是否设置正确:
julio@julio-virtual-machine:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 008: ID 0483:3748 STMicroelectronics ST-LINK/V2
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
julio@julio-virtual-machine:~$ dmesg|tail -n 6
[ 3558.411428] usb 2-2.1: new full-speed USB device number 8 using uhci_hcd
[ 3558.690133] usb 2-2.1: New USB device found, idVendor=0483, idProduct=3748
[ 3558.690143] usb 2-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3558.690148] usb 2-2.1: Product: STM32 STLink
[ 3558.690152] usb 2-2.1: Manufacturer: STMicroelectronics
[ 3558.690156] usb 2-2.1: SerialNumber: P\xffffffc3\xffffffbf\xffffffbfr\x06PfPQCH#\xffffffc2\xffffff87\xffffff87
julio@julio-virtual-machine:~/ARM ToolChain/gcc-arm-none-eabi-4_9-2015q2/bin$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (4.8.2-14ubuntu1+6) 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.
你能帮我检查一下我是否遗漏了某些东西,或者我是以错误的方式做错了吗?
感谢您的帮助