EMB425 Using Advanced Platform Builder Debugger Features James Stulz Program Manager Windows CE Core Tools Microsoft Corporation.

Slides:



Advertisements
Similar presentations
Designing InfoPath Forms: The Dos and Donts Deploying InfoPath Forms: Making the right choice Adding custom business logicin case the built-in stuff isnt.
Advertisements

Debugging Windows ® CE Applications And Systems David Streams Lead Program Manager Windows CE Tools Microsoft Corporation
This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS DOCUMENT.
EMB306 Building Windows CE Devices With DX Support John L. Marcantonio Program Manager Windows CE Multimedia Microsoft Corporation.
EMB304 Building Trustworthy Windows CE Embedded Devices and Applications Ganapathy Raman Program Manager Windows CE Security Team Microsoft Corporation.
Windows Embedded “Quebec”: Developing For Devices
64bit Development Overview March 28 Microsoft. Objectives Learn about the current 64-bit platforms from a hardware, software and tools perspective Review.
Amit Chopra APP209 Introducing “Orcas” Huh ? What’s “Orcas”?
1 Chapter Overview Introduction to Windows XP Professional Printing Setting Up Network Printers Connecting to Network Printers Configuring Network Printers.
UFCFX5-15-3Mobile Device Development Android Development Environments and Windows.
EMB321 How To Write A Windows CE SDIO Client
VMware vCenter Server Module 4.
Rob Hwacinski Sr. Program Manager Lead Microsoft Corporation WEM206 Ashwin Kulkarni Sr. Product Manager Microsoft Corporation.
Winter Consolidated Server Deployment Guide for Hosted Messaging and Collaboration version 3.5 Philippe Maurent Principal Consultant Microsoft.
EMB313 Increasing Developer Productivity With Windows CE 5.0 Matt Young Windows Mobile Joint Development Program (JDP) Microsoft.
CLI339 Building Bluetooth Applications On The Windows CE 5.0 And Windows Mobile Platforms Anil Dhawan Program Manager Windows Mobile.
What is Windows Embedded all about? Don Kerr Embedded Strategy Manager Microsoft Australia Andrew McGrath PrincipalBluBits SOL215.
EMB313 Increasing Developer Productivity With Windows CE 5.0
EMB318 Improve Product Quality Using Windows CE Error Reporting (Watson) James Stulz Program Manager Windows CE Core Tools Microsoft Corporation.
EMB315 Non-Volatile Object Store And Hive Based Registry Design For Windows CE Rick Austin Principle Engineer Intermec Corporation.
EMB426 Windows CE Memory Architecture Steve Maillet CEO/Chief Software Architect EmbeddedFusion.
Using the WDK for Windows Logo and Signature Testing Craig Rowland Program Manager Windows Driver Kits Microsoft Corporation.
CLI324 Tablet PC Platform Advanced Topics Software Design Engineer/Test Lead
Windows CE 시스템 개발 개요. 임베디드시스템소프트웨어 -Windows CE 2 Overview  Selecting a Windows Embedded Operating System  The Windows CE Platform Development Cycle.
BIZ208 Windows CE 5.0 Bringing to Market a Broad Range of Devices Dan Javnozon Product Manager MEDG Microsoft Corporation Business Track Presentation.
EMB423 Creating A Trusted Environment For Windows CE 5.0 Nat Frampton President Real Time Development
Introduction to Embedded Software Development School of software Engineering Introduction to Windows CE.
Overview of System Development. Overview Selecting a Windows Embedded Operating System The Windows CE Platform Development Cycle The Application Development.
University of Management & Technology 1 Operating Systems & Utility Programs.
EMB320 Windows CE 5.0 Image Configuration, Boot Loaders, And Security
The Team About Me Microsoft MVP Intel Blogger TechEd Israel, TechEd Europe HPC NT, CE, DDK, C#, Asp.Net, DirectShow, 8051, …
DEV325 Deploying Visual Studio.NET Applications Billy Hollis Author / Consultant.
DEV-05: Ratcheting up your OpenEdge™ Development Productivity Sunil S Belgaonkar Principal Software Engineer.
EMB422 Advanced Embedded Visual C++ Application Development Control - View Nat Frampton President Real Time Development
Module 6: Debugging a Windows CE Image.  Overview Debug Zones IDE Debug Setup IDE Debug Commands Platform Builder Integrated Kernel Debugger Other Debugging.
EMB424 Implementing Fault Tolerant Systems in Windows CE 5.0 Nat Frampton President Real Time Development
Name Microsoft Student Partner Overview of the Visual Studio 2005 Express Products.
Windows CE 시스템 개발 개요. 모바일운영체제 - Windows CE 2 Overview  Selecting a Windows Embedded Operating System  The Windows CE Platform Development Cycle  The.
New Managed Messaging, State, And Notification APIs In Windows Mobile 2005 Gaurav Khanna Developer Evangelist Microsoft India.
EMB427 Writing Real-Time Applications On Windows CE 5.0 Nat Frampton President Real Time Development Corporation
CLI205 Basic Considerations For Mobile PC Application Development Tablet and Mobile PC Technical Evangelist Microsoft Corporation.
CLI325 In Depth – Ink Data Management Mark Hopkins Programmer Writer Tablet and Mobile PC Group Microsoft Corporation.
CSC190 Introduction to Computing Operating Systems and Utility Programs.
SVR201 SQL Server 2005 Mobile Edition: The Evolution Of SQL Server CE Scott Smith Program Manager Visual Studio for Devices Microsoft Corporation.
CLI210 Introduction To Managed Development For Devices With Visual Studio 2005 Scott D. Smith Program Manager Visual Studio for Devices Microsoft Corporation.
Service Pack 2 System Center Configuration Manager 2007.
Advanced Memory Management Douglas Boling President Boling Consulting Inc.
Windows CE Services Douglas Boling President Boling Consulting Inc.
Using Advanced Platform Builder Debugger Features Chenghui Lian Microsoft China Technology Center.
Building Complete Web Application Using ASP.NET 3.5 & Visual Studio 2008 Omar Khan Group Program Manager Visual Studio.
Mobile Device Development
Top 10 Entity Framework Features Every Developer Should Know
6/11/2018 8:14 AM THR2175 Building and deploying existing ASP.NET applications using VSTS and Docker on Windows Marcel de Vries CTO, Xpirit © Microsoft.
Developing Drivers in Visual Studio
Microsoft Connect /23/2018 5:27 PM
Building a great Metro style device app for your printer
11/19/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
New Developer Tools in Windows Embedded Standard 2011
Team Foundation Server 2010 for Everyone
1/14/2019 3:57 AM © 2004 Microsoft Corporation. All rights reserved.
Tech·Ed North America /18/2019 4:15 PM
What is Visual Studio Code?
IE11’s Developer Tools, F12, just got nicer (again)
Module 6: Debugging a Windows CE Image
Delivering great hardware solutions for Windows
5/25/2019 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
Overview of System Development for Windows CE.NET
Mark Quirk Head of Technology Developer & Platform Group
Advanced app and driver debugging
Presentation transcript:

EMB425 Using Advanced Platform Builder Debugger Features James Stulz Program Manager Windows CE Core Tools Microsoft Corporation

M anagement T ools C ommunications & M essaging Device Update Agent Software Update Services Live Communications Server Exchange Server Internet Security and Acceleration Server Speech Server Image Update L ocation S ervices M ultimedia MapPoint DirectX Windows Media Visual Studio 2005 D evelopment T ools MFC 8.0, ATL 8.0 Win32 N ative M anaged S erver S ide L ightweight R elational SQL Server 2005 Express EditionEDB D ata P rogramming M odel D evice B uilding T ools D evice B uilding T ools H ardware/ D rivers Windows XP DDK Windows Embedded Studio Platform Builder OEM/IHV Supplied BSP (ARM, SH4, MIPS) OEM Hardware and Standard Drivers Standard PC Hardware and Drivers SQL Server 2005SQL Server 2005 Mobile Edition ASP.NET Mobile ControlsASP.NET.NET Compact Framework.NET Framework Microsoft Operations Manager Systems Management Server

Agenda Introduction to the PB Kernel Debugger Build Requirements Debugger Settings Advanced Features Demo

PB Kernel Debugger VC++ version 6 roots Familiar UI Rich in features System Debugger Exceptions from any process Stops interrupts while in break state Uses KITL connections HW Assist thru 3rd party support Debugging Applications Slightly different from eVC

Build Requirements Retail builds This is the default build Debugger support is not on Easy to add using PB Enable Kernel Debugger (IMGNODEBUGGER= ) Enable KITL connectivity (IMGNOKITL=) Debugging optimized code Beware of code movement View assembly Set extra safety breakpoints Some variables optimized away

Build Requirements Debug builds Not the default but easy to select Debugger support is on Full debug symbols support Disadvantages Not the code that ships Some bugs only happen in retail builds

Build Requirements HW assist debugging Default (without IMGHDSTUB=1) No OS Awareness Load notifications OS events/exceptions No processes/threads data Retail builds Add IMGHDSTUB=1 Debug builds Do not enable Kernel Debugger (IMGNODEBUGGER=1) Add IMGHDSTUB=1

Debugger Settings Selecting The Debugger Under Target\Connectivity Options Default for Debug build is SW Assist No options for HW Assist until eXDI driver is installed

Debugger Settings Just in time debugging Enable Passive KITL Requires a code change in the OAL Run device as normal Wait for a unhandled 2nd chance exception on device Unfortunately, there is no device UI Attach the debugger

Debugger Settings Post build debugging Image was built with IMGNODEBUGGER= Requires KITL in the Image Load the debugger support Loaddbg.exe Attach the debugger

Debugger Settings Verbosity Dialogs and message boxes have the option “Don’t show me again” To get them back settings under Tools\options\Verbosity

Debugger Settings Detaching the debugger By default the device will still catch debug events If you want it to continue as a device without debug support Check the option Disable kdstub on Stop Debugging in Tools\Options\Debug

Features Breakpoints in ROM Only works on code in Virtual memory User code Not Kernel Limited to 10 VM pages simultaneously Relies on the correct description of ROM addresses from the OAL

Features Breakpoint instances New Breakpoint List window Dockable and not modal Tree control breakpoint lists Generic top level description Specific descriptions for instances All instances are listed Before this feature the debugger got confused by multiple instances

Features Deferred breakpoints Not red (Some people see pink, others see purple) Colors are configurable Waits for a module load When it finds the symbol, it turns red

Features Set breakpoints while running Set as deferred Instantiated at the next stopping event If it stays deferred, it will not get hit

Features Context specifier Stopped in a context where a variable or function is Not defined {function,source,module}symbol_nameE.g.,{,,coredll.dll}LocalAlloc

Features Release directory modules Instruct the loader to load from the FlatRelDir instead of from the image Advantage Fast debugging turnaround Remember to remove them when you are done

Features Source path mapping Solves the build lab problem Exposing the mapping to the user Search order from top tp bottom Remaps breakpoints on changes

Features HW assist debugging Doesn’t require a KITL enabled image Debug before kd loads Debug all code on the device (Bootloaders, ISRs, etc.) Use HW resources (Registers, BPs, etc.) Non intrusive Full debugging support requires a hd component on the device JTAG pins must be available Requires specific/compatible probe/eXDI support for the architecture

HW Assist Vendors Architecture Vendor Vendor ARM4I ARM – MultiICE ARM – MultiICE EPITools – Majic EPITools – Majic Aiji – A900 Aiji – A900 XScale Macgregor – Raven (Thru Intel) Macgregor – Raven (Thru Intel) MIPS EPITools - Majic EPITools - Majic SH3, SH4 Hitachi – E10a Hitachi – E10a If you have a favorite Probe vendor that does not provide an eXDI driver have them contact me

Debugger James Stulz Program Manager Windows CE Core Tools

While at MEDC 2005… Fill out an evaluation for this session Randomly selected instant WIN prizes! Randomly selected instant WIN prizes! Use real technology in a lab Instructor led Reef E/F & Breakers L Self-paced Reef B/C Self-paced Reef B/C Visit the Microsoft Product Pavilion in the Exhibit Hall Shorelines B in the Exhibit Hall Shorelines B

After The Conference… Develop Build InstallBuildJoin Install Enter Enter Join Full-featured trial versions of Windows CE and/or Windows XP Embedded Cool stuff & tell us about it: msdn.microsoft.com/embedded/community msdn.microsoft.com/embedded/community Windows Embedded Partner Program: Windows Mobile 5.0 Eval Kit including Visual Studio 2005 Beta 2 Mobile2Market Contest and win up to $25000: mobile2marketcontest.com mobile2marketcontest.com Microsoft Solutions Partner Program: partner.microsoft.com partner.microsoft.com

Tools & Resources msdn.microsoft.com/ embedded microsoft.public. windowsxp.embedded windowsce.platbuilder windowsce.platbuilder windowsce.embedded.vc windowsce.embedded.vc blogs.msdn.com/ mikehall Windows CE 5.0 Eval Kit Windows XP Embedded Eval Kit msdn.microsoft.com/ mobility microsoft.public. pocketpc.developer smartphone.developer dotnet.framework.compactframework blogs.msdn.com/ windowsmobile vsdteam netcfteam Windows Mobile 5.0 Eval Kit Websites Newsgroups Blogs Tools Build Develop

© 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.