Changes between Version 18 and Version 19 of TBR/Review/Debugging/Start


Ignore:
Timestamp:
Apr 18, 2013, 7:44:20 PM (6 years ago)
Author:
Gedare
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TBR/Review/Debugging/Start

    v18 v19  
    2121$ m68k-rtems-objdump -D --line-numbers --source --demangle  myapp.elf | less
    2222}}}
     23= Hardware Assisted Debugging =
     24
     25
     26Embedded processors these days provide hardware assisted debugging. Typically the processor provides an interface which allows an external device the ability to take control of the processor. In the past hardware assisted debugging required an emulator. These were expensive, often difficult and fragile to connect to the target hardware and often limited in numbers in a project making debugging a time share operation. Any newer or faster processor usually required a new emulator. Todays microprocessors implement a range of functions found in emulators in the processor allowing every target the ability to be used for hardware assisted debugging.
     27
     28Different microprocessors have different ways of the implementing hardware assisted debugging.
     29
     30 * Freescale Coldfire and M683xx processors use Background Debug Mode (BDM).
     31
     32 * ARM uses JTAG.
     33
     34 * PowerPC MPC5xx and MPC8xx use BDM, while the rest of the PowerPC family uses various kinds of JTAG interfaces.
     35= Coldfire and M683xx BDM =
     36
     37
     38The BDM interface is a synchronous serial bus interface. The physical interface (connector) varies between the M683xx and Coldfire processor yet the way BDM works is similar. BDM is support by an Open Source Project which you can find here http://bdm.sourceforge.net/. The BDM project's software uses a low cost pod that connects between your target hardware. You can use the older parallel port pods that connect to your PC's parallel port or you can use the newer USB pods.
     39
     40The USB pod is an open source design called the Turbo BDM Light Coldfire (TBLCF) created by Daniel Malik. You can download the design and build yourself [http://forums.freescale.com/freescale/board/message?board.id=CFCOMM&thread.id=624] or you can obtain a manufactured pod from Axiom Manufacturing [http://www.axman.com/?q=node/303].
     41
     42If using a parallel port pod watch you get the correct pod. Different procesor speeds and core voltages require different pods. Newer pods should be able to handle the faster processors and different core voltages.
     43
     44The latest version of the BDM software use a GDB server program and allows the use of the standard M68K GDB tool provided in the RTEMS binary tools packages.
    2345= Debugging a BSP =
    2446