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
  • 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

Reply
  • 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

Children
No data