const__pageData=JSON.parse('{"title":"ARM Debugging using Eclipse","description":"","frontmatter":{},"headers":[],"relativePath":"arm_debugging.md","filePath":"arm_debugging.md"}');
const_sfc_main={name:"arm_debugging.md"};
const_hoisted_1=/* @__PURE__ */createStaticVNode('<h1id="arm-debugging-using-eclipse"tabindex="-1">ARMDebuggingusingEclipse<aclass="header-anchor"href="#arm-debugging-using-eclipse"aria-label="Permalink to "ARM Debugging using Eclipse""></a></h1><p>ThispagedescribeshowtosetupdebuggingforARMMCUsusinganSWDadapterandopen-source/freetools.InthisguidewewillinstallGNUMCUEclipseIDEforC/C++DevelopersandOpenOCDtogetherwithallthenecessarydependencies.</p><p>ThisguideiscateredtowardsadvanceusersandassumesyoucancompileanARMcompatiblekeyboardonyourmachineusingtheMAKEflow.</p><h2id="installing-the-software"tabindex="-1">Installingthesoftware<aclass="header-anchor"href="#installing-the-software"aria-label="Permalinkto"Installingthesoftware""></a></h2><p>ThemainobjectivehereistogettheMCUEclipseIDEcorrectlyinstalledonourmachine.Thenecessaryinstructionsarederivedfrom<ahref="https://gnu-mcu-eclipse.github.io/install/"target="_blank"rel="noreferrer">this</a>installguide.</p><h3id="the-xpack-manager"tabindex="-1">ThexPackManager<aclass="header-anchor"href="#the-xpack-manager"aria-label="Permalinkto"ThexPackManager""></a></h3><p>Thistoolisasoftwarepackagemanageranditisusedtohelpusgetthenecessarydependencies.</p><p>XPMrunsusingNode.jssograbthatfrom<ahref="https://nodejs.org/en/"target="_blank"rel="noreferrer">here</a>.Afterinstallation,openaterminalandtype<code>npm-v</code>.Areplywiththeversionnumbermeansthattheinstallationwassuccessful.</p><p>XPMinstallationinstructionscanbefound<ahref="https://www.npmjs.com/package/xpm"target="_blank"rel="noreferrer">here</a>andareOSspecific.Entering<code>xpm--version</code>toyourterminalshouldreturnthesoftwareversion.</p><h3id="the-arm-toolchain"tabindex="-1">TheARMToolchain<aclass="header-anchor"href="#the-arm-toolchain"aria-label="Permalinkto"TheARMToolchain""></a></h3><p>UsingXPMitisveryeasytoinstalltheARMtoolchain.Enterthecommand<code>xpminstall--global@xpack-dev-tools/arm-none-eabi-gcc</code>.</p><h3id="windows-build-tools"tabindex="-1">Windowsbuildtools<aclass="header-anchor"href="#windows-build-tools"aria-label="Permalinkto"Windowsbuildtools""></a></h3><p>Ifyouareusingwindowsyouneedtoinstallthis!</p><p><code>xpminstall--global@gnu-mcu-eclipse/windows-build-tools</code></p><h3id="programmer-debugger-drivers"tabindex="-1">Programmer/DebuggerDrivers<aclass="header-anchor"href="#programmer-debugger-drivers"aria-label="Permalinkto"Programmer/DebuggerDrivers""></a></h3><p>Nowit'stimetoinstallyourprogrammer'sdrivers.ThistutorialwasmadeusinganST-Linkv2whichyoucangetfromalmostanywhere.IfyouhaveanST-Linkthedriverscanbefound<ahref="https://www.st.com/en/development-tools/stsw-link009.html"target="_blank"rel="noreferrer">here</a>otherwiseconsultthemanufacturerofyourtool.</p><h3id="openocd"tabindex="-1">OpenOCD<aclass="header-anchor"href="#openocd"aria-label="Permalinkto"OpenOCD""></a></h3><p>ThisdependencyallowsSWDaccessfromGDBanditisessentialfordebugging.Run<code>xpminstall--global@xpack-dev-tools/openocd</code>.</p><h3id="java"tabindex="-1">Java<aclass="header-anchor"href="#java"aria-label="Permalinkto"Java""></a></h3><p>JavaisneededbyEclipsesopleasedownloaditfrom<ahref="https://www.oracle.com/technetwork/java/javase/downloads/index.html"target="_blank"rel="noreferrer">here</a>.</p><h3id="gnu-mcu-eclipse-ide"tabindex="-1">GNUMCUEclipseIDE<aclass="header-anchor"href="#gnu-mcu-eclipse-ide"aria-label="Permalinkto"GNUMCUEclipseIDE""></a></h3><p>NowitsfinallytimetoinstalltheIDE.UsetheReleasepage<ahref="https://github.com/gnu-mcu-eclipse/org.eclipse.epp.packages/releases/"target="_blank"rel="noreferrer">here</a>togetthe