Presentation is loading. Please wait.

Presentation is loading. Please wait.

COMPUTER SYSTEM LABORATORY Lab10 - Sensor II. Lab 10 Experimental Goal Learn how to write programs on the PTK development board (STM32F207). 2013/11/19/

Similar presentations


Presentation on theme: "COMPUTER SYSTEM LABORATORY Lab10 - Sensor II. Lab 10 Experimental Goal Learn how to write programs on the PTK development board (STM32F207). 2013/11/19/"— Presentation transcript:

1 COMPUTER SYSTEM LABORATORY Lab10 - Sensor II

2 Lab 10 Experimental Goal Learn how to write programs on the PTK development board (STM32F207). 2013/11/19/ 102 Temperature Sensor LCD LED lamps Light Sensor Key buttons 7 segment LED Joystick

3 Lab 10 Environment Host System Windows XP Build System VirtualBox + Ubuntu 8.04 Target System PTK development board (STM32F207) Software Documentation & examples IAR Embedded Workbench You can download all software from RSWiki CSL Course SoftwareRSWiki CSL Course Software 2013/11/19/ 103

4 Lab 10 Introduction to PTK Development Board 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. 2013/11/19/ 104

5 Lab 10 Memory Mapping 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. 2013/11/19/ 105

6 Lab 10 Hardware Connection 2013/11/19/ 106 RS-232 (COM Port) JTAG Debugger DC Power

7 Lab 10 IAR Embedded Workbench It is a commercial IDE for ARM-based SoCs. Please use IAR Embedded Workbench for ARM 6.60, instead of 6.40. 2013/11/19/ 107

8 Lab 10 Building and Running (1/2) Step 1: download the examples PTK_Examples.zip on Windows XP.PTK_Examples.zip Step 2: download the Jlink driver, and install it.Jlink driver Step 3: open the serial console, i.e., putty. Please set baud rate to 115200bps. Step 4: open the following workspace in IAR Embedded Workbench IDE. PTK_Examples\ePBB\Applications\Projects\PTK-STM32F207\EWARM- V6\OS_None\base_uart\demo.eww 2013/11/19/ 108

9 Lab 10 Building and Running (2/2) Step 5: compile the project by clicking the button “Make”. Step 6: download the program to the target by clicking the button “Download and Debug”. Step 7: press the key “F5” to continue the execution. You will see the message “Hello World!!!” on the console. 2013/11/19/ 109

10 Lab 10 Lab Requirement 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. Hint The documentation of these examples can be found at PTK_Examples/ePBB/Documentations. You might add some driver sources into your project file. Please send your report to both TAs. csiedatou@gmail.com, meenchen79@gmail.com csiedatou@gmail.commeenchen79@gmail.com Please use this title format: [CSL] G# Lab# Ver# E.g., [CSL] G13 Lab9 Ver1 2013/11/19/ 1010


Download ppt "COMPUTER SYSTEM LABORATORY Lab10 - Sensor II. Lab 10 Experimental Goal Learn how to write programs on the PTK development board (STM32F207). 2013/11/19/"

Similar presentations


Ads by Google