Debugging all the way to the cloud with IAR …...IAR Embedded Workbench IAR Embedded Workbench for...

18
Debugging all the way to the cloud with IAR Embedded Workbench Aaron Bauch, IAR Sr. FAE

Transcript of Debugging all the way to the cloud with IAR …...IAR Embedded Workbench IAR Embedded Workbench for...

Page 1: Debugging all the way to the cloud with IAR …...IAR Embedded Workbench IAR Embedded Workbench for Arm, AWS edition, provides an integration with the cloud solutions from Amazon Web

Debugging all the way to the cloudwith IAR Embedded Workbench

Aaron Bauch, IAR Sr. FAE

Page 2: Debugging all the way to the cloud with IAR …...IAR Embedded Workbench IAR Embedded Workbench for Arm, AWS edition, provides an integration with the cloud solutions from Amazon Web

Agenda

IoT Cloud application overview Debugging features in IAR Embedded Workbench IAR Embedded Workbench, AWS Edition Demo Summary

Page 3: Debugging all the way to the cloud with IAR …...IAR Embedded Workbench IAR Embedded Workbench for Arm, AWS edition, provides an integration with the cloud solutions from Amazon Web

More than an ordinary toolbox

Page 4: Debugging all the way to the cloud with IAR …...IAR Embedded Workbench IAR Embedded Workbench for Arm, AWS edition, provides an integration with the cloud solutions from Amazon Web

IAR Embedded Workbench for development and debugging

• Leading development toolchain– Industry leading compiler performance and quality– Debug features slash development time

o Timeline visualizationo Complex breakpoint supporto Macro features and Pluginso Profiling and code coverage toolso Etc. etc.

• Individual developer environment• Command-line tools for CI and custom build environments

Page 5: Debugging all the way to the cloud with IAR …...IAR Embedded Workbench IAR Embedded Workbench for Arm, AWS edition, provides an integration with the cloud solutions from Amazon Web

Adding IoT Cloud services • Adds a whole level of complexity

– Communications to/from cloud service– Encryption of messages and connection

for security– Shadow management for device

• Debugging could use additional help– Provide visibility

o Shadow stateso Communications to/from cloudo Monitor device resources

– RTOS visibility keyo RTOS’s used to manage different

functions such as comms, application, MQTT, etc

Page 6: Debugging all the way to the cloud with IAR …...IAR Embedded Workbench IAR Embedded Workbench for Arm, AWS edition, provides an integration with the cloud solutions from Amazon Web

Standard features a great start

• Debugger provides great visibility– Timeline for Interrupts, ITM

messages, Data logging– Register views of all peripherals,

including customer register groups– RTOS plugins for visibility of tasks,

semaphores, queues, and other RTOS objects

– Complex breakpoints• Multicore

– For systems with separate core for comms

– Partitioned systems

Page 7: Debugging all the way to the cloud with IAR …...IAR Embedded Workbench IAR Embedded Workbench for Arm, AWS edition, provides an integration with the cloud solutions from Amazon Web

Debugging using SWD/SWO

Interrupt logging

ITM events

Power logging

Data logging

Page 8: Debugging all the way to the cloud with IAR …...IAR Embedded Workbench IAR Embedded Workbench for Arm, AWS edition, provides an integration with the cloud solutions from Amazon Web

IAR Embedded Workbench AMP Support

Master (Cortex-A) Slave (Cortex-M4)

Start/stop core0/core1 Start/stop all cores

Page 9: Debugging all the way to the cloud with IAR …...IAR Embedded Workbench IAR Embedded Workbench for Arm, AWS edition, provides an integration with the cloud solutions from Amazon Web

Debugging all the way up to the cloudIntegration with Amazon Web Services is available in IAR Embedded Workbench

IAR Embedded Workbench for Arm, AWS edition, provides an integration with the cloud solutions from Amazon Web Services.

Thanks to this integration, you can inspect and control the cloud communication of your device directly in the world’s leading development toolchain, making development and debugging of IoT applications simplified and more efficient.

Page 10: Debugging all the way to the cloud with IAR …...IAR Embedded Workbench IAR Embedded Workbench for Arm, AWS edition, provides an integration with the cloud solutions from Amazon Web

IAR Embedded Workbench for Arm, AWS EditionIAR Dashboard for AWS

The IAR Dashboard for AWS combines data from the target being debugged with AWS Cloud data to aid in debugging an IoT design. Features included are:

• Display of the complete AWS Shadow state in the device and in the cloud, with differences highlighted

• Display and filtering of MQTT packets sent and received by the debugged device• Display and filtering of TCP/IP packets sent and received at the socket layer• Display of IP address, gateway and other network parameters• Display of subscribed AWS topics• RAM memory and CPU usage graphs• Ready-made FreeRTOS example projects for use with IAR Dashboard for AWS,

based on popular boards from major semiconductor companies

• FreeRTOS debugger awareness plugin

• C-STAT static analysis

• C-RUN runtime analysis

Page 11: Debugging all the way to the cloud with IAR …...IAR Embedded Workbench IAR Embedded Workbench for Arm, AWS edition, provides an integration with the cloud solutions from Amazon Web

IAR Dashboard for AWS• Available during debug to monitor and debug

complex connectivity between an FreeRTOSdevice and the AWS IoT Cloud

• Collects device data from a device runningFreeRTOS and broadcasts the data via a localgRPC server. The dashboard includes a MQTTclient.

• Prior to using it, you need to prepare theFreeRTOS project files you are going to debugand add FreeRTOS trace support.

Page 12: Debugging all the way to the cloud with IAR …...IAR Embedded Workbench IAR Embedded Workbench for Arm, AWS edition, provides an integration with the cloud solutions from Amazon Web

Starting the IAR Dashboard for AWS

Page 13: Debugging all the way to the cloud with IAR …...IAR Embedded Workbench IAR Embedded Workbench for Arm, AWS edition, provides an integration with the cloud solutions from Amazon Web

IAR Dashboard for AWS

Additional Displays

Page 14: Debugging all the way to the cloud with IAR …...IAR Embedded Workbench IAR Embedded Workbench for Arm, AWS edition, provides an integration with the cloud solutions from Amazon Web

And more…Advanced Debugging

Interrupt logging

ITM events

Power logging

Data logging

Page 15: Debugging all the way to the cloud with IAR …...IAR Embedded Workbench IAR Embedded Workbench for Arm, AWS edition, provides an integration with the cloud solutions from Amazon Web

Integrated code analysisC-STAT: Static code analysis• Check compliance with specific standards like MISRA C:2004,

MISRA C++:2008 and MISRA C:2012• Checks compliance with the coding standard CERT C for

secure coding• Detect defects, bugs, and security vulnerabilities as defined by

the Common Weakness Enumeration (CWE)• Extensive and detailed documentation

C-RUN: runtime analysis• Bounds checking, arithmetic, heap and memory leaks checking• Code correlation and graphical feedback in editor• Very efficient instrumentation of compiled code

Page 16: Debugging all the way to the cloud with IAR …...IAR Embedded Workbench IAR Embedded Workbench for Arm, AWS edition, provides an integration with the cloud solutions from Amazon Web

Out-of-box examples

Ready made examples for various boards*

*more boards will be added!

Request for otherboard or example?Ask our FAEs!

Page 17: Debugging all the way to the cloud with IAR …...IAR Embedded Workbench IAR Embedded Workbench for Arm, AWS edition, provides an integration with the cloud solutions from Amazon Web

Demo

Page 18: Debugging all the way to the cloud with IAR …...IAR Embedded Workbench IAR Embedded Workbench for Arm, AWS edition, provides an integration with the cloud solutions from Amazon Web

Summary• AWS IoT and IAR Embedded Workbench =

Success!• The IAR Dashboard for AWS combines

data from the target being debugged with AWS Cloud data to aid in debugging an IoTdesign.

• C-SPY RTOS Awareness plugin gives developers a high level of control and visibility over a cloud-based application.