To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 115
114  |  116
Subject: 
Re: loading s/w
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Thu, 8 Apr 1999 21:40:08 GMT
Viewed: 
1047 times
  
Vic Mulyk <mulykv@cadvision.com> wrote:
After successfully downloading and running tm-and-ir.srec (Linux host),
I cannot download to it any longer.  Upon power up, the LCD displays LEGO!5
and I can select any other program slots.

I could just re-load firmware in '95 but I don't want to have to reboot
everytime I want to load new software.

I belive LegOS breaks firmware deletion, in the sense that the "delete
firmware" opcode is not supported by the IR routines, but I could be wrong
about that.

If you are using an AC adapter and no batteries, the easiest thing to do is
to turn the RCX on, then yank the AC adapter.  This resets the RCX.

If you are not using an AC adapter, you can turn the RCX on, then remove a
battery.  This will also reset the RCX.

If you want a software solution, you might consider coding up something
which resets the RCX when you do something like press all four buttons at
once.  I don't know the proper LegOS way to reset the RCX, but the code to
force a reset looks like this:

    *(char *)0xffcc = 1;
    (*(void (**)(void))0)();

In my coding environment, a return from main triggers this code.

-Kekoa



Message has 2 Replies:
  Re: loading s/w
 
(...) I skipped something here. The assumption I made is that you want to load new custom firmware. If you want to load the Lego firmware, find the Firm0309.lgo file in your Mindstorms directory, and load that into the RCX exactly as you would (...) (25 years ago, 8-Apr-99, to lugnet.robotics.rcx.legos)
  Re: loading s/w
 
(...) rom_reset() does the trick, you'll need to #include "rom/system.h". I'm not sure wheter this is safe when multitasking. (25 years ago, 20-Apr-99, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  loading s/w
 
After successfully downloading and running tm-and-ir.srec (Linux host), I cannot download to it any longer. Upon power up, the LCD displays LEGO!5 and I can select any other program slots. I could just re-load firmware in '95 but I don't want to (...) (25 years ago, 8-Apr-99, to lugnet.robotics.rcx.legos)

11 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