Home
EvoPrimer for STM32F Performance MCU Fun, easy introduction kit
Contents
1. 09 Sept 2010 Memory maps update Preinstalled applications list CircleOS v4 1 Disclaimer Information in this document is subject to change without notice and does not represent a commitment on the part of the manufacturer The software described in this document is provided under license and may only be used or copied in accordance with the terms of the agreement It is illegal to copy the software onto any medium except as specifically allowed in the license or non disclosure agreement No part of this manual may be reproduced or transmitted in any form or by any means electronic or mechanical including photocopying recording or information storage and retrieval systems for any purpose other than the purchaser s personal use without prior written permission Every effort has been made to ensure the accuracy of this manual and to give appropriate credit to persons companies and trademarks referenced herein This manual exists both in paper and electronic form pdf Please check the printed version against the pdf installed on the computer in the installation directory for the most up to date version The examples of code used in this document are for illustration purposes only and accuracy is not guaranteed Please check the code before use Copyright Raisonance 1987 2010 All rights reserved 27 RAISONANCE
2. Addr 0x08008000 Size 4KB Largest free block 92KB Add Afilename Add a new application object file circle_mgr exe Ac tmp level o Linkin ne EE Meer sa Link cor Co Emp levels succeeded Hex file generated Blank checking the FLASH area OK Programming file tmp ld hex to TtlashacO0K Registering application in PAT ds OK Erase E circle mgr exe EMaze remove only Maze Eappname circle mgr exe E remove ALL apps Wait W When a command list is launched through a batch file the W command allows you to pause the execution and to check the intermediate results Start S Start CPU execution Caution Any hex file can be programmed to the Flash memory of your EvoPrimer using the cortex_pgm exe utility However doing this will destroy your CircleOS firmware and you will have to reinstall it if you wish to use it later refer to chapter 5 7for details 19 RAISONANCE 5 Managing your CircleOS applications EvoPrimer for STM32F103VE 5 5 Selecting the current application One application is considered to be the current application The ID of the current application is saved in the backup memory From the main menu you can launch it directly To change the current application select the Application command from the main menu Then select the application you wish to specify it as the current application and push the button The new current application name will now appear in the main
3. PAO WKUP ADC INOCan be used either as a standard GPIO or considered as an alternate function WKUP USART2 CTS ADC12 INO TIM2 CH1 ETR 15 RTS PA 1 CX USART RTS Can be used either as a standard GPIO or considered as an alternate function USART2 RTS ADC12 IN1 TIM2 CH2 16 TX PA 2 CX USART TX Can be used either as a standard GPIO or considered as an alternate function USART2 TX ADC12 IN2 TIM2 CH P BUTTON Push button input Can wakeup the extension board 18 RX PA 3 CX USART RX Can be used either as a standard GPIO or considered as an alternate function USART2 RX ADC12 IN3 TIM2 CH4 19 VEXT VBAT Base battery voltage provided GND Notes Printed names on the extension board may not accurately match the pin names that exist for the STM32F103VE target board because the base is a generic design that supports other processor families namely STM8 which do not share the same feature set as STM32 If you need CAN connectivity you must solder a CAN transceiver model MAX3051ESA from Maxim Its footprint is identified on the picture below 9 RAISONANCE 3 EvoPrimer hardware EvoPrimer for STM32F103VE On Pin 7 SWO is used for ITM debug traces for printf like functionality thanks to the embedded RLink of your EvoPrimer base SWO must not be enabled in your Ride7 project if you need to use SPI3 or 1283 through the extension connector The following picture shows the footprint
4. STM32F 10x Datasheet see http www st com Cortex M3 Technical Reference Manual describes Cortex M3 Core see http www arm com ILI9325 Datasheet describes the 262K color single chip TFT controller driver see http www ilitek com LCM TGG000240YP04 24 Model pdf describes the 320x240 display of the EvoPrimer base The GNU Compiler Collection GCC manuals are available from the Ride7 environment Visit the Circle community web site at www stm32circle com for more resources and software tool downloads 1 3 Additional help or information Please visit the Raisonance website http www raisonance com and the forum htto www raisonance com Forum punbb or contact Raisonance Address Raisonance S A S 17 Avenue Jean Kuntzmann 38330 Montbonnot Saint Martin France Telephone 33 4 76 61 02 30 Fax Email 33 4 76 41 81 68 support raisonance com If you find any errors or omissions or if you have suggestions for improving this manual please let us know by email RAISONANCE is Primer for STM32F103VE 2 Presentation Evo 2 Presentation 2 1 Base features Your EvoPrimer is composed of two major hardware elements a base platform a target board featuring an STM32F103VE When the target board is connected to the base the STM32F103VE drives the base s hardware features for evaluation purposes When the base is connected to a PC the target microcontroller can be reprogrammed and applicat
5. STM32F103VE 4 4 2 Explore the STM32 Toggle applcaton nnn 14 5 Managing your CircleOS elle e tetto tu ite tutos tal este neto eo eb nra 15 SMEO 8 e Ee VERE mt 15 5 2 The CircleOS Gcheduler eene nne nnn nnns na arn n rns n nan n ns nenne 15 Ss Milani Eer E Le 15 522 deele Le let E 16 5 2 3 Application scheduler nennen nennen nnne nnn nnns inanes nnns nnns 16 5 2 4 Periodic Timer2 interrupt lisse nennen nennen nn nnn nn nnn na nnn sane is 16 5 3 CircleOS resource usage nennen nenne nnnni nnn nessuna rini is sna a nisi snas ases nsns nnns n nns 17 sow ipea acie EET mm 17 5 9 2 Resources used DY CINCO EE 18 5 4 Managing applications on your EvoPrimer esses nene 19 5 5 Selecting the current application elssseseisssssessseseeeeeennnennenn nnne nnne nnne nnn nnns 20 5 6 Downloading NEW ele E 20 5 7 Resetting your et TT 21 SER ted WW A SS SC RETE UE ELTE 21 5 7 2 Software reset Crclep nennen nnnnnnnn annis nensis nasa ian nnn nissan nans 21 5 7 3 Software reset Factory CONFIQUIATION nennen nnne nnne nnns 21 b Developing elei ER ee lee nS mene nnn enon ene nen ee enn desides see ele dnd edoat desde uae 22 6 1 Developing your first CircleOS applceaton nnns 22 Suc 22 6 3 Debugging o U dizlo o eui 0 0 PRRPNOR EEEPTITE TEIROEE aae EA Aar EEE in 23 6 4 Sharing your application with the Circle Community 23 T COMMONLY A
6. which restricts the use of six hazardous chemicals in its products for the protection of human health and the environment The restricted substances are as follows lead mercury cadmium hexavalent chromium polybrominated biphenyls PBB and polybrominated diphenyl ethers PBDE Ce CE Compliance Conformit Europ enne Raisonance products are certified to comply with the European Union CE Directive In a domestic environment the user is responsible for taking protective measures from possible radio interference the products may cause FC FCC Compliance Federal Communications Commission Raisonance products are certified as Class A products in compliance with the American FCC requirements In a domestic environment the user is responsible for taking protective measures from possible radio interference the products may cause WEEE Compliance The Waste Electrical amp Electronic Equipment Directive As part of our continuing efforts to proved the best service to our users an communities Raisonance is actively defining take back and recycling programs for EU customers as part of the implementation of the European WEEE directive The WEEE symbol is a reminder not to dispose of your electronic equipment in standard trash receptacles For more information about disposal and recycling of electronic goods please refer to http www raisonance com support weee php Raisonance disposes of its electrical equipment according to the WE
7. 24KB Application 3 8KB 0x0801A800 Application 2 4KB 0x08011000 0x08010000 0x0800FFFF Free debug 0x0800C000 64KB 0x0800BFFF 0x08000000 17 RAM 64KB 0x2000FFFF 0x2000D000 Stack l Application data 52KB 0x20000000 RAISONANCE 5 Managing your CircleOS applications EvoPrimer for STM32F103VE 5 3 2 Resources used by CircleOS The following figure from the ST datasheet shows the peripherals used by CircleOS mittes TRACED G s Sr Yip was YE V Power JNTRST DI alt rag Vu A 83V 018 ss JTCK SWCLK JTMS SWDIO as AF S NAST Reset VDDA SSA GP OMAI sed Seege ah Sp OSC IN D 15 0 channels TAL CSC OSC OUT CLK pesi UU 4 16 MHz NOE WWE iine hannels Neie NE 4 4 as LCD NEL 1 0 CL Jas ty VpaT 18 Vo 36V NWAIT Lu egen NL or NADY OSC82 IN as AF Lora OSC32 OUT ATC Bacup TAMPER RTC AWU 8 d ALARM SECOND OUT M E M S SD Card rar CK as AF d e Backup interface AHB2 AHB2 APB2 APB Wt TIM 2 4 channels ETA as AF TIM3 dq d ETA as AF p EON S LCD backlight PA 15 0 gt 4 channels ETA as AF PB 15 0 lt cl 3 cL HR 4 channels as AF PCHE lt alt gt E SN PX TX CTS ATS J oystick PD IEG c zl a PX TX CTS RTS AL XA Lm Pe PE 15 0 gt RX TXas AF Push button e i Audio Codec PF i5 0 7 aPlo GE E AS H FX TK asAF dat Pa 15 0 7 GPIO GPlOpotG Nesp pen B
8. 2circle com resources GNU C C compiler unlimited compiling CircleOS operating system and base services An online community available at http www stm32circle com makes it possible to share your EvoPrimer experience with others on the forums retrieve useful resources application notes firmware demos C sources and projects and applications all available for free download 5 RAISONANCE 3 EvoPrimer hardware EvoPrimer for STM32F103VE 3 EvoPrimer hardware 3 1 Package contents Your EvoPrimer unit has been carefully packed Examine the equipment for damage that may have occurred during shipment If you find any damage or if any of the items are not included please contact Raisonance Your EvoPrimer is delivered in two packages 1 EvoPrimer base with USB cable 2 STM32F103VE target board Note Download software tools after free registration at www stm32circle com 3 2 Components overview Here is a brief overview of the main components of the STM32F1083VE target board Debug trace connector USB device connector STM32F103VET6 512 KB FLASH 64KB RAM Audio codec Base connector RAISONANCE 6 EvoPrimer for STM32F103VE 3 EvoPrimer hardware 3 3 Target board features 3 3 1 STM32F103VE microcontroller features The target board is equipped with an STM32F103VET6 from STMicroelectronics STM32F Performance Line of 32 bit ARM Cortex M3 core based microcontrollers Its main characteristics a
9. Circleos 5 The batch script erases your EvoPrimer reprograms it with its factory ROM image which is in the circle hex file then restarts the device Note This operation can also be done with the following command Coree mexonq db SH Sv Meo hs hile ee where PEvo STM32E Circle Factory hex programs the device with the proper hex file 21 RAISONANCE 6 Developing CircleOS applications EvoPrimer for STM32F103VE 6 Developing CircleOS applications The full source files of CircleOS are available on the http www stm32circle com web site Once registered you will be able to download them along with many resources for developing your application The games originally delivered with the EvoPrimer show working application examples 6 esch Developing your first CircleOS application Creation of a CircleOS application is done automatically in Ride7 Navigate to Project New project Set the Type selection list to New application In the Processor selection list select the STM32bE Evo CircleOS device Select an application name such as My CircleOS application Define the location where your new project will be created Click the Finish button Your new project will be created with an application containing a CircleOS application skeleton as well as the Evo Circle STM32E elf and FAT OPA4A elf files necessary to connect your application to CircleOS Open the Application c file Search for the Application Name variable i
10. During the initialization stage the hardware Reset Exception configuration is performed and the periodic system timer Systick is installed initialization WEED _Init The Systick period depends on the RCC MEMS_Init settings it can be modified through the menu Config CPU Speed to the following predefined values on do nothing CPU freq Systick freq MHz kHz 1 1 07 enden BUTTON Handler BUZZER Handler Periodic MENU Handler 11 LCD Handler Actions r E The ratio CPU freq SysTick 2 24000 applies for all these values 15 RAISONANCE 5 Managing your CircleOS applications EvoPrimer for STM32F103VE 5 2 2 Periodic Systick interrupt The periodic Systick makes a call to the CircleOS Systick interrupt handler which performs a short process on each of the STM32 EvoPrimer components LEDs button buzzer LCD and so on Note that the MEMS handler is called from the Timer2 interrupt which has a priority higher than the Systick interrupt This ensures a fixed and precise measurement rate I2S transfers towards the audio Codec chip are handled through the DMA interrupt 5 2 3 Application scheduler CircleOS is the base application of the EvoPrimer It handles the menu selections and reacts to user actions When an application is run usually through a menu selection CircleOS calls an initialization routine for the application CircleOS then repeatedly calls t
11. EE Directive 2002 96 EC Upon request Raisonance can recycle customer s redundant products RAISONANCE 24 EvoPrimer for STM32F103VE 8 Glossary 8 Glossary Term Description STM32F EvoPrimer EvoPrimer for STM32F103VE MCU a microcontroller evaluation amp development platform EvoPrimer Commercial products which are derived from the Raisonance Open4 and distributed by STMicroelectronics for exploring evaluating developing and fine tuning applications for a variety of ST 8 and 32 bit microcontrollers Certain use limitations may apply to these commercial products Open4 Raisonance versatile hardware platform which is used in a variety of commercial products that allow users to explore evaluate develop and fine tune applications for a range of microcontrollers that are mounted on Open4 compatible target boards Also refered to as the base platform Also distributed under the name EvoPrimer base Target board Boards featuring target microcontrollers which when installed on an Open4 derived base allow execution of applications programming of the target microcontroller and debugging of the applications running on the target microcontroller Hardware features of target boards will vary depending on the target MCU and its features Some features of the base platform may not be available depending on the features and capabilities of the target microcontroller Extension board Application specific e
12. LII EvoPrimer for STM32F Performance MCU Fun easy introduction kit for STM32F103VE microcontrollers User Manual Document version 09 September 2010 Ad RAISONANC EvoPrimer for STM32F103VE Contents Bo tele e de mMT 4 t1 UO e AIS TVA EE 4 EE TIS MAM Al eege 4 1 3 Additional help or mtormaton enne nnne nnnm nennen nnn nsns nn nnns 4 22 decis Eden CREER D 2 doe TOS Sun teccnnaserenessck oru si vint iri eid bemus tkwrvi sri deebeer 5 2 2 Target board features 5 2 3 Re eine I MRERRRRREEE EE TE UU Tm 5 3 EVOPIIITIeE TIBI OWOEGse cocco dene geet EE daa dx EEA FE E ve Fa ea Een Es hope caet eeu E 6 3 1 Tee RECIBIR D ERN EET 6 3 2 ge ul eene ENEE 6 3 3 Target board ht 7 3 3 1 STM32F103VE microcontroller Teatures nennen 7 E CAN EE S IC ee e 7 323 4 EE y 34 MG 7 3 4 1 3D MEMS acceleromeier AA 7 E e E el 7 Oo EXTENSION CONNEC e PRI TE T TET T 8 3 4 4 Application specific extension boarde nnnm nnns 10 aE oii SLOPE ME 11 M es ee e 1 BERN ERR ER 11 4 1 1 Insert the target board nnne nennen nnnnnni nnn nns nnni nnns inar nnne nns 11 4 1 2 Connect battery charge and power up 12 4 2 Using your EvoPrimer applcatons nnne nnn nnn nnns 12 2 538 BT 12 42 2 Preinstall d 3bDDpliCdllOUS EE 13 2 5 Configuration FAC TAU E 13 4 4 Compiling programming and debuggmg nennen nnne nnne nnns 14 4 4 1 Install software 14 RAISONANCE 2 EvoPrimer for
13. PC through USB Click Debug Start Once the debugger is ready you can run the example through Debug Run You can then play with the sample application on your EvoPrimer GE EE I RAISONANCE ds EvoPrimer for STM32F103VE 5 Managing your CircleOS applications 5 Managing your CircleOS applications 5 1 CircleOS architecture The STM32F103VE target board is equipped with an STM32F103 that contains 512KB of Flash ROM and 64KB of RAM The EvoPrimer embeds the CircleOS operating system source files are available from http www stm32circle com after free registration It provides services that will help you develop your STM32F EvoPrimer applications including Application management LCD graphic functions MEMS functions LED Buzzer and Push Button functions Menu functions Scheduler task Audio functions File system functions Bo E ee Pm 9 CircleOS can load several independent applications Each application is run by CircleOS when selected has the full availability of the CPU and can use all the RAM that is not being used by CircleOS i e 16KB in the memory address range from 2000000h to 20003FFFh It is scheduled by the CircleOS with full privileges on the device until it explicitly quits 5 2 The CircleOS Scheduler CircleOS acts in several stages An initialization stage which occurs upon device reset a periodic Systick interrupt and the scheduling of applications 5 2 1 Initialization stage
14. ately 30 seconds Connect your EvoPrimer s debug USB port to your PC Power up your EvoPrimer by pressing its button Open a command prompt from Windows Start Programs Accessories Command prompt Reload the initial program using the command Update EvoPrimer STM32E Circle og bat from Hide 7 or Program Evo STM32E CircleOS only from stm32circle website in the upgrade zip file po Iw Note This operation can also be done with the following command Cortex ei OIME TO EE where TSTM32F107VCT6 selects the appropriate device E erases the ROM Evo_Circle_STM32E hex is the full application available on the web site S restarts the device 5 7 3 Software reset Factory configuration If you have been experimenting with CircleOS applications and have modified your EvoPrimer configuration you may want to restore the initial factory configuration This operation takes approximately 30 seconds 1 Connect your EvoPrimer s debug USB port to your PC 2 Power up your EvoPrimer by pressing its button 3 Open a command prompt from Windows Start Programs Accessories Command prompt 4 Launch the command Restore EvoPrimer STM32E Circle Factory bat If the command is not recognized change the current directory to the Ride7 installation directory This can be done with the following command adapt it to your actual configuration if you did not install Ride7 in its default location cd C Nprogram files Raisonance Ride lib ARM
15. be used either as a standard GPIO or S 2 D 5 SCL PB 5 SPI3 MOSI 12S3 SD considered as an alternate function B SPI3 MOSI 1283 SD Serial Data SPl1 MOSI if remapped TIM3 CH2 if remapped SCK PB 3 Can be used either as a standard GPIO or considered as an alternate function SPI3 SCK 12S3 CK clock SP SCK if remapped TIM2_CH2 if remapped Note that SWO is also connected to the embedded RLink for debug traces This feature must be disabled when SPI3 or 1283 is used with the extension board WS PA 15 JTDI l283 WS Can be used either as a standard GPIO or considered as an alternate function 1253 WS Word Select TIM2_CH1_ETR E remapped CANH E CX CANH CD 8 8 RAISONANCE 8 EvoPrimer for STM32F103VE 3 EvoPrimer hardware Printed STM32 STM32 name Description name pin 10 CANL CX CANL Connected to the CAN transceiver When the CAN transceiver is not soldered these pins could be easily connected to PB 8 PB 9 on the STM32 by shortcutting the signals on the footprint of the CAN transceiver ADC1 PC 4 CX ADC1 Can be used either as a standard GPIO or considered as an alternate function ADC12 IN14 12 ADC2 PC 5 CX ADC2 Can be used either as a standard GPIO or considered as an alternate function ADC12_IN15 13 A TIM PB O CX ADC TIM Can be used either as a standard GPIO or considered as an alternate function ADC12 IN8 TIM3 CH3 TIM1 CH2N if remapped 14 CTS DA O CX USART CTS
16. ert the target board 1 Remove the transparent cover 2 Switch off the battery see image below left 3 Insert the target board into the base as shown in the image ensuring that the PCB is against the guides 4 Push until the top of the target board fit with the side of the base Switching OFF the EvoPrimer Inserting the target board 11 RAISONANCE 4 Getting started 4 1 2 Connect battery charge and power up Your EvoPrimer is initially shipped with the battery disconnected in order to prevent discharging or harm occurring to the battery You need to connect the battery before operating your EvoPrimer 1 2 Open the EvoPrimer s case by removing the cover which is on the target board Switch the button as shown on the image to power on your device Close the case Connect the EvoPrimer to the USB port on a PC to charge its battery Only the red LED LO will be lit if the battery is charging The green LED L1 is lit when fully charged After charging the battery press the push button to activate the EvoPrimer 4 2 Using your EvoPrimer applications The base provides user interface features such as a color touchscreen audio circuit MEMS accelerometer based navigation joystick push buttons GUI SD card connector IrDA and much more The target board operates evaluation features when connected to the base and includes additional features such as audio codec and a USB connector 4 2 1 Play EvoP
17. for the unsoldered CAN transceiver It is located on the bottom side of the board under the plastic case Mounting Hole Mounting Hole Illustration 3 1 CAN transceiver footprint 3 4 4 Application specific extension boards The base has been designed to be extended through application specific extension boards Such extension boards connect to the extension connector and are compatible mechanically and electronically with the previous STM32 Primer2 so you should be able to reuse your previous designs without modification to the extension board However some limitations may apply for instance if you use specific processor peripheral capabilities that are not portable between designs The following picture shows the mechanical constraints that you should respect to ensure that your extension board fits inside the EvoPrimer case Extension board mechanical specifications RAISONANCE 10 EvoPrimer for STM32F103VE 4 Getting started 4 Getting started This chapter explains how to switch on your EvoPrimer and describes the provided applications 4 1 Switch on The procedure for getting started is reduced to four simple operations 1 Insert a target board into the EvoPrimer base see below 2 Switch the power switch to provide current to the target board see below 3 Slide the transparent cover in place 4 Press the joystick to power up the EvoPrimer 4 1 1 Insert the target board The first thing to do is to ins
18. he application handler at the Systick frequency until it returns a MENU_LEAVE value You will find more details about programming CircleOS applications in Chapter 6 Developing CircleOS applications 5 2 4 Periodic Timer2 interrupt The SPls used to control the MEMS are both driven from the Timer2 interrupt handler which is triggered at a fixed rate Level CPU freq Systick freq Timer2 freq MHz kHz Hz The Timer2 priority is higher than the Systick priority It is mandatory to keep this IRQ at the highest level in order to guarantee proper MEMS behavior Note The frequency of the Timer2 overflow has been set to read a maximum number of measurements from the MEMS However this high rate is often useless and you could easily change this frequency to save CPU time or to get some more stable data from the MEMS RAISONANCE 16 EvoPrimer for STM32F103VE 5 Managing your CircleOS applications 5 3 CircleOS resource usage 5 3 1 Memory usage The CircleOS firmware requires 48KB of debug code in Flash 200KB of constants and non debuggable code in Flash and 12KB of RAM including the stack usage for the applications The remaining 264KB of Flash 512 248 are available for applications which can be added or removed at will using a programming tool see below Flash memory can be programmed in 2KB blocks only The following shows an example of memory mapping FLASH 512KB 0x0807FFFF 0x0805F000 Application x
19. iling programming and debugging 4 4 1 Install software To explore modify and create new applications on your EvoPrimer you need to install some software 1 Register and download the CD ROM Image file on the Resource page of www stm32circle com 2 Extract the files and install e Ride7 the Raisonance IDE to write and debug new applications This includes the RLink driver which is necessary to pilot the programming and debugging of your EvoPrimer from your PC e RKit ARM the Ride7 add on that contains the complete GNU software toolchain based on the GCC compiler e Some utilities to manage your Circle applications Circle is the OS embedded on your EvoPrimer refer to Chapter5 1 CircleOS architecture for details 3 Launch Ride7 4 Connect your PC to the Debug USB port on the base Complete tool documentation is provided with the software installation Note Ride7 should be installed before connecting to this USB port 4 4 2 Explore the STM32 Toggle application Some examples are installed with the RKit ARM for Ride7 For instance this Toggle example will help you build and program a very simple EvoPrimer application TRIDE7_INSTALL_DIR Examples ARM Primer S TM32EvoPrimerWXoggle STMS2EWoggle rpr Follow these steps in order to execute the example on your EvoPrimer Open Ride7 Select Open Project and navigate to the example Click on Project Make Project Once the project is built connect your EvoPrimer to your
20. ion software can be created and debugged using the Ride7 Raisonance software tools The target board also includes additional features that can be implemented in user applications in addition to the features provided on the base The following sections describe the features of the base and target board software tools and basic procedures for their use EvoPrimer The base provides the following capabilities USB debug programming connection SWD for STM32 QVGA 320x240 backlit color LCD with touchscreen capability Joystick push button mechanical 4 push buttons based on touchscreen capability MicroSD card connector Audio circuit with microphone loudspeaker jack 3D MEMS accelerometer Li lon battery with charge management circuitry Add on connector USART SPI I2C ADC 2 2 Target board features The STM32F103VE target board integrates the following hardware features STM32F103VET6 microcontroller 512KB Flash 64KB RAM USB device host port Dual CAN ports on terminals 2 3 Development software The development software offered with the EvoPrimer provides everything you need to program an STM32F and debug applications including USB host connection for in circuit programming and debugging Ride7 integrated development environment for code editing device programming and application debugging debug up to 64K of code with included version For information about upgrade to an unlimited version of Ride visit http www stm3
21. lications e Maze A game where the player navigates inside a labyrinth eating dots to win points while avoiding ghosts e Breakout A game where the player uses a paddle to bounce a ball against a wall of blocks destroying the block to win points Win the game by destroying all the blocks e Square A game where the player must avoid meeting moving squares e Graphics Application that shows the drawing capabilities of the EvoPrimer e MP3 Player Transforms your EvoPrimer to a MP3 player Shows the audio and touchscreen capabilities of the EvoPrimer e Rec Wav Transforms your EvoPrimer to a dictaphone Drummer Transforms your EvoPrimer in a musical beatbox Shows the audio and touchscreen capabilities of the EvoPrimer Cubic 4 Last step of the tutorial that transforms your EvoPrimer to a bubble level system FontUser Application that shows the font capabilities of your EvoPrimer FsApp Application that uses the full screen area as display Scroll Application that shows the hardware scroll capability Explore a text with your finger as on a smartphone COMMTEST Tests the USB com port the joystick and the MicroSD card connector e EcholrDA IrDA echo application which makes it easy to connect your EvoPrimer to another IrDA appliance such as a cell phone or another EvoPrimer 4 3 Configuration menu Configuration and test applications have been pre installed to check your EvoPrimer s capabili
22. menu 5 6 Downloading new applications On the http www stm32circle com projects Circle web site you will find a database where the members can share their applications with the stm32circle community An application can include both the source files and the object files or just the object files An application is generally made of one object file but may occasionally have several of them The linking of the application in such a case can be done either using the circle mgr exe software available in the RIDE7 INSTALL DIR Win directory or within the Ride7 environment When an application is split into several object files these object files must be placed in a library in order to pass a unique filename as an argument to circle mgr exe RAISONANCE 20 EvoPrimer for STM32F103VE 5 Managing your CircleOS applications 5 7 Resetting your EvoPrimer 5 7 1 Hardware reset A hardware reset will restart your EvoPrimer restoring it to a clean state but will not remove its ROM contents 1 Remove any USB cable 2 Remove the plastic case protecting the target board 3 Change the switch to its open state this disconnects the internal battery then replace the switch as it was 4 Put the plastic case back in place 5 Restart your EvoPrimer by pressing its button 5 7 2 Software reset CircleOS This software reset erases all the Flash memory in your EvoPrimer and all applications The CircleOS is replaced This operation takes approxim
23. n the file Change the Application Name value from My App to HELLO 0 In the Application Handler function create a new string as follows const char msg Hello World 11 Use the DRAW DisplayString CircleOS service to display the msg string variable you just created DRAW DisplayString 5 20 msg sizeot msg X Y string length 12 Connect your EvoPrimer to your PC using the USB cable using the Prrimers debug USB port 13 From Ride7 go to Debug Start this programs your application to your EvoPrimer This may take about 15 seconds 14 Go to Debug Run 15 On your EvoPrimer select your application name on the main menu Your application is now on your EvoPrimer For further information about CircleOS application programming and available OS services please visit http www stm32circle comy p E me coe E m ue Bros 6 2 Libraries Some common services are offered to ease your development of CircleOS applications 1 The STM32 libraries written by ST provide access to the embedded peripherals such as timers ADC communication interfaces thermometer etc of the STM32 microcontroller 2 The low level CircleOS functions that provide an easy access to the EvoPrimer s on board peripherals 3D accelerometer LCD monitor button buzzer battery LEDs 3 The graphical functions that provide powerful high level functionality Menu management pointers linked to the 3D accelerometer character maps sou
24. nd The source files of these libraries can be found on e SIT website for the STM32 libraries includes other documentation about the STM32 library e On the http www stm32circle com web site for the CircleOS libraries registration required Library documentation is accessible from Ride7 RAISONANCE 22 EvoPrimer for STM32F103VE 6 Developing CircleOS applications 6 3 Debugging your application In order to debug your application 1 Goto Project Properties in Ride7 2 Inthe Configuration selection box select the Circle Debug configuration which is the default Ride7 takes care of all the settings required to switch between debug and release mode through the use of these configurations Note The standard STM32F EvoPrimer is limited to debugging in the first 64KB only A software key can be purchased on hitop www stm32circle com to allow debugging in the whole 512KB of memory 6 4 Sharing your application with the Circle community Once your application works properly you can share it with the other members through the htto www stm32circle com community 23 RAISONANCE 7 Conformity and recycling EvoPrimer for STM32F103VE 7 Conformity and recycling For more information on conformity and recycling please visit the Raisonance website WWW raisonance com ROHS Compliance Restriction of Hazardous Substances Raisonance products are certified to comply with the European Union RoHS Directive 2002 95 EC
25. nd NOC Un e EET T denied 24 EE 25 Ser EE m 26 TOEI TOI E M 27 3 RAISONANCE 1 Introduction EvoPrimer for STM32F103VE 1 Introduction The EvoPrimer for STM32F Performance Line is a fun cost effective evaluation and development package board based on Raisonance s versatile innovative Open4 platform and STM32F103VE target Note The ST product EvoPrimer for STM32F Performance Line ST order code STM3210EPRIMER is a derivative product of the Raisonance Open4 The same EvoPrimer target boards extension boards software tools and sample applications are used with both EvoPrimer and Open4 1 1 Purpose of this manual This manual provides an overview and installation procedure for your EvoPrimer Armed with the knowledge in this manual users can quickly understand the target microcontroller s features and create their own applications 1 2 Scope of this manual This manual is applicable to all versions of EvoPrimer for STM32F Performance Line It describes the EvoPrimer s basic use and its hardware and firmware features Further information can be found in LISSLVO2DL MEMS Inertial Sensor Data Sheet available from http www st com STM32F103 Performance AC Line see http www st com STM32F10x Flash programming manual see http www st com STM32F10x advanced ARM based 32 bit MCU reference manual see http www st com
26. re e ARM 32 bit Cortex M3 CPU 72MHz 90DMips with 1 25DMips MHz e 512KB Flash program memory 64KB SRAM e Embedded oscillators for high speed crystal RTC e SWD debug interface e Fast input output up to 80 I Os ADC DAC e Embedded communication peripherals USB 2 0 CAN USART SPI I2C LIN IrDA SDIO e Multiple timers watchdog PWM Systick timer 3 3 2 CAN The STM32F103VC target board includes one CAN port which is compliant with specifications 2 0A and B active with a bit rate up to 1 Mbit s Note By default the CAN transceiver is not soldered on the board 3 3 3 Audio codec The STM32F103VE target board includes and audio codec component Ref STW5094A which supports voice quality audio features of the base recording and playback 3 3 4 Mini USB connector The STM32F103VE target board includes a Mini USB connector which can be used for USB 2 0 implementation in demonstration and user applications 3 4 Base features 3 4 1 3D MEMS accelerometer The base is equipped with a MEMS inertial sensor LISSLVO2DL from STMicroelectronics which can be used to select commands in coordination with a graphic pointer When you start the EvoPrimer for the first time you will see a small ball moving according to the orientation of the EvoPrimer The information about the 3D position is provided by the MEMS 3 4 2 Power supply The EvoPrimer base features a 400mAh Li lon rechargeable battery equipped with a vol
27. rimer for STM32F103VE Install che Target Board use guide rails to install correctly After the opening screen is displayed press the push button to call the main menu Tilt the EvoPrimer backward forward or use the joystick to navigate in the menu use the push button to select a menu command Initial menu items include Configure parameters for the EvoPrimer including the pointer backlight for the This is an addictive game provided as an example Full source is available from Select an application to run The application that you choose will then appear in Display information saved on the SD card or allows to configure your EvoPrimer as a mass storage device and transfer files from to your PC from to the SD card Config LCD display and time Maze www stm32circle com Applic the main menu SD card About Shutdown Quit Quit the menu Display information about the CircleOS version and available memory Turn off the EvoPrimer To restart the EvoPrimer simply press the push button Note When you receive the EvoPrimer the MEMS based controls are calibrated to a zero position that matches a 30 angle from the horizontal correspond s to the position of a book when reading To practice controlling the EvoPrimer move the blue dot around the main screen It takes a little practice RAISONANCE 12 EvoPrimer for STM32F103VE 4 Getting started 4 2 2 Preinstalled applications The EvoPrimer includes preinstalled app
28. tage regulator and a battery charger When the USB connector is linked to a PC the host voltage supplied by the PC is used to recharge the battery When no USB host is connected the battery supplies the power for the EvoPrimer When the battery is fully charged the EvoPrimer can be used for about 6 hours The duration of the batteries depends on the activity Ss RAISONANCE 3 EvoPrimer hardware EvoPrimer for STM32F103VE 3 4 3 Extension connector The base has a 20 pin HE14 female right angle extension connector that you can access when removing the orange part of the case The mechanical description of the extension board is available in the resources section of the www stm32circle com web site The extension connector permits usage of the following pins Printed STM32 STM32 name Description name pin Connected to the output of the U6 regulator 3 1V This source could provide approximately 100mA the extension board GND op oam PB 6 CX I2CSCL Can be used either as a standard GPIO or considered as an alternate function 12C1_ SCL clock TIM4 CH1 USART1 TX if remapped SDA PB 7 CX I2CSDA Can be used either as a standard GPIO or considered as an alternate function J2C1 SDA data TIM4 CH2 USART1 RX if remapped MISO PB 4 SPI3 MISO Can be used either as a standard GPIO or considered as an alternate function SPI3 MISO 1283 Serial Data SPI1 MISO if remapped TIM3 CH1 if remapped Can
29. ties From the main menu of the EvoPrimer launch the Con ig command The following parameters can be set 1 3 4 5 Power CPU Freq Chooses the speed of your EvoPrimer Backlight Tunes the backlight intensity Note that the backlight is the main source of power consumption with the LCD monitor itself Reducing the backlight intensity allow to extend the duration when the EvoPrimer is powered by the battery Interface User input Selects the user input for commands menu accelerometer or joystick or accelerometer joystick or touchscreen Loudspeaker enables or not the loudspeaker If not the sounds are only sent to the jack headphones connector Menu Selects whether or not to display the menu with a large font Beep Selects whether or not to send a beep when the EvoPrimer is tapped twice TS Calibrate Launches a calibration procedure of the touchscreen Autorun The current application runs whenever your EvoPrimer is started In this mode there is no need to select the application in order to start it Time Sets your EvoPrimer time Note the RTC clock remains valid even if your EvoPrimer is shut off Test Performs a quick factory test of the EvoPrimer You can add more applications to your EvoPrimer by downloading them on the web site www stm32circle com projects Refer to the chapter 5 Managing your CircleOS applications 13 RAISONANCE 4 Getting started EvoPrimer for STM32F103VE 4 4 Comp
30. ub MOSISD MISO ata 4 channels 4L TE spizii2s2 l sckck MCK NSSANS as AF 3 compl channels i AK MOSI SD MISO m a d EC V qe SCKICK MCK NSS WS as AF anne a ba er Lf Anp eet o Dee 2 SCL SDA SMBAL as AF Aud lO C od ec M E M S Erg eig m LA zt SRAM 512 B x gt SCL SDA SMBAL as AF CO nfig u rati O n Sas i A E e T y ican devie RTS CK as AF ben E 2 0 FS USBDMI CANBX device U S B DAC OUT as AF 8 ADCA23 he e DAC OUT as AF common to the 3 ADs REF 8 ADC12 Na common d 3 to ADC1 amp ADC d 5 ADCS INson ADOS EC IF Touchscreen battery voltage Illustration 5 1 STM32F 103 peripherals RAISONANCE 18 EvoPrimer for STM32F103VE 5 Managing your CircleOS applications 5 4 Managing applications on your EvoPrimer The applications can be managed by the circle mgr exe utility which is in the directory RIDE7 INSTALL DIR Bin This utility can e List the currently loaded CircleOS applications e Add new CircleOS applications e Remove CircleOS applications e Check how much FLASH memory is available Refer to the http www stm32circle com web site for more information about this utility The following commands are available with the circle mgr exe utility Command Syntax Description List L List the loaded applications The following information will be output circle_mgr exe L Reading FAT table App0 Name Maze Addr 0x08006000 Size 8KB Appl Name Breakout
31. xtension board connected to the extension connector CircleOS Embedded OS running on the Primer development kits 25 RAISONANCE 9 Index 9 Index Alphabetical Index AA NEN ni RT 19 PUO 13 DGackloht 13 BOE 13 DBrezakout nennen nnns 13 O 24 CircleOS peripherals 18 CircleOS Gvetck 16 COMMTEST TA 13 ell el ne 24 Sepe M 24 sog e 19 S EE O NEED 13 OPU OPEO C 15 Gg V VPoo 13 Bee 24 LRN CN PENNE ERE 13 ECONO e 13 zi m SH 19 dvo 24 guid m 13 mio TR 13 GAO NGS eege 13 RAISONANCE EvoPrimer for STM32F103VE Ello m n ONM 24 BCEE 19 Loudepeaker nen 13 EE 13 OT EE 13 MP3 AY E 13 e 13 Raisonance TE TERRE 24 Se 13 218 p RM IEEE 24 Soro UE 13 SA E 13 EE eege ee 19 IMSS TOGO esit endum dentiototen ea dus tatem sac 14 vere eege 15 pH qq SIPRERHEREN 13 E M ERC 6 13 Dii TERR 16 TS CGalbrate cece ccceccecceccecceceececceseeaeaeaeaeaees 13 SEE MDW M 13 Ic M E u 19 Ee E ERNEUT 4 CH EE 24 96 EvoPrimer for STM32F103VE 10 History 10 History Date Modification 13 July 2010 Initial version
Download Pdf Manuals
Related Search
Related Contents
Wiley iPad Portable Genius Introduzione - e-Lite Samsung SV-DVD440 Manuel de l'utilisateur IC-7400 取扱説明書 取扱説明書 充電式 ペンドライバドリル DF010D Copyright © All rights reserved.
Failed to retrieve file