Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lab 1 Department of Computer Science and Information Engineering National Taiwan University Lab1 - Sensor 2014/9/23/ 13 1.

Similar presentations


Presentation on theme: "Lab 1 Department of Computer Science and Information Engineering National Taiwan University Lab1 - Sensor 2014/9/23/ 13 1."— Presentation transcript:

1 Lab 1 Department of Computer Science and Information Engineering National Taiwan University Lab1 - Sensor 2014/9/23/ 13 1

2 Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Learn how to write programs on the PTK development board (STM32F207). 2014/9/23/ 13 2 Temperature Sensor LCD LED lamps Light Sensor Key buttons 7 segment LED Joystick

3 Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Host System  Windows XP  Build System  IAR Embedded Workbench  Target System  PTK development board (STM32F207)  Software  PTK Examples  Jlink Driver  Putty  You can find all software on RSWiki CSL Course Software.RSWiki CSL Course Software 2014/9/23/ 13 3

4 Lab 1 Department of Computer Science and Information Engineering National Taiwan University 2014/9/23/ 13 4 STM32F207 DC power supply JlinkRS232 null cable Ethernet cablePTK-RFID-EWTJ680Hart Rate Monitor modules

5 Lab 1 Department of Computer Science and Information Engineering National Taiwan University 2014/9/23/ 13 5 RS-232 (COM Port) Jlink Debugger DC Power

6 Lab 1 Department of Computer Science and Information Engineering National Taiwan University  STM32F207 is a SoC consisting of a Cortex-M3 Core, built-in flash storage, and many other peripherals.  The core can run up to 120MHz.  The on-chip memory includes a flash of 256KB and a SRAM of 128KB.  Cortex-M3 processors are a family of 32-bit ARM-based processors for highly deterministic real-time applications.  It implements the ARMv7-M architecture.  Nested Vectored Interrupt Controller (NVIC), Memory Protection Unit (MPU), …  It has 3-stage pipeline supporting Thumb/Thumb-2 ISA. 2014/9/23/ 13 6

7 Lab 1 Department of Computer Science and Information Engineering National Taiwan University  The address space of STM32F207 is split into eight 512MB blocks.  Block 0 maps the flash memory.  Block 1 maps the main memory.  Block 2 maps MMIO for peripherals.  Block 3/4 maps external devices using static memory interface.  Block 5 maps control registers of the flexible static memory controller (FSMC).  Block 7 maps internal registers of the processor core. 2014/9/23/ 13 7

8 Lab 1 Department of Computer Science and Information Engineering National Taiwan University  It is a commercial IDE for ARM-based SoCs.  Please use IAR Embedded Workbench for ARM 6.60, instead of 6.40. 2014/9/23/ 13 8

9 Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Step 1: download putty from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html or course website (putty). http://www.chiark.greenend.org.uk/~sgtatham/putty/download.htmlputty  Step 2: putty can be executed without installation. 2014/9/23/ 13 9

10 Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Step 1: download and extract the examples PTK_Examples.zip on Windows XP.PTK_Examples.zip  Step 2: open the serial console, i.e., putty.  Please set the speed (baud rate) to 115200bps.  Step 3: open the following workspace in IAR Embedded Workbench IDE.  PTK_Examples\ePBB\Applications\Projects\PTK-STM32F207\EWARM- V6\OS_None\base_uart\demo.eww  Tips:  If the system cannot link to STM32F207, please download the Jlink driver, and install it.Jlink driver  You can use other workspaces in OS_None examples, such as base_7seg, base_button, base_buzzer, base_light, base_tempature, etc. 2014/9/23/ 13 10

11 Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Step 4: compile the project by clicking the button “Make”.  Step 5: download the program to the target by clicking the button “Download and Debug”.  Step 6: click the button “Go” or press the key “F5” to continue the execution.  You will see the message “Hello World!!!” on the serial console. 2014/9/23/ 13 11

12 Lab 1 Department of Computer Science and Information Engineering National Taiwan University  You can add library sources by right-clicking on the workspace and clicking “Add Files…”. 2014/9/23/ 13 12

13 Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Show the current temperature and luminous flux on the UART console.  See …\OS_None\base_temperature\demo.eww and …\OS_None\base_light\demo.eww as a reference.  The documentation of these examples can be found at PTK_Examples/ePBB/Documentations/.  Please hand in your lab report to the FTP.  Server: 140.112.90.174  Username: csl2014  Password: csl2014HomeWork  Directory: lab1  Please use pdf format with specific filename: “G# Ver#.pdf”, where G# is your group id and Ver# is revision version number.  E.g., G1 Ver1.pdf 2014/9/23/ 13 13


Download ppt "Lab 1 Department of Computer Science and Information Engineering National Taiwan University Lab1 - Sensor 2014/9/23/ 13 1."

Similar presentations


Ads by Google