Hello. I am a student and my experience with microcontrollers has been using pre-configured windows computers, running IAR and working with the HC12 (under the watchful and helpful eye of the lab supervisor).
Well, I have moved on to working with the Olimex SAM7-P256 development board outside of university, taking the open source route using Eclipse and OpenOCD. It has been quite a learning experience getting everything set up, and not having my trusty lab supervisor to quiz at every wrong turn
I have found James Lynch’s document very helpful, and I am successfully running code on my board. My question relates to debugging. I am reading from revision C (it is the latest I could find).
I am a little stuck when it comes to debugging. I attempt to follow the instructions on page 129, but when I get to page 131 I run into a problem when entering ‘commands’. In his description he shows Eclipse as having two text boxes for entering ‘Initialise’ and ‘Run’ commands, but my version (3.2.0) only has one window for ‘Commands’.
Also, (this will show me to be the extreme novice I am), he discusses using the main.out file. My projects are usually built on top of demonstration projects, or other examples that I can modify. Some of my projects aren’t generating a main.out (which I can see is instructed in the makefile), but they are generating a .elf file…am I correct in assuming I can use this file instead?
Also, in his images he has left the GDB command file section blank, but in mine I have ‘.gdbinit’ as default. Removing it doesn’t seem to do anything, but I’d like to know if it’s better to remove it or keep it.
Finally, when I attempt to debug (leaving the ‘Commands’ section I mentioned before blank), and enter those commands from James Lynch’s document into the console, I get this:
(gdb) target remote localhost:3333
localhost:3333: Connection refused.
and any other commands I attempt to enter say something along the lines of “monitor” command not supported by this target (which I can assume is because I never successfully set a target with that first line).
As you can tell, I am very green, but I am learning a lot and loving it…I just wish I could get this debugger working. Any advice would be much appreciated.
One last thing, I downloaded the IAR embedded workbench kick start, but I can’t find a way to tell IAR to use my ARM-USB-OCD. From trawling the internet, it looks as though it is unsupported at the moment. Does anyone have any information to the contrary?
Thanks in advance for any help.