Dstc_ClearDreqenbBit() function in PDL 2.1.0 sets DREQENB register bit instead of clearing it - KBA218861
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Version: **
Translation - Japanese: PDL 2.1.0 の Dstc_ClearDreqenbBit() 関数が DREQENB レジスタビットをクリアせずにセットしてしまいます - KBA218861 - Community Tran...
Question:
The Dstc_ClearDreqenbBit() function in Peripheral Driver Library (PDL) 2.1.0 sets the DREQENB register bit instead of clearing it. The problem is reproducible on the FM0+ and FM4 family of devices when using the DSTC driver from PDL 2.1.0. Is there a workaround?
Answer:
There is a workaround, which requires manual PDL source modification. Open the file /drivers/dstc/dstc.c and find the Dstc_ClearDreqenbBit() function. Replace the following line:
*(uint32_t*)(uint32_t)(((uint32_t)(&FM_DSTC->DREQENB0)) + ((4ul * (uint32_t)u8WordPos))) |= u32BitPosRelative;
with the line:
*(uint32_t*)(uint32_t)(((uint32_t)(&FM_DSTC->DREQENB0)) + ((4ul * (uint32_t)u8WordPos))) &= ~(u32BitPosRelative);
This problem will be corrected in the next PDL 2.x release. Contact Cypress technical support (www.cypress.com/mycases) for possible firmware updates and help with using the DREQENB register.
- Tags:
- fm0+ 32-bit arma cortexa-m0+ microcontroller (mcu) families
- fm4 32-bit arma cortexa-m4 microcontroller (mcu) families
-
This widget could not be displayed.Anonymous