User's Manual of Et-Stamp-Stm32
User's Manual of Et-Stamp-Stm32
User's Manual of Et-Stamp-Stm32
38ixc
Figure displays structure of Board ET-ARM STAMP STM32.
WWW.ETT.CO.TH
Specification Peripheral MCU Flash RAM SPI I2C USART USB CAN SDIO ADC 12 Bit DAC 12 Bit
ET-ARM STAMP ET-ARM STAMP STM32F103/128 STM32F103/512 STM32F103RBT6 STM32F103RET6 128K 512K 20K 64K 2 3 (I2S x 2) 2 2 3 5 1 1 1 1 1 16 16 2
WWW.ETT.CO.TH
4 5 10 6 7 8
No.1 is MCU on board. No.2 is Connector USART1 (RS232) for use and download. No.3 is Connector +3V Battery Backup-RTC. No.4 is LED Power. No.5 is LED BOOT0 (BOOT0=1). No.6 is Switch BOOT0 that can be used with Jumper J1 to choose operation mode of Board between Download from USART1 or Normal RUN. In this case, if it is ON, it is Download; on the other hand, if it is OFF, it is RUN. No.7 is Jumper (BOOT1) that can be used with BOOT0 to choose operation mode of board between Download from USART1 or Normal RUN. In this case, it always is set at ISP position. No.8 is Switch RESET for RESET operation of MCU. No.9 is connecting point of GND. No.10 is +3.3V Power Supply.
WWW.ETT.CO.TH
USART1(Download)
1 2 3 4
RXD1
TXD1
+3V3
The Cable that is used to connect RS232 between Comport of computer PC and Connector USART-1 and USART-2 of Board ET-ARM STAMP STM32 is shown as follows;
1 6 2 7 3 8 4 9 5 DB 9(FEMALE) RS 232-PC CD DS R RXD RTS TXD CTS DTR RI GND
GND
1 2 3 4 ET-RS232
WWW.ETT.CO.TH
4. Set initial values for program; if using with Board ET-ARM STAMP STM32 of ETT, please set values into program as follows; 4.1 Set COM Port according to the actually used COM Port number (in the example, it is COM4).
WWW.ETT.CO.TH
6. Click Next, Program Flash Loader starts displaying the statuses that are read from MCU to user. If using STM32F103RBT6, it will display results as shown in the picture below;
WWW.ETT.CO.TH
8. Click Next, Program starts downloading data into MCU instantly and user can see its operation through Status bar. In this procedure, user must wait until
WWW.ETT.CO.TH
9. When the operation of program is complete, click Finish and OFF Switch BOOT0, user can see that LED BOOT0 is in status off. Then, press Switch RESET on board and MCU will start running follow the downloaded program instantly.
WWW.ETT.CO.TH
This error is occurred because of Program Flash Loader can not communicate with MCU through Boot Loader by RS232. There are may causes as shown below; User does not RESET MCU to run in Boot Loader yet before click Next in the first step of command Program Flash Loader. In this case, user can check whether Jumper BOOT1 is set to ISP side and SW-BOOT0 must be set in ON position (LED BOOT0 is ON). Set COM port number not corresponding with the actually connected.
If user follows all procedures correctly but it remains the error, it means that the error is occurred because of Program Flash Loader. From the actually tested, the problem is occurred because of data that is junk or garbage inside Buffer of Port RS232, so it makes Program Flash Loader run incorrectly. There are many causes as described below; It uses the same channel of RS232 Serial Port for downloading and using but it uses different parameter values. For example, if downloading data by Program Flash Loader, it uses Baud Rate 115200; after downloading is complete, it uses Baud Rate 9600 for operating program of MCU to transmit-receive data with RS232. Moreover, if Download Cable is plugged all the time and user wants to download the new data
WWW.ETT.CO.TH
WWW.ETT.CO.TH
10
D1 PWR +3V3
C3 D +3V3 J1 1 2 BATT U1 STM32F103RBT6(LQFP64) C5 13 100n 12 1 32 48 64 19 C7 100n 31 47 63 18 7 C8 100n C9 100n VDD_A PB0/ADC8/TIM3_CH3 PB1/ADC9/TIM3_CH4 VSS_A PB2/BOOT1 PB3/JTDO/TIM2_CH2/SPI1_SCK VBATT PB4/JNTRST/TIM3_CH1/SPI1_MISO PB5/I2C1_SMBAI/TIM3_CH2/SPI1_MOSI VDD_1 PB6/I2C1_SCL/TIM4_CH1/USART1_TX VDD_2 PB7/I2C1_SDA/TIM4_CH2/USART1_RX VDD_3 PB8/TIM4_CH3/I2C1_SCL/CANRX VDD_4 PB9/TIM4_CH4/I2C1_SDA/CANTX PB10/I2C2_SCL/USART3_TX/TIM2_CH3 PB11/I2C2_SDA/USART3_RX/TIM2_CH4 PB12/SPI2_NSS/I2C2_SMBAI/USART3_CK/TIM1_BKIN VSS_1 PB13/SPI2_SCK/USART3_CTS/TIM1_CH1N VSS_2 PB14/SPI2_MISO/USART3_RTS/TIM1_CH2N VSS_3 PB15/SPI2_MOSI/TIM1_CH3N VSS_4 PC0/ADC10 NRST PC1/ADC11 PC2/ADC12 BOOT0 PC3/ADC13 PC4/ADC14 PA0/WKUP/USART2_CTS/ADC0/TIM2_CH1_ETR PC5/ADC15 PA1/USART2_RTS/ADC1/TIM2_CH2 PC6/TIM3_CH1 PA2/USART2_TX/ADC2/TIM2_CH3 PC7/TIM3_CH2 PA3/USART2_RX/ADC3/TIM2_CH4 PC8/TIM3_CH3 PA4/SPI1_NSS/USART2_CK/ADC4 PC9/TIM3_CH4 PA5/SPI1_SCK/ADC5 PC10/USART3_TX PA6/SPI1_MISO/ADC6/TIM3_CH1 PC11/USART3_RX PA7/SPI1_MOSI/ADC7/TIM3_CH2 PC12/USART3_CK PA8/USART1_CK/TIM1_CH1/MCO PC13/TAMPER-RTC PA9/USART1_TX/TIM1_CH2 PA10/USART1_RX/TIM1_CH3 PC14/OSC32_IN PA11/USART1_CTS/CANRX/TIM1_CH4/USBDM PC15/OSC32_OUT PA12/USART1_RTS/CANTX/TIM1_ETR/USBDP PA13/JTMS/SWDIO PD0/OSC_IN PA14/JTCK/SWCLK PD1/OSC_OUT PA15/JTDI/TIM2_CH1/SPI1_NSS PD2/TIM3_ETR 14 15 16 17 20 21 22 23 41 42 43 44 45 46 49 50 8 9 10 11 24 25 37 38 39 40 51 52 53 2 3 4 5 6 54 PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 PC8 PC9 PC10 PC11 PC12 PC13 PD2 26 27 28 55 56 57 58 59 61 62 29 30 33 34 35 36 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PB8 PB9 PB10 PB11 PB12 PB13 PB14 PB15 C1 100n C2 10uF 100n PMEG4005ET D4 PMEG4005ET +3V3 L1 ferrite bead C4 10uF D3 D2 3V6 R1 560
J2 PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PA8 PA9 PA10 PA11 PA12 PA13 PA14 PA15 PB0 PB1 PB2 PB3 PB4 PB5 PB6 RESET +3V3 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
J3
C C6 100n
+3V3
PD2 PC13 PC12 PC11 PC10 PC9 PC8 PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0 PB15 PB14 PB13 PB12 PB11 PB10 PB9 PB8 PB7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
+3V3 RESET R2 10k PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PA8 PA9 PA10 PA11 PA12 PA13 PA14 PA15 BOOT0 60
+3V3 U2 1 C16 10pF Y1 32.768kHz C17 C18 R3 1M 10pF 22pF Y2 8MHz C19 22pF R4 PA10 100 PA9 C14 100n 5 12 11 9 10 C2R1O T1I R2O T2I C12 100n 3 4 C1C2+ C1+
C11 100n
B S1 RESET
C10 100n
VCC
16
C13 100n
V+
V-
C15 100n
GND
15
+3V3
J4
13 14 8 7
RXD-1 TXD-1
1 2 3 4
USART1(Download)
Revision