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

Software Reset with Alternate Start on XC164

Greetings,

Does anyone know if it is possible to initiate an alternate start after a software reset on the Infineon XC164?

My problem is I have 2 pieces of software programmed into the ROM of the XC164, one lives in 0xC00000 to 0xC0FFFF, and the other lives in 0xC10000 to 0xC1FFFF. I can select which program runs using the /ALE switch and doing a hardware reset on my dev board, but I want to have one program relinquish control to the other through a software reset.

There may be a clue in the VECSEG register, but nothing I have tried so far has worked. I was thinking along the lines of:

void reset_to_prog_a( void )
{
    VECSEG = 0xC0;
    _trap_(0);
}

void reset_to_prog_b( void )
{
    VECSEG = 0xC1;
    _trap_(0);
}

Any ideas? Is this even possible?

Many thanks,
Paul.

0