Digi 9P 9360/9750 manual Choose the right architecture for your target

Page 35

A p p l i c a t i o n D e v e l o p m e n t

In the debug interface type

$ (gdb) set architecture ARCHITECTURE

$ (gdb) set solib-absolute-prefix <INSTALL_DIR> $ (gdb) target remote TARGET.IP:2001

The supported architectures can be displayed with the following command:

$ (gdb) set architecture

Requires an argument. Valid arguments are arm, armv2, armv2a, armv3, armv3m, armv4, armv4t, armv5, armv5t, armv5te, xscale, ep9312, iwmmxt, auto.

Choose the right architecture for your target.

Valid

 

CCXP270

 

A9M2410 A9M2440

CC9P9360/9750

Argument

CC9C

UNC90

 

 

 

 

 

 

 

armv4

 

 

x

x

 

 

 

 

 

 

 

armv5te

x

 

 

 

x

 

 

 

 

 

 

xscale

 

x

 

 

 

 

 

 

 

 

 

Type "c" for continue.

You can now debug your application. Alternatively, you may try an external graphical debugger like "ddd" or use "arm-linux-gdbtui" on the command line instead of "arm-linux-gdb".

When debugging with the BDI2000:

On the A9M9750DEV development board, set dip-switch S4-1 and S4-3 to "on"

3 5

Image 35
Contents LxNETES User’s Guide ConnectCore 9P 9360/9750 Page Page Page Contents Building the First Project Interfaces & Devices Appendix B Cross-development environment IntroductionOverview Example applications Linux kernel sourcesTemplate project What’s new in LxNETES 3.2? FeaturesGeneral features RTC Gpio This is a tip. It contains useful information about a topic Conventions used in this manualAcronyms and abbreviations System requirements RequirementsSystem Requirements/Prerequisites Optional but recommended components Disk spaceTftp daemon Applications & ServicesNFS server JTAG-Booster N E T E S U s e r ’ s G u i d e Introduction Connecting host PC with development boardGetting Started Seyon MinicomSeyon Settings Connect powerTest Ethernet configuration # ifconfig eth0 Installing LxNETESGuided Installation Manual Installation N u a l Installation Building the First Project Building the Default ProjectRun configure Run make Run make installAdding your own applications Application DevelopmentWriting applications Display Using C++Included example applications Proc/cpuinfo contents Debugging applications Choose the right architecture for your target Web server Boa Included pre-built applicationsShell applications busybox Telnet daemon utelnetdEmbedded Qt Nano-X/microwindowsMem Useful applicationsWriting your own kernel modules What is a kernel module?Kernel Development Writing kernel modulesIncluded Kernel modules Minimal Add the module to the build environmentBuilding and loading of kernel modules Advanced Topics Modifying the default projectD i f y i n g t h e d e Fault p r o j e c t Building a custom project Introduction Boot processBoot Bank # 0 00000000 32 MB ConnectCore 9P 9360/9750NAND-Flash Linux boot methodsUSB NOR FlashMMU Linux boot processV a n c e d T o p i c s Updating the Flash memory Passing arguments to the kernelAutomating the image download Updating a running system manually Updating a running system the easy wayWrite the image to Flash Download the new image file to RAMErase the Flash partition Root File System BootKernel Updating a corrupted system using a debugger Root File System Types Launch the kernel from RAM Set bootargs to be passed to the kernelDownload the kernel to RAM via Tftp JFFS2 Copy the kernel to RAM O t F i l e S y s t e m T y p e s N E T E S U s e r ’ s G u i d e Serial interface Interfaces & DevicesLCD interface USB host interfaceI2C interface SPI interfaceReal time clock RTC How to set the initial system date and timeCompact flash interface SD card interfacePCI interface Related documentation CD contentsAppendix a Docs Images Install.shReadme.txt RelNotes.txtHardware SetupConnectCore 9P 9360 CC9P9360 ConnectCore 9P 9750 CC9P9750Sdram memory layout Memory layoutsFlash memory layout ConnectCore 9P 9360 / ConnectCore 9PTextbase N E T E S U s e r ’ s G u i d e Appendix B Boot command referenceO o t c o m m a n d r e f e r e n c e Skipped CC9C CCXP270 UNC90 Example A9M24x0 User keys