cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding POR(25)

AshwiniKool
Visitor

Hi All

I am using STM32L053 board for a product development.

I am using RS485 communication Protocol. I am sending Data from Computer to the processor to get the response. 

When I send the data, I get proper response. but out of 10 times say 1 time the processor Resets with the error number 19,  that is POR(25)

This is reset due to CLASS B VAR FAIL. 

CLASS B VAR error comes as a result of 

Clock Status STL_Main Clock Test(void)  function which is written in the file STm32fxx_STLclockRun.c file.

this function has one condition,

 

 if (((PeriodValue ^ PeriodValueInv) == 0xFFFFFFFFuL)\
&& ((LSIPeriodFlag ^ LSIPeriodFlagInv) == 0xFFFFFFFFuL)\
&& (LSIPeriodFlag != 0u) ) 

 

in this condition, actually LSIPeriodFlag = 0  and also (LSIPeriodFlag ^ LSIPeriodFlagInv) are not exactly inverse of each other as LSIPeriodFlag = 0x00000000; LSIPeriodFlagInv = 0x55555555;

How to solve the problem?

Thanks in Advance

Regards

Ashwini

 

0 REPLIES 0