Not applicable
Nov 08, 2015
08:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 08, 2015
08:11 PM
my code:
#define MVB_Set( m, v, p ) do{ (m) |= ((1UL)<<(p)); (v) |= (1<<(p)); }while(0)
#define BIT_SET(p) MVB_Set(dwMask, dwVal, p)
int main()
{
SCU_RESET_TypeDef *pSCU_Reset = SCU_RESET;
GPDMA0_CH_TypeDef *pGPDMA0_CH0 = GPDMA0_CH0;
BIT_SET(4);
REG_WR( pSCU_Reset->PRCLR2, dwMask, dwVal );
while( pSCU_Reset->PRSTAT2 & (1<<4) );
pGPDMA0_CH0->CLEARBLOCK = 1;
}
then the busfault happen, why ?
the register PPB->CFSR is 33280,whichi is Precise data bus error
the value of register PPB->BFAR is the address of register pGPDMA0_CH0->CLEARBLOCK
tks
#define MVB_Set( m, v, p ) do{ (m) |= ((1UL)<<(p)); (v) |= (1<<(p)); }while(0)
#define BIT_SET(p) MVB_Set(dwMask, dwVal, p)
int main()
{
SCU_RESET_TypeDef *pSCU_Reset = SCU_RESET;
GPDMA0_CH_TypeDef *pGPDMA0_CH0 = GPDMA0_CH0;
BIT_SET(4);
REG_WR( pSCU_Reset->PRCLR2, dwMask, dwVal );
while( pSCU_Reset->PRSTAT2 & (1<<4) );
pGPDMA0_CH0->CLEARBLOCK = 1;
}
then the busfault happen, why ?
the register PPB->CFSR is 33280,whichi is Precise data bus error
the value of register PPB->BFAR is the address of register pGPDMA0_CH0->CLEARBLOCK
tks
- Tags:
- IFX
1 Reply
Nov 09, 2015
01:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 09, 2015
01:58 AM
Sorry its non of my business but what is the purpose of this code? While DMA peripheral is in reset, you are clearing one of DMA registers?