换成ubuntu 15.10桌面版,gcc版本是5.2,编译stlink成功。, k- k" V7 Z& M0 |$ }4 Q
checking for sys/mman.h... yes 2 n+ t4 @1 l. D# |0 ?8 d5 lchecking sys/poll.h usability... yes ! B( h( R9 P) O+ S$ ochecking sys/poll.h presence... yes& m0 h/ g" @+ M' s' |
checking for sys/poll.h... yes 0 R, v. V* m: O* wchecking for mmap... yes, {( `: J; f5 G4 a
checking for pkg-config... /usr/bin/pkg-config 3 {0 A# ], d: vchecking pkg-config is at least version 0.9.0... yes9 U T8 x9 q, k! n. f
checking for USB... yes: D$ d9 T- D5 A- ?2 x2 e" Z9 x0 c
checking for usb_path2devnum in -lusbpath... no( {+ f, {+ }* v! g0 t/ a2 e
checking that generated files are newer than configure... done 0 E' a. N0 X- p7 ?2 Iconfigure: creating ./config.status" D( C/ |5 P3 F1 P
config.status: creating Makefile ; a! \! @ C& l o* p$ `6 r6 `% Qconfig.status: executing depfiles commands - N' ]. J% E2 {) G! {aoems@ubuntu:~/stlink-master$ gcc --version 1 S8 ]% B, U1 C3 `gcc (Ubuntu 5.2.1-22ubuntu2) 5.2.1 201510109 x( N5 n* ^' C y6 y, V) [
Copyright (C) 2015 Free Software Foundation, Inc./ i% K4 G! X3 N& d
This is free software; see the source for copying conditions. There is NO- U! U! H- m; X0 G- b1 M& K1 o6 O% l
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. s4 ]1 P6 ]* Y l
1 O( i/ h- M/ N& h) q4 B5 Uaoems@ubuntu:~/stlink-master$ sudo make install 2 G- }5 B! B4 @9 l9 }, U... 4 b0 ?. b0 K% t% k, S% C6 i1 F; \; Emake[2]: Entering directory '/home/aoems/stlink-master' # c4 q" d o* H1 v( g; _ `3 [# T /bin/mkdir -p '/usr/local/bin'3 X* V9 K1 c7 B3 |4 H2 A/ c9 e/ k
/usr/bin/install -c st-flash st-util st-term st-info '/usr/local/bin'* E7 U% c. p7 j* K& S$ _
make[2]: Nothing to be done for 'install-data-am'.$ L' b U, B! y( u' h2 x' j
make[2]: Leaving directory '/home/aoems/stlink-master' , ?3 ~$ Z- r! h! |; omake[1]: Leaving directory '/home/aoems/stlink-master' f* O, q5 ^, g7 t5 haoems@ubuntu:~/stlink-master$ 0 _# J# e# L ~' M+ q2 m+ U; M9 Y( V# m5 z( B% v: p$ p
安装时,显示没做任何事情,不明白安装是否成功。
已发。。。
收到,多谢。
checking for sys/mman.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes& m0 h/ g" @+ M' s' |
checking for sys/poll.h... yes
checking for mmap... yes, {( `: J; f5 G4 a
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes9 U T8 x9 q, k! n. f
checking for USB... yes: D$ d9 T- D5 A- ?2 x2 e" Z9 x0 c
checking for usb_path2devnum in -lusbpath... no( {+ f, {+ }* v! g0 t/ a2 e
checking that generated files are newer than configure... done
configure: creating ./config.status" D( C/ |5 P3 F1 P
config.status: creating Makefile
config.status: executing depfiles commands
aoems@ubuntu:~/stlink-master$ gcc --version
gcc (Ubuntu 5.2.1-22ubuntu2) 5.2.1 201510109 x( N5 n* ^' C y6 y, V) [
Copyright (C) 2015 Free Software Foundation, Inc./ i% K4 G! X3 N& d
This is free software; see the source for copying conditions. There is NO- U! U! H- m; X0 G- b1 M& K1 o6 O% l
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. s4 ]1 P6 ]* Y l
aoems@ubuntu:~/stlink-master$ sudo make install
...
make[2]: Entering directory '/home/aoems/stlink-master'
/bin/mkdir -p '/usr/local/bin'3 X* V9 K1 c7 B3 |4 H2 A/ c9 e/ k
/usr/bin/install -c st-flash st-util st-term st-info '/usr/local/bin'* E7 U% c. p7 j* K& S$ _
make[2]: Nothing to be done for 'install-data-am'.$ L' b U, B! y( u' h2 x' j
make[2]: Leaving directory '/home/aoems/stlink-master'
make[1]: Leaving directory '/home/aoems/stlink-master'
aoems@ubuntu:~/stlink-master$
2 m+ U; M9 Y( V# m5 z( B% v: p$ p
安装时,显示没做任何事情,不明白安装是否成功。
你有没有安装过之前我的那个包?如果安装过的话,这次就不需要使用了。可以试试st-flash。如果有提示,那就是安装成功了。
st-term" n- s1 ?. x& o
是干什么的
st-info是用来获取芯片的内存大小和FLASH大小的。不过我的st-info并不输出任何内容。st-term不知道是干啥的。
我只会用st-flash和st-util。
这两个程序可能有bug。连--help都不会进行提示。