Schlagwort: Portenta Debugger

  • Enhance your Arduino development with fast and easy debugging from Segger

    Enhance your Arduino development with fast and easy debugging from Segger

    Reading Time: 3 minutes

    Enhance your Arduino development with fast and easy debugging from Segger

    Arduino TeamAugust 12th, 2021

    Arduino has partnered with Segger to further support developers in creating their own embedded systems, implementing compatibility of Segger debugging solutions with Portenta boards. 

    Debuggers are the scalpel that allows a developer to dissect any application code running on embedded hardware. This versatile tool helps the programmer to halt programs at specific points, inspect values stored in memory units, modify CPU registers and enter test data to narrow down on buggy pieces of code. This tool comes in handy when you want to locate malfunctioning code and fix faulty program execution.

    J-Link debug probes are the most popular choice for optimizing the debugging and flash programming experience. Among the key benefits are:

    • Record-breaking flashloaders, up to 3MB/s RAM download speed.
    • Unlimited Flash Breakpoints feature allows the user to set an unlimited number of breakpoints when debugging in flash memory.
    • Wide range of CPUs and architectures supported; in fact, everything from single 8051 to mass market Cortex-M to high-end cores like Cortex-A (32- & 64-bit).
    • Direct interface with SPI flashes, without the need of a CPU between J-Link and the SPI flash.
    • Supported by major IDEs.

    In the meantime, we’re working to make the Arduino IDE 2.0 compatible with Segger debugger solutions.

    To quickly get started, check out our new tutorials on the Portenta Breakout and MKR boards. You’ll learn how to debug your Arduino sketch by connecting Portenta Breakout to the Segger J-link device and using the Ozone debugger and performance analyzer.

    Ozone is Segger’s full-featured graphical debugger for embedded systems. Thanks to features such as trace, code profiling and code coverage analysis, it’s also an extremely powerful performance analyzer. Ozone supports the debugging of any embedded application on C/C++ source and assembly level. It can load applications built with any toolchain/IDE and even debug the target’s resident application without any source. Ozone includes all well-known debug controls and information windows, while making use of the best performance of J-Link debug probes. The user interface is highly intuitive, yet fully configurable. Each window can be moved, re-sized and docked to fit every developer’s needs.

    There are four different J-Link models already available on the Arduino Store:

    • J-LINK BASE COMPACT: USB powered JTAG debug probe supports a large number of CPU cores. Based on a 32-bit RISC CPU, it can communicate at high speed with supported target CPUs.
    • J-LINK PLUS COMPACT: With this compact version of the J-Link PLUS, users have an unlimited number of flash breakpoints. Mounts securely and unobtrusively into development and end user equipment
    • J-LINK EDU: Reserved for educational purposes, the J-LINK EDU offers the same functionalities as the J-Link BASE. It’s been designed to allow students, educational facilities and hobbyists access to top of the line debug probe technology.
    • J-LINK EDU MINI: The smallest J-Link debugger, intended for non-commercial use.

    To connect the Portenta boards with J-Link debuggers, there are two adapters available: Segger’s 50-Mil 10-Pin Patch Adapter and J-Link 19-pin Cortex-M Adapter. The 50-Mil 10-Pin Patch Adapter converts the standard 20 pin 0.1″ connector to the standard 10-pin 0.05″ Cortex-M connector. This allows custom connections/wiring between the 20-pin and 10-pin side.

    The 19-Pin Cortex-M Adapter allows JTAG, SWD, and SWO connections between J-Link and Cortex-M based target hardware systems. It adapts from the 20-pin 0.1” JTAG connector to a 19-pin 0.05” Samtec FTSH connector as defined by Arm.

    For more information and tech specs, please check out the Segger items in the store.

    Website: LINK

  • FREE advanced debugger for Portenta H7

    FREE advanced debugger for Portenta H7

    Reading Time: 3 minutes

    We are happy to announce a new partnership with Lauterbach to provide all Portenta H7 customers with the TRACE32 debugger for free.

    Lauterbach’s TRACE32 debugger has been at the forefront of debug technology for more than four decades, and it is this wealth of experience and expertise that Lauterbach will draw on for the Arduino Portenta.

    How to get your debugger

    Each Portenta H7 comes with a unique serial number which can be displayed in the Arduino IDE or TRACE32. This serial number can be used to obtain a free license  via the Lauterbach registration page – once you’ve submitted your details you will receive an email with your license to unlock the full version of the TRACE32 debugger. 

    For those users who need advanced capabilities, such as JTAG debugging and real-time trace a carrier module is available. This module makes the debug and trace pins available to the TRACE32 uTrace® for Cortex-M (MIPI20T), and the switch to TRACE32 uTrace® for Cortex-M is almost transparent to the user.

    How to use the debugger with the Portenta H7

    This tutorial explains how to use the Lauterbach TRACE32 GDB front-end debugger with your Portenta H7. The debugger communicates with the Portenta via GDB on a serial interface which means that all you need to start debugging is a USB cable to connect Portenta to TRACE32.

    To enable the GDB interface on Portenta, simply include and compile Arduino’s ThreadDebug library as part of your sketch. Then flash your compiled sketch either via Arduino IDE or directly inside TRACE32. After flashing the sketch you can connect to it in TRACE32 and start inspecting, logging and tracing. Amongst other interesting data it is possible to inspect variables, registers, stack frames, raw memory contents or interrupts which allow you to track down any bug or other issue you may encounter when developing an application.

    This is a meeting of minds of two of the biggest forces in embedded computing and I am waiting with anticipation to see where the vibrant Arduino community takes this,” said Maurizio Menegotto, Managing Director of Lauterbach SRL. “We are honored to be working with Arduino on this exciting project and look forward to welcoming the next generation of embedded engineers to the Lauterbach community.

    “We are more than happy about the partnership between Arduino and Lauterbach, which will enable our customers to benefit from an advanced debugger tool, fundamental for each professional application,” added Andrea Richetta, Arduino Pro BU Leader.  

    If you are a Portenta H7 user and want to get the TRACE32 debugger for free, please complete the registration form on the Lauterbach website

    Website: LINK