Hi all,
I'm trying to use the system reset interrupt service routine and am having some troubles. I have a peripheral which doesn't do well when the host MCU (F5529) loses power and I am trying to make it so that when the host powers up again it simply resets this peripheral. For those interested it is a BQ76PL536. It loses it's address and all functionality and must be reset. The way I see it my two options are:
a) use the service interrupt for a system reset and reset the BQ from there
b) every time I want to use the BQ I must check it's fault flag (which gets set during a power loss) and if so, then reset it then.
The second option requires checking the fault flag every single time I write to the device which seems sloppy and hack-ish to me. So I want to use the system reset interrupt routine. Thus far I have it as such:
#pragma vector = RESET_VECTOR
__interrupt void RESET_VECTOR_ISR(void){
addr_BQ_devices();
}
However when I run I get this error: a data verifcation error occured, file load failed. Can anybody help me get around this or am I going to have to go with option b)?
Thanks in advance!