View
84
Download
0
Category
Preview:
Citation preview
Debugging all the way to the cloudwith IAR Embedded Workbench
Aaron Bauch, IAR Sr. FAE
Agenda
IoT Cloud application overview Debugging features in IAR Embedded Workbench IAR Embedded Workbench, AWS Edition Demo Summary
More than an ordinary toolbox
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
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
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
Debugging using SWD/SWO
Interrupt logging
ITM events
Power logging
Data logging
IAR Embedded Workbench AMP Support
Master (Cortex-A) Slave (Cortex-M4)
Start/stop core0/core1 Start/stop all cores
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.
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
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.
Starting the IAR Dashboard for AWS
IAR Dashboard for AWS
Additional Displays
And more…Advanced Debugging
Interrupt logging
ITM events
Power logging
Data logging
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
Out-of-box examples
Ready made examples for various boards*
*more boards will be added!
Request for otherboard or example?Ask our FAEs!
Demo
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.
Recommended