Direct debugging of executables
STWorkbench does not directly support the direct debugging of executables built outside the IDE. However, these steps allow you to run or debug an executable built using the command line tools.To set a...
View ArticleBrowsing remote filesystems
Browse external filesystemsAll STLinux systems have a filesystem. You can browse the files on the target using the Remote Filesystem view, which also allows you to transfer files to and from the...
View ArticleManaging kernel modules
Select Window>Show View>Other>STLinux>Kernel Modules.Make sure the target is booted and running. Enter the remote system name or IP address in the Target field.The Secure connection check...
View ArticleUsing STWorkbench to develop existing applications
IntroductionSTWorkbench is an Eclipse-based IDE shipped with the STLinux distribution. It supports development and debugging of STLinux applications. STWorkbench can be easily used to drive an existing...
View ArticleCross debugging with GDB
Cross debugging with GDB To set up a cross debug session using GDB, it is necessary to run debugging tools on both the target Linux system and the host system. On the target Linux system the GDB debug...
View ArticleNative debugging with GDB
Native debugging using GDB To set up a native debug session using GDB, it is only necessary to run the GDB debugger on the target.Note: To support symbolic debugging the application must have been...
View ArticleKernel parameters
Kernel parameters After the kernel has been built with KGDB support, the command line port options as shown below:ST ASC port: kgdbasc=0,115200Ethernet connection:...
View ArticleConnecting GDB to the kernel
Connecting GDB to the kernel debugger The cross GDB for your architecture should be used, either sh4-linux-gdb or arm-linux-gdb.Before debugging, the debugger must connect to the KGDB using the chosen...
View ArticleControlling kernel execution
Controlling kernel executionWhen debugging, it is possible to suspend and then resume kernel execution at any point. Suspending kernel execution Using Ctrl+CSuspend kernel execution by pressing Ctrl+C...
View ArticleDebugging kernel modules
Debugging the kernel modules GDB is able to detect when a module is loaded on the target. It then loads the module object file into the memory of GDB to get debugging information. The search path where...
View ArticleTroubleshooting, known limits and utilities
TroubleshootingGDB prints following errors:Ingore packet error, continuing... Ingore packet error, continuing... Ingore packet error, continuing... Couldn't establish connection to remote target...
View ArticleBuilding SRPMs
Building SRPMs Occasionally, it may be necessary to rebuild one of the supplied SRPMs. This is not a difficult operation, but it does rely on some features of rpm which may not be familiar to users who...
View ArticleDebugging
DebuggingThis section covers a range of topics relating to debugging STLinux software. It includes information on debugging applications running in user space as well as debugging the...
View ArticleTracing and profiling
Introduction to Tracing and ProfilingTracing and Profiling are important aspects of software analysis. A software developer uses these techniques to improve the quality and efficiency of an...
View ArticleBuilding
BuildingSTLinux is designed for embedded systems, which means that the majority of software development takes place on a host computer and the software is only transferred to the target device for...
View ArticleHow to profile an STLinux system
Introduction to Profiling For users interested in tuning the performance of their applications, the STLinux distribution includes two profilers - gprof and OProfile. The standard GNU profiler, gprof,...
View ArticleWebcasts
The following webcasts show how STWorkbench can be used to navigate, edit, build, debug, profile and trace STAPI-based STLinux applications. Webcast: Importing an application and the kernelWebcast:...
View ArticleMeasuring CPU load with cyclesoak
Measuring CPU load with cyclesoak Although information on system idle time is available from oprofile and KPTrace, the simplest and most accurate way to measure the CPU load of an STLinux ST40 or ARM...
View ArticleKernel memory leak checking
Usage From STLinux 2.3 kernel #122 onwards, the kernel contains a memory leak detection tool called kmemleak. To enable kernel memory leak checking turn on this kernel configuration option: Kernel...
View ArticleUninstalling STLinux
Uninstalling STLinuxSTLinux distribution, is rpm package based. So, it is possible to manage any STLinux package by RPM standard commands. For more details, please refer to the RPM official site at:...
View ArticleUsing the Target Filesystem Editor
Using the Target Filesystem Editor The Target Filesystem Editor is a tool to assist embedded Linux developers to construct a smaller target filesystem, suitable to be written into on-board flash in a...
View ArticleSPEAr1340 Android hardware pack
SPEAr1340 Android hardware packAndroid hardware pack are proprietary libraries for STMicroelectronics SPEAr eMPUs (SPEAr1340). The complete Android package can be found on...
View ArticlePeeking physical addresses on ARMv7
Peeking physical addresses on ARMv7 The JTAG kernel debugger can be used to peek out the contents of physical addresses on ARMv7-based SoCs, for example to query memory-mapped registers. However, the...
View ArticleInstalling the ARM bring-up tools
Installing the ARM bring-up toolsA set of tools is available for developing non-Linux code on Cortex A9 cores. These tools are distributed as part of the ST Linux Distribution and can be installed...
View ArticleARM Bring-Up Tools
ARM Bring-Up ToolsThe ARM bring-up development tools are distributed as RPM files and must be installed on a host PC running a Linux distribution. There are many Linux distributions freely available on...
View ArticleBuilding an ARM bare machine application
Building an ARM bare machine applicationThe following tools installed in /opt/STM/STLinux-2.4/bare/armv7/bin are used to build an ARM bare machine...
View ArticleGetting started with the ARM bring-up tools
Getting started with the ARM bring-up toolsThis section provides a brief introduction to building and running an application using the ARM bring-up tools (to install the ARM bring-up tools see...
View ArticleReporting bugs and enhancements
Reporting bugs and enhancementsPlease submit any bug reports or enhancement requests in the ARM Bringup Tools product category in the STLinux Bugzilla database.When reporting an issue please provide...
View ArticleBuilding ARM bare machine applications without host I/O
AttachmentSizenoio.specs225 bytesBuilding ARM bare machine applications without host I/OBy default the ARM bring-up tools build bare machine applications with host I/O enabled. These applications can...
View ArticleDynamic system tracing with KPTrace
Introduction to KPTrace KPTrace is an innovative tracing solution for STLinux on ST40 and ARM. It allows dynamic tracepoints to be added anywhere in the system, and provides a simple interface to...
View Article