2021-01-03 11:57 PM
Actually I am using a single interrupt to receive, data from another processor in two different arrays. Due to this scenario and interrupt being called at two times in different arrays, only the first array receive interrupt accurately.
2021-01-04 01:10 AM
Each typically has a single vector but can handle multiple sources within the USART.
If the Vector Table is in RAM you can dynamically change the subroutine called.
2021-01-04 01:21 AM
Kindly explain completely about RAM dynamically subroutine function
2021-01-04 01:38 AM
There are Technical Reference Manuals for the MCU, a review of those might be enlightening.
Have a sufficiently large 32-bit array to hold all the Vector entries, have it on a 512-byte aligned address. Copy the current defaults into this new array. Point SCB->VTOR at this new array.
Change the function address pointer in the array index for the USART interrupt.
If this is too complex, perhaps use a function pointer your IRQ Handler calls.