From: Olivier Pierrat (olivierp@actimage.fr)
Date: Fri Oct 11 2002 - 07:28:07 EDT
Hello, Guifang Wu wrote: > Hello,list > After I have built the BDM environment on the host successfully, I want to know exactly how to debug my own application on the target. Here is the firmware environment I use: MCF5272, GDB5.0/GDB-BDM5.0, RedHat7.2. I try to debug the target like this: > > 1. m68k-bdm-elf-gdb test.gdb(I built it by m68k-elf-gcc with -g option) > 2. target bdm /dev/bdmcf0(successful) > 3. I try to run the test application with "c" command, but either it will halt there or with "Program received signal SIGBUS, Bus error" error message. > Is it a custom board or the board from Motorola that you use ? The message you receive by the BDM port is due to a bad address access in your test.gdb. That's why your application received a SIGBUS which is transmitted through the BDM port. > Please give me some detailed explanation on how to load and run my application on the target with BDM debug method support. > With the command you use "> 1. m68k-bdm-elf-gdb test.gdb(I built it by m68k-elf-gcc with -g option)" you can debug the kernel part of your system. You can watch what's happen in the kernel. But you can't debug your software (test). If you want to debug the application part you must add to the kernel the "gdbserver" package. You should have a look on the uClinux (www.uClinux.org) site or uCdot (www.uCdot.org) for more details. I hope it'll help you. > Thanks in advance! > > > This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/ This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/
This archive was generated by hypermail 2.1.4 : Fri Oct 11 2002 - 08:02:04 EDT