At the moment i am searching a way to download a Programm to the NXT from the IAR Tool.
(Provided at: http://www.iar.com/website1/1.0.1.0/1483/1/)
At the moment I am working with the NXTGCC Project, but the IAR Compiler is said to produce better Code for the Processors.
The original Communication drifer fantom.dll (From Lego) itself is no valid debugging driver for the IAR Toolchain
(or i am making some grave mistakes).
So the base Questions are:
> Can somebody tell me how to download from IAR useng USB.
> Is ther anny Posibility to update the Coprocessor using USB. (Since i dont posess a Debugging device.)
> Howto Debug using USB?
Howto Download from IAR using USB?
Re: Howto Download from IAR using USB?
To the best of my knowledge there isn't any way to directly interface with the NXT from the IAR Workbench via USB. I could be totally mistaken, of course. I think you have to use a JTAG device. That is what I have used for firmware debugging purposes.
I download a firmware image (either the .a79 created by the compiler or one that I have padded with 0xFF bytes to 256kb as an RFW file) using BricxCC and the LEGO Fantom drivers.
John Hansen
I download a firmware image (either the .a79 created by the compiler or one that I have padded with 0xFF bytes to 256kb as an RFW file) using BricxCC and the LEGO Fantom drivers.
John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
http://bricxcc.sourceforge.net/
Re: Howto Download from IAR using USB?
Sems like i am worse in EMB-SYS programming than i ever thought.
How do i configure the tool to get a .a79 File?
>> OK, Found it: Changing Project to "BIN OUTPUT" +change some of the include and lib Paths <<
>> because for some reason the automatic with $Value (like $PROJ_DIR$\..\Include\) dosent deliver the correct paths <<
Renaming and downloading could posibly be done as Postposessing comandline, calling Fantom automatically.
How do i configure the tool to get a .a79 File?
>> OK, Found it: Changing Project to "BIN OUTPUT" +change some of the include and lib Paths <<
>> because for some reason the automatic with $Value (like $PROJ_DIR$\..\Include\) dosent deliver the correct paths <<
Renaming and downloading could posibly be done as Postposessing comandline, calling Fantom automatically.
Re: Howto Download from IAR using USB?
If you want to automate the firmware download you may want to use my command line utility called NeXTTool.exe. It can be used to connect to your NXT via USB and download a firmware image using
nexttool /COM=usb -firmware=<path to firmware image>
It might be best to execute nexttool twice with a slight delay between the two calls. The first could use -boot to put the NXT into SAMBA mode. That might make the firmware download less likely to fail due to Windows executing a found new hardware process which sometimes can cause the BricxCC firmware download to not complete successfully.
John Hansen
nexttool /COM=usb -firmware=<path to firmware image>
It might be best to execute nexttool twice with a slight delay between the two calls. The first could use -boot to put the NXT into SAMBA mode. That might make the firmware download less likely to fail due to Windows executing a found new hardware process which sometimes can cause the BricxCC firmware download to not complete successfully.
John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
http://bricxcc.sourceforge.net/
Re: Howto Download from IAR using USB?
For my projekt it will be the better choice to download manually,
because in my actual Firmware i have cut the whole Communication and Command Part,
so i have to sendthe NXT to downloadmode manually.
because in my actual Firmware i have cut the whole Communication and Command Part,
so i have to sendthe NXT to downloadmode manually.
Who is online
Users browsing this forum: No registered users and 0 guests