LyleHaze wrote:I think it depends on what your definition of "long" is. (that's what SHE said! :lol: )
It's probably just my compiler being extra-picky. But to print a 32 it likes %ld instead of %d.
Either you're misunderstanding something, or doing something wrong,
or your compiler is. %d requires an int, %ld requires a long int. On most
32-bit platforms both are 32 bits.
If that's my biggest problem today I'll call it a great day and move on.
Heh yeah :-)
I have no answer to any of your questions about XDE: I have never run XDE.
The comiled output looks like the *.xe file. But I am afraid to pass it to the run command because:
The program runs on both cores, and I don't know which one to load/run it on.
The run program has a maximum file size of 64K, and this .xe file is about 86 K in size.
To run XE files, use runxe, not run. Your XE file most likely contains two images
for each core (so four in total); runxe will run all of them, in the order indicated
in the image.
So, best guess is that I need a different output format from XDE for using with your "Run" command.
"run" simply uploads a file to RAM, on a single core, and starts it at 10000. It is
not something you want to do with programs created with the normal toolchain.
If I need to compile from a command line, Great! If we ever port tools over that's where we will be working from anyway.
It does not matter how you compile, all that matters is the executable file that
results, right :-)
Using XDE without a supported debug adapter will not work in some obvious
places, and might not work for some non-obvious things either I hear.
If you want to use a stepping debugger (GDB) you'll need to teach GDB how
to talk via your adapter. Should be not so hard, all the code should be available.
My tools are quite command-line oriented, since I never use an IDE (or, "xterm is
Any suggestions will be appreciated.
./run-xe blinkenlights.xe should do the trick. Get on IRC if you want live
help from me ;-)
You should see the code in a few days or less.
Excellent, looking forward to it!