Part Number: MSPM0L1305
Other Parts Discussed in Thread: SYSCONFIG
All,
My assigned focus customer needs some help to write some code before going to UL.
We need some BOR 2 sample code.
CCS 12.7.1
sysconfig 1.20.00.3587
SDK 1.20.00.05
BOR 0 leaves the part in an unknown state in a safety critical product which isn't acceptable but we feel that BOR 2 will work - but it needs some software to activate / service it.
As we understand it Sysconfig just sets the top level of registers but we need to write some underlying code to generage a POR in an interrupt service routine called by a BOR 2 trigger level.
Do we have a code example the engineer could use as 'starter code'.
SYSCFG_DLinit();
DL_SYSCTL_setBORTheshold(DL_SYSCTL_BOR_THRESOLD_LEVEL_2);
DL_SYSCTL_actvateBORThreshold();
borLevel=DL_SYSCTL_getBORThreshold(); //read active threshold (shows 2 as desired)
void NMI_Handler(void){
// toggle GPIO for the green scope trace
DL_SYSCTL_resetDevice(DL_SYSCTL_RESET_POR); // executes a POR
}
What else do we need to be doing?
Do we have to explictly activate the NMI's?
Do we need to assign any priority to the NMI handler for the BOR?
Best Regards,
Blake
