HardwareDebug

From RTEMSWiki

Jump to: navigation, search

<?plugin CreateToc jshide||=1 with_toclink||=1 ?>

Contents

Hardware Debugging

Embedded 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.

Different microprocessors have different ways of the implementing harwdare assisted debugging.

  • Freescale Coldfire and M683xx processors use Background Debug Mode (BDM).
  • ARM uses JTAG.
  • PowerPC MPC5xx and MPC8xx use BDM, while the rest of the PowerPC family uses various kinds of JTAG interfaces.

Coldfire and M683xx BDM

The 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 https://sourceforge.net/projects/bdm/. The BDM project's software uses a low cost pod that connects between your target harwdare and the development PC's parallel port. 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.

You will also need to build or obtain a patched version of GDB. The BDM project provides the patches. The patch enables GDB to take advantage of the BDM debugging features.

Provide details on a debugging session.

ARM

Information goes here.

PowerPC

Information goes here.

Personal tools