Sunday, November 7, 2010

Nov.5 forte.bin to get an eCos device

When/how is forte.bin is built, so the flashed Lego brick is recognized as an eCos device;  Not which driver is loaded, but that the PC knows a new device has been plugged in.

This is important because the usb download will not work if the Lego is known to the PC.

The following documents what is known so far.
0. Looked at the command to create the forte.bin in the 2 working versions and in current hg
- no difference that I could see (it was late)

1. Known as eCos device = works
Windows XP recognizes the Lego Brick as an eCos Device

* Summer lms version
* Forte Version of Dominik's from Oct. BUT
in lmsmain: 
  code to create lms device commented out
  added in his own main method

2. Unknown as an eCos device  = does not work
Windows XP does NOT recognize the Lego Brick as an eCos Device:
* hg forte out of the box with the same FBs as in Dominik's
* hg forte with lms device commented out
* hg forte with just code to blick led in the main
   (I hope device was commented out - but going on memory at the moment)
   [will check and update]
* my cleaned code version

3. Next tests = try and see if the flashed on Lego -forte.bin  goes from known to unknown or vice versa.
(Ran out of time Friday night.)

known to unknown
- Uncomment the code to create the device in the Dominik  version

unknown to known
- put the main, utilities and BT fb code in the current hg version

If neither test yields anything new... then start a code compare

4. Other info:
After flashing the Lego the device, take out the battery and put it back in.
After about 25-30 sec. the Lego will click. Then the PC will show the Lego as an eCos device or it never will know the Lego is plugged in.  The 25-30 sec. is slightly longer than the normal boot blinking in lmsmain. After this click the Lego is either known/never known, independent of the contents of lmsmain.

No comments:

Post a Comment