Sie sind auf Seite 1von 12

Users Manual of Board Microcontroller ET-ARM STAMP STM32 (Cortex-M3)

38ixc
Figure displays structure of Board ET-ARM STAMP STM32.

WWW.ETT.CO.TH

Users Manual of Board Microcontroller ET-ARM STAMP STM32 (Cortex-M3)


Features of Board ET-ARM STAMP STM32
1. Use MCU 32Bit ARM Cortex-M3 64Pin (LQFP) of STmicroelectronics 2. Use Crystal 8.00MHz + Phase-Locked Loop (PLL), Run 72MHz frequency with speed 1.25 DMIPS/MHz to process data that is equivalent to 90MIPS 3. Has RTC (Real Time Clock) Circuit with XTAL 32.768KHz and Battery Backup 4. Support In-System Programming (ISP) and InApplication Programming (IAP) through On-Chip BootLoader Software via Port USART1 (RS232) 5. Has RS232 Communication Circuit that uses Connector 4-PIN 1 Channel standard ETT 6. Has 48 Bit GPIO with 5V-Tolerant for independent applications 7. Use +3.3V Power Supply 8. Connector is placed on 50 Pin Header with a distance of 2.54mm (100mil) (25 pins per side) with a distance of 1.5 inch (1500mil/38.1mm), so it is quite easy to use and expand I/O Circuit. Moreover, it can be used with Project Board and PCB.

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

Users Manual of Board Microcontroller ET-ARM STAMP STM32 (Cortex-M3)


Structure of Board ET-ARM STAMP STM32
3 2 9

4 5 10 6 7 8

Figure Show positions of components on Board ET-ARM STAMP STM32.

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

Users Manual of Board Microcontroller ET-ARM STAMP STM32 (Cortex-M3)


Application of RS232
Port RS232 is signal RS232 that has already been converted signal MAX3232, so USART1 can be connected with signal RS232 to receive-transmit data. Moreover, USART1 can be used to be ISP Download to download Hex File into MCU. In this case, it must be used with Jumper (BOOT1) SW (BOOT0) and SW (RESET) to reset CPU to start running in Boot-Loader Mode to download Hex File into CPU (see more detail from To Download Hex File into MCU of Board).

USART1(Download)
1 2 3 4

RXD1

TXD1

+3V3

USART1 uses signal Pin from PA9(TXD1) and PA10(RXD1).

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

RXD TXD GND

1 2 3 4 ET-RS232

Figure display the Cable circuit for RS232.

WWW.ETT.CO.TH

Users Manual of Board Microcontroller ET-ARM STAMP STM32 (Cortex-M3)


Download Hex File into MCU of Board
To download Hex File into Flash Memory of MCU inside board is to use Program Flash Loader of STMicroelectronics that is connected to MCU through Serial Port of Computer PC. This program can be downloaded free from website www.st.com.

Procedures to Download HEX File into MCU


1. Interface RS232 Cable between RS232 Serial Port Communication of PC and Board USART1. 2. Supply power into board and user can see that LED PWR is in status ON. 3. Run Program Flash Loader; if it is version demo 1.1, it will show the result as shown in the picture below;

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

Users Manual of Board Microcontroller ET-ARM STAMP STM32 (Cortex-M3)


4.2 Set Baud Rate in the range of 1200-115200; if computer has the problem or Error when using very high Baud Rate, please reduce the Baud Rate vales; in this example, it is 115200. 4.3 Set Parity Bit of Serial Port; it this case, we recommend user to choose it as None. 4.4 Set Timeout of the communication; in the example, it is 1 second. 4.5 RESET MCU to run in Boot Loader as following procedures; Set Jumper BOOT1 on ISP side (Signal BOOT1 = 0). ON Switch BOOT0 and user can see LED BOOT0 in status ON (Signal BOOT0 = 1). Press Switch RESET and remove it; it makes CPU start running in Boot Mode. 5. Click Next to start downloading; if everything is OK, program will read status from CPU and report the results to user. If using STM32F103RBT6, it will display results as shown in the picture below;

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

Users Manual of Board Microcontroller ET-ARM STAMP STM32 (Cortex-M3)

7. Click Next to go to the next step.

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

Users Manual of Board Microcontroller ET-ARM STAMP STM32 (Cortex-M3)


the operation of program is complete as shown in the picture below.

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

Users Manual of Board Microcontroller ET-ARM STAMP STM32 (Cortex-M3)


Errors while downloading by Program Flash Loader V1.1
Sometimes, when user downloads HEX File into MCU through Boot Loader by RS232, program will report the errors because it can not be connected to Boot Loader as shown in the example below.

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

Users Manual of Board Microcontroller ET-ARM STAMP STM32 (Cortex-M3)


after user has already tested program completely, it will be error as mentioned above. We recommend user to initially solve the problem and decrease the mistake as follows; o Dont set Baud Rate for downloading and using with different parameter values; it is the best if setting them with the same value. o If user tests the operation of the written program that does not use any RS232, user must remove RS232 Cable from board instantly to reduce data that is junk or garbage in Buffer of RS232 after download code completely. o If Code Command in program of MCU runs as printing data through Port RS232 all the time, user must reset MCU to stop transmitting data to Port RS232 before opening Program Flash Loader to download new Code. In this case, user resets it to run in Boot Loader first and then open Program Flash Loader. o If it is Converter that converts Port USB/RS232, user must remove USB Cable before opening Program Flash Loader to clear data in Buffer first, re-plug USB cable and wait for awhile and finally, user can open Program Flash Loader without any problem. o If your computer has Port RS232 more than 1; we recommend user to separate Port RS2232 for download and use independently.

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

+3V3 J5 PB2 A BOOT1 5 R5 22k 1 2 3 BOOT0 R6 22k 2

BOOT0 S2 1 3 4 6 R7 560 +3V3 D5 BOOT0=1 +3V3

R1I T1O R2I T2O

13 14 8 7

RXD-1 TXD-1

1 2 3 4

USART1(Download)

ICL3232 Title Size A4 Date: File: Number

Revision

6-Aug-2008 D:\ET-ARM STAMP STM32.ddb

Sheet of Drawn By:

Das könnte Ihnen auch gefallen