To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.nxt.nxthackingOpen lugnet.robotics.nxt.nxthacking in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / NXT / NXT Firmware Hacking / 80
79  |  81
Subject: 
Re: Alternate NXT-Firmware flashing tools
Newsgroups: 
lugnet.robotics.nxt.nxthacking
Date: 
Sat, 28 Jul 2007 09:43:35 GMT
Viewed: 
18832 times
  
Hi Christian,

"Christian Mock" <chrimo-@-moccy.xdsnet.de> writes:

yes this is a trivial job, but what should I learn from this packets ?

if you have an endianness problem it should be visible.
The easiest would be to compare it with a little-endian machine.

fwflash returns no error back to commandline ...

Does this mean fwflash works blindly and returns no
protocol or packet errors ?

It uses the SAM-BA protocol, which is rather simple and without
error checking, more like what a human would type on a command line,
except that some parts are in binary.
It is documented in the AT91SAM7S data sheet.
Basically it allows to access memory and start programs on the device.

Flashing is done by loading a small program into memory
for flashing a page, then for each page the data is loaded
and the routine for flashing is executed on the data.

Why is the result "success" ???

As far as I remember there is no error checking,
which explains why error sometimes go undetected
and the NXT doesn't boot.
Error checking could be added, though.

I hoped that anybody of the "creators" have done this
before, or is nobody using fwflash with the NXT ?

I used the version in NXJ successfully both for the NXT and
for an AT91SAM7S-EK evaluation board, which uses the same processor.

But you could be the first to use it on a big endian machine ...


Jürgen

--
Jürgen Stuber <juergen@jstuber.net>
http://www.jstuber.net/



Message has 2 Replies:
  Re: Alternate NXT-Firmware flashing tools
 
Hi all, (...) Recently, we finished a runtime for the RCX, and discovered the awful state of uploading tools for that platform. In particular, there are at least three versions of firmdl running around the net, each capable handling different (...) (17 years ago, 28-Jul-07, to lugnet.robotics.nxt.nxthacking)
  Re: Alternate NXT-Firmware flashing tools
 
(...) Hi Jürgen, just for information: nxjflash has the same problems at PPC and SPARC ;-( Next week I try to get a little endian machine and try it again... Thanx for your detailed informations Bye Christian (17 years ago, 29-Jul-07, to lugnet.robotics.nxt.nxthacking)

Message is in Reply To:
  Re: Alternate NXT-Firmware flashing tools
 
(...) ReHi Jürgen, yes this is a trivial job, but what should I learn from this packets ? fwflash returns no error back to commandline ... Does this mean fwflash works blindly and returns no protocol or packet errors ? Why is the result "success" (...) (17 years ago, 26-Jul-07, to lugnet.robotics.nxt.nxthacking)

9 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR