感谢楼主,下载成功,安装提示缺少,Java Runtime Environment,然后我安装了Java,然后进入安装,自动选择安装目录,安装一阵,最后提醒, javaw.exe not found ,reinstall java jre;实际上,我的电脑里搜索,有javaw.exe 。因此,MicroXplorer无法安装,困惑。
生成代码鉴赏:论坛啥时候能支持代码片段呢?????9 E9 E* ^% C7 ?
% e+ p+ N* m& R+ O1 m. s( n" X
/** 4 q% `" {. O. s' o7 ] ****************************************************************************** / b3 q$ G3 `/ I, M * File Name : mx_gpio.c6 i) ]% M( V$ d& f
* Date : 03/01/2014 15:37:11 / Y) {, w/ C1 l, y, E4 S { * Description : This file provides code for the configuration 8 C) ~+ p( H" [1 U * of all used GPIO pins.& ]+ `) o2 {; e# P1 G
******************************************************************************9 N0 ^# \3 B% [
* # q+ Z$ m3 s; s2 ]7 L* g% @ * COPYRIGHT 2014 STMicroelectronics3 R9 `% z. u; |6 p
*- }5 t) P4 T* g) g
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); / z% U* P/ U# t/ U4 U6 G * You may not use this file except in compliance with the License. ; u1 u8 P. s0 O2 j2 V0 T6 M * You may obtain a copy of the License at:7 {- }5 l& a3 W
* ! m/ ~$ R& o2 W * http:www.st.com/software_license_agreement_liberty_v2 , |5 e( ]7 ~( _2 R5 g1 r *" P! d) ^: G: h. V
* Unless required by applicable law or agreed to in writing, software 1 g9 \. ]5 F D. u" e$ D( b8 A * distributed under the License is distributed on an "AS IS" BASIS, + L9 f" ~9 }7 `: h6 l+ |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. g5 M& y' I( I# s) S8 F; u
* See the License for the specific language governing permissions and * s, e8 c3 y! M* ^: s0 v1 x# Y * limitations under the License.& g* f! O" ~1 o% {
*5 H* n2 G/ ]# b5 d4 W/ ?" F& u
****************************************************************************** & m: Z- M% H; x9 a) L$ N# Y2 s */ ; |3 r& @/ r0 j# b4 P % p* e1 F; X' }# z6 D6 d* B6 ?
/* Includes ------------------------------------------------------------------*/ s0 T& I& j# z+ f#include "mx_gpio.h" . ?! ^1 f$ |0 k+ H5 O! t/* USER CODE BEGIN 0 */0 z1 b1 E- U1 Z P) \
2 I3 b. Z) M5 W* V1 \6 L% V/* USER CODE END 0 */5 L; l- V0 B/ b, m0 j; @$ R
2 u- x6 D+ l* U x) H8 { E/*----------------------------------------------------------------------------*/ - ^" W1 J8 V+ c. J! |3 A' I7 Q/* Configure GPIO */$ z3 Y6 g# l+ Z3 }% \2 y
/*----------------------------------------------------------------------------*/& X; _9 }+ x) _1 J& X2 Z& \
/* USER CODE BEGIN 1 */5 ?) N- \. n1 X' k1 p' ~. v
0 \5 N0 D' Z* ]2 q
/* USER CODE END 1 */& R% W. X# F" \5 Q1 _/ s% O/ `
. R! _0 _0 m4 [& x- X% u
void mx_pinout_config(void) { + E& ?# a( ^% [) W* d+ k /* Private typedef ---------------------------------------------------------*/ ; C. T9 l! h4 I; H GPIO_InitTypeDef GPIO_InitStruct;3 h8 r V9 K- D! {
9 W* |/ R( T% D- W. ~ $ ~5 a+ U4 w& i' o) I, O /** ADC GPIO Configuration # r5 K; {4 O1 R+ N* B9 W: E* G+ B
PA1 ------> ADC_IN19 i5 A" z& h8 I5 ^/ Y
*/( N9 a; K1 j+ n3 M
9 r1 Y* n1 p/ e" ^/ O/ u% U; R
for(i=0; i<4; i++)//R G B 中一个字节对应的发送缓存& k+ Q% i- f. ^# f7 p" s
{
tmp = (uint8_t)(color &0x00000003);. {! n$ D9 F3 {, R, u) \. N/ R6 l
switch(tmp)
{
case 0x00:
*pb = BIT00;7 I! K, F# a+ d4 H/ e V7 E
break;% w: P. V0 E+ Y8 s
case 0x01:( }/ p% t- q3 K/ O) x3 R9 B
*pb = BIT01;, ]' D! ]$ A. [1 w1 Y& X
break;# W( |+ Y3 V( }$ ]# ?4 C- d/ t
case 0x02:
*pb = BIT10;
break;, E- D1 ?# A% e K$ a4 i6 e
case 0x03:
*pb = BIT11;" h( a$ E( g7 ]5 S
break;
}
color = color >>2;
pb--;
}
pb += 7; T' K' e# u) m& ~) z* M$ G
}
这样就可以了,在安装目录了里会有一个.jar文件,双击打开即可
RE:ST公司出品【图形化配置工具】
% e+ p+ N* m& R+ O1 m. s( n" X
/**
******************************************************************************
* File Name : mx_gpio.c6 i) ]% M( V$ d& f
* Date : 03/01/2014 15:37:11
* Description : This file provides code for the configuration
* of all used GPIO pins.& ]+ `) o2 {; e# P1 G
******************************************************************************9 N0 ^# \3 B% [
*
* COPYRIGHT 2014 STMicroelectronics3 R9 `% z. u; |6 p
*- }5 t) P4 T* g) g
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at:7 {- }5 l& a3 W
*
* http:www.st.com/software_license_agreement_liberty_v2
*" P! d) ^: G: h. V
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, + L9 f" ~9 }7 `: h6 l+ |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. g5 M& y' I( I# s) S8 F; u
* See the License for the specific language governing permissions and
* limitations under the License.& g* f! O" ~1 o% {
*5 H* n2 G/ ]# b5 d4 W/ ?" F& u
******************************************************************************
*/
% p* e1 F; X' }# z6 D6 d* B6 ?
/* Includes ------------------------------------------------------------------*/
#include "mx_gpio.h"
/* USER CODE BEGIN 0 */0 z1 b1 E- U1 Z P) \
/* USER CODE END 0 */5 L; l- V0 B/ b, m0 j; @$ R
/*----------------------------------------------------------------------------*/
/* Configure GPIO */$ z3 Y6 g# l+ Z3 }% \2 y
/*----------------------------------------------------------------------------*/& X; _9 }+ x) _1 J& X2 Z& \
/* USER CODE BEGIN 1 */5 ?) N- \. n1 X' k1 p' ~. v
0 \5 N0 D' Z* ]2 q
/* USER CODE END 1 */& R% W. X# F" \5 Q1 _/ s% O/ `
. R! _0 _0 m4 [& x- X% u
void mx_pinout_config(void) {
/* Private typedef ---------------------------------------------------------*/
GPIO_InitTypeDef GPIO_InitStruct;3 h8 r V9 K- D! {
/** ADC GPIO Configuration # r5 K; {4 O1 R+ N* B9 W: E* G+ B
PA1 ------> ADC_IN19 i5 A" z& h8 I5 ^/ Y
*/( N9 a; K1 j+ n3 M
9 r1 Y* n1 p/ e" ^/ O/ u% U; R
/*Enable or disable the AHB peripheral clock */& |$ N1 b* I3 {0 c4 n5 P
RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOA, ENABLE);
' S, M! o) O5 c; s3 y, T/ ^2 K
/*Configure GPIO pin */
GPIO_InitStruct.GPIO_Pin = GPIO_Pin_1;
GPIO_InitStruct.GPIO_Mode = GPIO_Mode_AN;
GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_NOPULL;
GPIO_Init(GPIOA, &GPIO_InitStruct);
. E: D* \: m% V; | i7 J
/** I2C1 GPIO Configuration " k, N0 A% D- ^2 e" P# E
PB6 ------> I2C1_SCL! h* U; U+ l) g
PB7 ------> I2C1_SDA" b' d U/ s; K5 f& Q
*/
# X; S8 G- M8 ?5 i: k, \4 F, _
/*Enable or disable the AHB peripheral clock */
RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOB, ENABLE);
//!!! GPIO_Init is commented because some parameters are missing2 Y( ^7 H- z5 u4 }. H5 }; t7 M
GPIO_InitStruct.GPIO_Pin = GPIO_Pin_6;5 Q u- u k, S3 I9 m, o- v# s
GPIO_InitStruct.GPIO_Mode = ;" W# P( ^' c/ f* T3 I4 Y
GPIO_InitStruct.GPIO_OType = GPIO_OType_PP;
GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_NOPULL;
GPIO_InitStruct.GPIO_Speed = GPIO_Speed_400KHz;
GPIO_Init(GPIOB, &GPIO_InitStruct);! x% p& Y6 p) Z' g* U5 M/ Q
//!!! GPIO_Init is commented because some parameters are missing
GPIO_InitStruct.GPIO_Pin = GPIO_Pin_7;+ ~2 H$ i1 V# T8 j- l% s9 X% ^
GPIO_InitStruct.GPIO_Mode = ;
GPIO_InitStruct.GPIO_OType = GPIO_OType_PP;
GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_NOPULL;
GPIO_InitStruct.GPIO_Speed = GPIO_Speed_400KHz;
GPIO_Init(GPIOB, &GPIO_InitStruct);
/*Configure GPIO pin alternate function */
GPIO_PinAFConfig(GPIOB, GPIO_PinSource6, GPIO_AF_I2C1);
8 t' b: e+ Y# S' ?! q/ Z1 L# ~4 |5 F
/*Configure GPIO pin alternate function */) |" |( I$ Y% d
GPIO_PinAFConfig(GPIOB, GPIO_PinSource7, GPIO_AF_I2C1);0 x* T" {6 A; \4 S. r5 K# H @. @
' w$ Y& |1 u8 |+ w: _) M. T
$ j5 f8 ?1 R; O$ J3 [, v% ]" |" d
/** SPI2 GPIO Configuration
PB12 ------> SPI2_NSS- b6 |9 }, a; x! Q0 m1 L
PB13 ------> SPI2_SCK3 i& a% s6 E. \: Y
PB14 ------> SPI2_MISO
PB15 ------> SPI2_MOSI4 h1 U% l$ r7 r1 `, r! _9 f" o/ Z; u
*/
H0 F! M9 v, O6 l3 R6 [- h
. f5 l0 J0 x' Y; c& {
/*Enable or disable the AHB peripheral clock */2 T& Z0 o, ?$ A5 M+ K s' X8 k* t: i
RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOB, ENABLE);
//!!! GPIO_Init is commented because some parameters are missing" h7 c, F7 d1 [! n5 A
GPIO_InitStruct.GPIO_Pin = GPIO_Pin_12;/ k# l: i4 Y ~ b$ W
GPIO_InitStruct.GPIO_Mode = ; s6 ~6 H e$ R: o7 D
GPIO_InitStruct.GPIO_OType = GPIO_OType_PP;7 ~2 c, _6 i/ E9 U
GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_NOPULL;
GPIO_InitStruct.GPIO_Speed = GPIO_Speed_400KHz;
GPIO_Init(GPIOB, &GPIO_InitStruct);( G0 _+ V/ A* P% X
* ^2 u& @1 V. D
//!!! GPIO_Init is commented because some parameters are missing
GPIO_InitStruct.GPIO_Pin = GPIO_Pin_13;1 x u: E' S" L/ y ]6 Z; |
GPIO_InitStruct.GPIO_Mode = ;: i0 o/ q) q! f
GPIO_InitStruct.GPIO_OType = GPIO_OType_PP;3 ?1 K. v; H2 Z2 g* L3 K4 o: F
GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_NOPULL;
GPIO_InitStruct.GPIO_Speed = GPIO_Speed_400KHz;
GPIO_Init(GPIOB, &GPIO_InitStruct);
//!!! GPIO_Init is commented because some parameters are missing+ O) H! K2 l$ C$ k/ [1 I3 [
GPIO_InitStruct.GPIO_Pin = GPIO_Pin_14;
GPIO_InitStruct.GPIO_Mode = ;, F7 ~0 F- A6 N
GPIO_InitStruct.GPIO_OType = GPIO_OType_PP;
GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_NOPULL; V+ V7 f; I0 L2 p! M
GPIO_InitStruct.GPIO_Speed = GPIO_Speed_400KHz;
GPIO_Init(GPIOB, &GPIO_InitStruct);9 N( z& F; T" F0 c, N3 K. n0 p
) K- g( z# r+ t( B& k
//!!! GPIO_Init is commented because some parameters are missing
GPIO_InitStruct.GPIO_Pin = GPIO_Pin_15;' B1 S% l) Z9 r# d
GPIO_InitStruct.GPIO_Mode = ;" [, k, e5 ^6 N q6 O; j
GPIO_InitStruct.GPIO_OType = GPIO_OType_PP;* t5 l' [! O8 G" j8 Z7 n
GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_NOPULL;5 |) q, Q% \7 N. o* G( g
GPIO_InitStruct.GPIO_Speed = GPIO_Speed_400KHz;0 v' i% z, e5 r/ a. A- |. j
GPIO_Init(GPIOB, &GPIO_InitStruct);
2 q! p6 ~3 B6 p. t: ]
/*Configure GPIO pin alternate function */1 _) z2 w* u8 A, P! C+ h2 z6 k5 A9 T
GPIO_PinAFConfig(GPIOB, GPIO_PinSource12, GPIO_AF_SPI2);
/*Configure GPIO pin alternate function */# F8 w, N# J+ P1 T* K E& B
GPIO_PinAFConfig(GPIOB, GPIO_PinSource13, GPIO_AF_SPI2);
F! M7 v5 u5 M( b' x8 [. y' O) U
/*Configure GPIO pin alternate function */
GPIO_PinAFConfig(GPIOB, GPIO_PinSource14, GPIO_AF_SPI2);
. j8 D: Y6 e( x' a4 U* X
/*Configure GPIO pin alternate function */" g+ N S1 q/ Z: p- M; v) M
GPIO_PinAFConfig(GPIOB, GPIO_PinSource15, GPIO_AF_SPI2);
3 I8 Q2 P6 ~2 Q$ T. _0 M7 K* q
) f0 Z9 S" X# ^, ^) ~/ {) y$ G0 A; g
/** USART1 GPIO Configuration 7 h9 X& H' \* W) |# s
PA9 ------> USART1_TX6 D4 C! m X' x& G$ i5 k) l
PA10 ------> USART1_RX
*/6 o5 r# v, g' R
& ] W. @6 [" G) Z" l0 T
/*Enable or disable the AHB peripheral clock */
RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOA, ENABLE);
6 a1 n4 k( ~8 F$ M4 C+ a0 l q
# _) I- D: I4 ]+ f
//!!! GPIO_Init is commented because some parameters are missing- i# Q+ U4 F3 j& m& V$ }
GPIO_InitStruct.GPIO_Pin = GPIO_Pin_9;5 L0 y; a# N0 y! X% x
GPIO_InitStruct.GPIO_Mode = ;
GPIO_InitStruct.GPIO_OType = GPIO_OType_PP; b) K4 n1 ~' x8 P$ g, d( P" F
GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_NOPULL;
GPIO_InitStruct.GPIO_Speed = GPIO_Speed_400KHz;
GPIO_Init(GPIOA, &GPIO_InitStruct);
- N+ E5 s- J) M+ c9 f
//!!! GPIO_Init is commented because some parameters are missing
GPIO_InitStruct.GPIO_Pin = GPIO_Pin_10;
GPIO_InitStruct.GPIO_Mode = ;
GPIO_InitStruct.GPIO_OType = GPIO_OType_PP;
GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_NOPULL;
GPIO_InitStruct.GPIO_Speed = GPIO_Speed_400KHz;! T2 h: K; Q, t( ^5 H7 ]2 A3 y: v
GPIO_Init(GPIOA, &GPIO_InitStruct);6 S: a' \- ]" A) j
' N1 {, t, |0 C1 T$ {
/*Configure GPIO pin alternate function */
GPIO_PinAFConfig(GPIOA, GPIO_PinSource9, GPIO_AF_USART1);
7 \- J3 @% _6 t' T" N C
/*Configure GPIO pin alternate function */
GPIO_PinAFConfig(GPIOA, GPIO_PinSource10, GPIO_AF_USART1);
/** USB GPIO Configuration
PA11 ------> USB_DM) i" |$ i/ c( t/ Z4 M! z
PA12 ------> USB_DP
*/! E$ Z8 X: j' F9 ?/ V
8 @. s$ ~# g) i9 B
/*Enable or disable the AHB peripheral clock */2 ^) k3 w, {8 P, }0 q
RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOA, ENABLE);
//!!! GPIO_Init is commented because some parameters are missing
GPIO_InitStruct.GPIO_Pin = GPIO_Pin_11;. H3 S7 H; e. n3 w; u
GPIO_InitStruct.GPIO_Mode = ;, U* |/ i: z- _" e- k% i' ?
GPIO_InitStruct.GPIO_OType = GPIO_OType_PP;+ e/ Q1 }" h9 P! t7 u; W0 p
GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_NOPULL;4 U/ t0 Q; k( L5 o
GPIO_InitStruct.GPIO_Speed = GPIO_Speed_400KHz;6 h5 Z- c2 r6 M1 G K; n
GPIO_Init(GPIOA, &GPIO_InitStruct);) d( ?6 g/ S9 l# j. x0 F. n1 m
. d+ i: V' K; `( f e
//!!! GPIO_Init is commented because some parameters are missing$ Q" T' b9 Z9 N! j" W8 F9 t& l! r
GPIO_InitStruct.GPIO_Pin = GPIO_Pin_12;* m$ y& r) J3 h" y7 s
GPIO_InitStruct.GPIO_Mode = ; [6 k4 o' |) b9 [) t
GPIO_InitStruct.GPIO_OType = GPIO_OType_PP;
GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_NOPULL;
GPIO_InitStruct.GPIO_Speed = GPIO_Speed_400KHz;! ]6 c( B/ }( P6 y6 U, r
GPIO_Init(GPIOA, &GPIO_InitStruct);* e2 G) O& A* I2 y; Q: G/ f
/ R8 S H' a# s/ P2 H( U; I2 R
/** Configure pins as GPIO
PA8 ------> GPIO_Input) `: l/ k" U d& \2 m
*/ G/ ^2 {) T+ x2 j
/*Enable or disable the AHB peripheral clock */# _1 o7 {8 R7 R' `4 | x1 l- r
RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOA, ENABLE);
r5 S; o' I3 B( k) `
/*Configure GPIO pin */6 z' Q) y: h, m' v1 Y1 e% p
GPIO_InitStruct.GPIO_Pin = GPIO_Pin_8;0 z- a( E0 T& f/ j8 k$ ?
GPIO_InitStruct.GPIO_Mode = GPIO_Mode_IN;
GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_NOPULL;
GPIO_Init(GPIOA, &GPIO_InitStruct);
}
- H3 w" P! h3 q( q e- y
/* USER CODE BEGIN 2 */. F* D" |' c! S+ L
/* USER CODE END 2 */
回复:ST公司出品【图形化配置工具】
RE:ST公司出品【图形化配置工具】
RE:ST公司出品【图形化配置工具】
RE:ST公司出品【图形化配置工具】
RE:ST公司出品【图形化配置工具】
RE:ST公司出品【图形化配置工具】
RE:ST公司出品【图形化配置工具】
RE:ST公司出品【图形化配置工具】
回复:ST公司出品【图形化配置工具】
回复:ST公司出品【图形化配置工具】
RE:ST公司出品【图形化配置工具】
RE:ST公司出品【图形化配置工具】
RE:ST公司出品【图形化配置工具】