Presentation is loading. Please wait.

Presentation is loading. Please wait.

Implementation of Embedded OS

Similar presentations


Presentation on theme: "Implementation of Embedded OS"— Presentation transcript:

1 Implementation of Embedded OS
Lab6 - Sensor / 12

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

3 Environment Host System Build System Target System Software Windows XP
IAR Embedded Workbench Target System PTK development board (STM32F207) Software PTK Examples Jlink Driver Putty You can find all software HERE. / 12

4 Hardware Checklist (STM32F207)
DC power supply Jlink RS232 null cable Ethernet cable PTK-RFID-EWTJ680 Hart Rate Monitor modules / 12

5 Hardware Connection (STM32F207)
RS-232 (COM Port) Jlink Debugger DC Power *STM32F207 uses RS-232 to DIRECTLY connect to host system. / 12

6 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. / 12

7 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. / 12

8 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. / 12

9 Building and Running (1/2)
Step 1: download and extract the examples “PTK_Examples.zip” on Windows XP. Step 2: open the serial console, i.e., putty. Please set the speed (baud rate) to bps. 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. You can use other workspaces in OS_None examples, such as base_7seg, base_button, base_buzzer, base_light, base_tempature, etc. / 12

10 Building and Running (2/2)
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. / 12

11 Add Libraries You can add library sources by right-clicking on the workspace and clicking “Add Files…”. / 12

12 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. The documentation of these examples can be found at PTK_Examples/ePBB/Documentations/. / 12


Download ppt "Implementation of Embedded OS"

Similar presentations


Ads by Google