422L:Introduction to the.NET Micro Framework Julie Trygstad Vice President and Principal Engineer...

Preview:

Citation preview

422L: Introduction to the .NET Micro Framework

Julie Trygstad

Vice President and Principal Engineer

Version: 1.1

TrygTech

13 October 2010

Julie Trygstad

VP of Engineering and Principal Engineer

BSc Computer Science, University of Durham, UK

CompTIA Certified Technical Trainer Over 15 years of embedded software

engineering experience

TrygTechHigh Performance Designs

Fast Time-To-Market

Low Development Costs

2

Renesas Technology and Solution Portfolio

Microcontrollers& Microprocessors

#1 Market shareworldwide *

Analog andPower Devices#1 Market share

in low-voltageMOSFET**

Solutionsfor

Innovation

Solutionsfor

InnovationASIC, ASSP& Memory

Advanced and proven technologies

* MCU: 31% revenue basis from Gartner "Semiconductor Applications Worldwide Annual Market Share: Database" 25 March 2010

** Power MOSFET: 17.1% on unit basis from Marketing Eye 2009 (17.1% on unit basis).

Renesas Technology and Solution Portfolio

Microcontrollers& Microprocessors

#1 Market shareworldwide *

Analog andPower Devices#1 Market share

in low-voltageMOSFET**

ASIC, ASSP& Memory

Advanced and proven technologies

* MCU: 31% revenue basis from Gartner "Semiconductor Applications Worldwide Annual Market Share: Database" 25 March 2010

** Power MOSFET: 17.1% on unit basis from Marketing Eye 2009 (17.1% on unit basis).

Solutionsfor

Innovation

Solutionsfor

Innovation

.NET Micro Framework

5

VAVE50 Universal Remote Control

Controls up to 24 A/V devicesLearningLarge library of codesMacrosFavorite ChannelsIconic

6

7

Innovation

Use intelligence from the smart grid and home sensors to:• Take advantage of “time-of-use” pricing• Lower overall energy demand• Integrate green energy sources

8

Agenda

Lab

Setup

Console Application

User Interface Controls

Porting Kit

Adding Touch

DPWS

Q&A

9

.NET Micro Framework

Embedded applications using Visual Studio and C#

Large pool of existing .NET developers Rapid Prototyping

.NET Micro Framework

10

Architecture

11

User CodeSystem Libraries

TinyCLR

Architecture

12

User CodeApp1 App 2 App 3

System LibrariesWPF ……

TinyCLRPAL

HAL

CLR

13

Tools and Development Environment

Visual Studio 2010 .NETMF SDK The .NETMF Porting Kit HEW Tools The .NETMF Cryptographic Libraries The .NETMF TCP/IP and SSL Libraries

14

Trying .NET MF is as easy as….

15

Visual Studio 2010

16

Renesas

SH7264 Ethernet VGA Touch screen

17

18

Lab Time!

Keep your dice turned to the section of the lab you are on. (Instructionsare provided in the lab handout)

Please refer to the Lab Handout and let’s get started!

19

Checking Progress

We are using the die to keep track of where everyone is in the lab. Make sure to update it as you change sections.

When done with the lab, your die will have the 6 pointing up as shown here.

20

Lab #1: Your First Application

Connect HardwareCreate Console ApplicationHello World!

Use Visual Studio to set breakpoints

21

Debugger

22

Lab #2: Debugger

Set breakpointsView debugging tools

Using the CLR

Numeric Types Class Types Value Types Arrays Delegates Events References Weak References

23

24

Lab #3: Exploring the class libraries

Use the class libraries to query system

Project References

Event Handling

UIElement virtual methods:ButtonsTouchFocus

NativeEventHandler

25

26

Lab #4: Event Handling

User input and events

User Interface

WPF Input Presentation Presentation.Controls Presentation.Media Presentation.Shapes

27

User Interface Controls

StackPanelCanvasBrushesBordersShapesText

28

29

Lab #5: User Interface Controls

Revisit Hello World Add UI elements

Porting Kit

TinyBooterPortBooterNativeSampleTinyCLR

30

MSBuild

<Assemblyname>.PE<SPOClient>\Solutions\

SH7264_RSK.settingsDotnetmf.proj<AssemblyName>.FeatureProj

31

HEW Tools

High-performance Embedded Workshop

GUI-based development environment

E10A-USB Emulator support

32

33

Lab #6: Porting Kit – building and deploying the TinyCLR

Build image with porting kit Adding/Removing

components in makefile Using HEW to download and

flash

34

Lab #7: TinyCLR – adding components to the TinyCLR

Add Touch assemblies

TinyBooter

Update strategiesMaintenanceDevelopment

35

36

Lab #8: Adding Touch to Applications

Revisit Hello World Add touch support

DPWS

Discovery versus Probing Message Exchanges SOAP Event Sources and Event Sinks Services Clients

37

Message Exchanges

38

39

Lab #9: Creating your own class libraries

Small class library utility

40

Lab #10: DPWS: Hello World Client

41

Lab #11: Simple Service

42

Lab #12: Putting It All Together

Further Reading

Expert .NET Micro Framework, Jens KühnerISBN: 1430223870

Embedded Programming with the Microsoft .NET Micro Framework, Donald ThompsonISBN: 0735623651

43

Websites

www.netmf.comhttp://www.microsoft.com/do

wnloads/en/default.aspx

http://renesasrulz.com

http://www.trygtech.com

44

45

Innovation

Use intelligence from the smart grid and home sensors to:• Take advantage of “time-of-use” pricing• Lower overall energy demand• Integrate green energy sources

Thank You

Recommended