This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how run the program without monitor

Hello all.
I'm trying to use the serial port in the MCB167-net.
I don't want to debug the program, I only want to run it, so could I download the program to the target, and go out of the
debug session without quit the program of the target? Can I use the serial port then, or is it still being used by the monitor?
Any help would be granted.

Parents
  • I've done almost exactly that before, with the difference being that I used monitor in simulated serial mode, so the monitor didn't occupy ASC0. As far as I know, there shouldn't be any problems with downloading the program into the target and hitting the 'Run' button. Of course, the debugger will complain that it's lost connection with the target as soon as your program takes control of the ASC0, but that shouldn't prevent the program from keeping on running.

    - mike

Reply
  • I've done almost exactly that before, with the difference being that I used monitor in simulated serial mode, so the monitor didn't occupy ASC0. As far as I know, there shouldn't be any problems with downloading the program into the target and hitting the 'Run' button. Of course, the debugger will complain that it's lost connection with the target as soon as your program takes control of the ASC0, but that shouldn't prevent the program from keeping on running.

    - mike

Children
  • Just one small correction:

    If you are downloading a program that has an entry for 'ASC0 Receive' in the interrupt vector table, then the monitor will not overwrite its own entry (I think.) Because if it did, you wouldn't have a chance to hit the 'Run' button. You will have to modify that entry in your program manually, like so:

    *(unsigned long huge*)0xAC = (void (far*)(void))my_asc0_receive_handler;
    *(unsigned char huge*)0xAC = '\xFA';
    
    Not very elegant, but should do the trick.

    - mike