visualization of internal variables in real-time.
Hi Dominic,Very interesting.Quotevisualization of internal variables in real-time.How do you gain access to the internal variables? I ask because I have a monitor program http://arduino.cc/forum/index.php/topic,54005.0.htmlthat does this to a degree and is very non-intrusive but I'm interested in other approaches.Another interest I have in NetworkViewer is as a start for a GUI for my debugging toolhttp://arduino.cc/forum/index.php/topic,72014.0.htmlI planned to write this in .NET but hate the fact that it's bound to Windows and QT seems like a much better option.Could I use your code as a base for my GUI? _______Rob
This would be problematic if you access the shared memory from an interrupt for instance. If you know how to fix that, please tell me!
block interrupts in an "hardware independent" manner (reusable code for PIC32 & Atmel based microcontrollers).
For the GUI, you can use the GPL code of the NetworkViewer.
Every access to those variables has to be protected by a mutex of some description, the easiest thing is just disable interrupts I suppose. For a quick read or write that shouldn't cause any drama unless there's some serious time-dependent code running.
Can't you just have a macro to set and clear the interrupt flag?
As I assume the whole process is asynchronous so you can't guarantee to get every different value for "variables" anyway can you?
How do I get that? I got the exe from sourceforge but that svn link just has links to a 100 files. I assume they are the Qt source files, do I download them separately?
standardized API from the Arduino stack for interrupt disable/enable.
I'm sorry I just don't get this svn.sourceforge stuff, all I see is a directory listing with dozens of files and folders with more files, am I suppose to right-click on them all the "save as"? There has to be a better way.
sei() and cli(), but they are already macros that just do the assembly instructions of the same name IIRC.
We're hitting the road today and will be between towns for a few days so I won't have much internet but the Qt download just finished so at least I can play with that while I'm out of touch
Have you installed the MinGW version of Qt?
The edition you download here must match the OS you have your development system on.
You might have generated the project for Visual Studio.