Re: Programming the NXT in C
Posted: 09 Mar 2012, 21:53
So it needs to be a J-link that is IAR compatible? Okay, I'll keep my eye open for one at a decent price.
Give a child a robot, he'll play for an hour. Teach him to build, and he'll play forever.
https://mindboards.org:443/
Typically shell scripts are a Unix strength, it is much more flexible than .BAT in Windows, though the latest Windows Shell is supposed to be able to handlemattallen37 wrote:I'm not even sure yet what a bash/shell script is (although I'm open to learning something new today ).
Ok. The JTAG headers are smaller pitch than what I'm used to. YMMV.mattallen37 wrote: I am totally open to soldering a couple headers to the PCB. I have done internal NXT work before, and it doesn't concern me much.
Sorry about that, I wrote that from memory, you are right, though he did mention that the drivers were derived from NxOS.mattallen37 wrote: Sivan Toledo's project actually does include some drivers, it's just a matter of me getting things to compile. I'm still open to other possibilities, but I downloaded the library of drivers, as well as WinAVR. However, I can't seem to get it to compile; probably because I'm extremely new to this type of programming, and I don't know anything about what files I need to include in the project etc.
http://www.yagarto.de/howto.html is a quick place to start (it assumes the use of a JTAG debugger).mattallen37 wrote: I don't have experience setting up compilers and IDEs, and I am fairly new to this "project" idea (10-20 various header and source files). I would greatly appreciate a walk through of setting something up (at this point I don't really care which system I go with, but NxOS sounds pretty good). The only thing I have done so far is setup WinARM (in an attempt to get Bare Metal to work), setting path to include the paths necessary (as explained here), and compiling one of the example programs included with WinARM.
At this point in time, I think I'm the only person actively working on it. I'm not sure what happened to David Anderson, my attempts to contact him has failed.bollinge wrote:I'm glad to hear that NxOS is still alive - I had good success playing around with it a few years ago. I remember having some trouble getting it build with scons in the Windows/Cygwin environment, due to issues with case insensitivity in filenames on Windows. It might be easier for you to stick with Linux for building the code.
You can learn a lot just by browsing through the source code...
I presume you mean 'integrated IDE'? Basically if you can hook the IDE you're using to invoke the build process using scons, it should be able to work.doc-helmut wrote:I would understand that as: no simple IDE like BCC (for WinXP 32) also for NxOS probably...
No progress on that... I am too busy with my Eurobot robot and also I realized that many people want an IDE while I am a text mode user.tcwan wrote:Nicolas Schodet was going to write up a simple guide on using ARMDebug with NIF. I don't know the status of that.