Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 21938

MSP430G2955: Can the default location of ISR vectors be changed?

$
0
0

Part Number:MSP430G2955

Hi all,

I am creating a system with two softwares on it. It starts up with prog A. After execution it then jumps to prog B.

Is it possible to change the default ISR vector locations (0xFFE0-FFFD)?

So that for prog A it would be (0x8FE0 - 0x8FFD) and for B - (0xFCE0 - 0xFCFD).

I tried changing INT00 - INT14 addresses  in the .cmd file.

This does put vectors in new locations.However, when interrupt is triggered it still tries to use vectors at default locations (0xFFE0-FFFD).

So in software when prog A starts I have to copy prog A ISR vectors (0x8FE0 - 0x8FFD) to the default location (0xFFE0-FFFD).

When prog B starts I have to copy prog B ISR vectors (0xFCE0 - 0xFCFD)  to the default location (0xFFE0-FFFD).

However to do so I need to erase the whole sector which erases the reset vector.

This creates a posibility of losing the reset vector if power is lost between the erase and program.

Is it possible to move the default location of ISR vectors?


Viewing all articles
Browse latest Browse all 21938

Trending Articles