AnsweredAssumed Answered

std peripheral library error on stm32f207ve

Question asked by chippindale.bj on May 10, 2012
Latest reply on May 10, 2012 by Clive One
This function:  

ITStatus DMA_GetITStatus(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_IT);

Does not correctly detect the interrupt status on this chip.   The interrupt status can be correctly discovered by the simple access to the register  

... ie

 tmpReg = DMA2->LISR;
   if( tmpReg &  DMA_FLAG_TCIF0 )
   { 
     DMA_ClearITPendingBit(DMA2_Stream0, DMA_FLAG_TCIF0);
   }

However, the function fails to detect the status, appearing to mask the enabled bits incorrectly (stepped through it, the interrupt is correct, the masking for whether it is enabled is not. ).  

It may work on other variations of the chip.  YMMV. 

This is probably not the right place to report bugs, but I have already wasted an hour looking for a right place for this.     

ciao
BJ


Outcomes