|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
I am a spoiled professional programmer. I spend a lot of my day in a source level debugger. I miss that when I am working with the team on programming the robot.
I was wondering if anyone had tried to build a debugger for the FIRST robot? Is anyone interesting in pursuing a debugger (or in this case what would be more correctly called a monitor)? The one thing that would be very useful that I've not been able to work out is break points. In order to create a break point, the changes have to be inserted into the code. As far as I can tell, the code is in a read-only area (I actually think its eeprom) so I'm not sure it's even possible. If the problem of break points can be fixed, I think we solve the rest of the monitor. Any one have ideas or suggestions? ...Duane |
|
#2
|
|||
|
|||
|
Re: Interactive Debugger/Monitor
Frequent (and intelligent) use of printf's.
Its really all you need. |
|
#3
|
|||||
|
|||||
|
Re: Interactive Debugger/Monitor
Quote:
|
|
#4
|
|||||
|
|||||
|
Re: Interactive Debugger/Monitor
I don't think breakpoints are doable without support from IFI in a Master Code update. The Master processor's watchdog timer will time out and freeze the whole controller if you stop in the user code for any appreciable amount of time. And as far as I know, we don't have any direct inputs into the master controller to do anything about this. I suppose you'd have to somehow modify your code to stop processing user functions and code, but continue looping and updating control values.... Mostly it sounds incredibly complicated and quite likely to break any fragile code you happened to be trying this on.
|
|
#5
|
|||
|
|||
|
Re: Interactive Debugger/Monitor
IFI has a dynamic debugging tool, but I haven't used it. It's mentioned on this page: http://www.ifirobotics.com/rc.shtml#Programming. I think the viewer is part of the IFI dashboard application.
|
|
#6
|
||||
|
||||
|
Re: Interactive Debugger/Monitor
Aren't there pins on the board to connect and ICD? I think they are above the TTL pins.
Don't have an RC in front of me at the moment so i'm not 100% sure. -Q |
|
#7
|
|||
|
|||
|
Re: Interactive Debugger/Monitor
Quote:
|
|
#8
|
|||||
|
|||||
|
Re: Interactive Debugger/Monitor
They haven't and probably won't. I'm pretty sure they consider it their intellectual property and probably won't be releasing it any time soon.
|
|
#9
|
|||
|
|||
|
Re: Interactive Debugger/Monitor
Quote:
|
|
#10
|
|||||
|
|||||
|
Re: Interactive Debugger/Monitor
Wow, what a great set of responses. I'll try and address a bunch of them.
Quote:
Of course that's what we all have to do. It's simply not enough for any reasonably complex debugging session. Try debugging an active PID routine with printfs. Not pretty and not useful. Until you try a real debugger or a monitor (as this will be) it's just not the same. Quote:
Quote:
A breakpoint is just a jump into the monitor. The monitor then takes control and keeps the Master Processor happy. We just need to be able to write that jump instruction into the code! Quote:
Quote:
We don't really need the all the sources, I just want a way to scribble an opcode into the program stream while it's running. Thanks for all the great response. We'll get those creative juices flowing and come up with a good solution to this problem! ...Duane |
|
#11
|
|||
|
|||
|
Re: Interactive Debugger/Monitor
Has IFI ever posted the source to there Master Code? I dont think they have and all I see is the BIN file for it. Maybe if they released the code them people could start working on this.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MPLAB SIM debugger Questions | Chris_Elston | Programming | 2 | 16-01-2005 11:28 |
| c debugger | stephenthe1 | Programming | 16 | 09-12-2004 14:49 |
| openFIRST Now Includes Debugger | Timothy D. Ginn | FIRST-related Organizations | 0 | 22-12-2003 12:15 |
| Debugger and Simulation in new IDE? | authgeek1218 | Programming | 1 | 08-12-2003 18:39 |
| interactive strategy | piconysm | Rules/Strategy | 5 | 11-01-2002 08:47 |