-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Description
Operating System
Linux
Commit SHA
ALL
Board
STM32N6
Firmware
tinyusb/src/portable/synopsys/dwc2/dwc2_stm32.h
What happened ?
When I tried to open DMA, this error occurred. The specific code is:
static mem_region_t uncached_regions[] = {
// DTCM (although USB DMA can't transfer to/from DTCM)
#if CFG_TUSB_MCU == OPT_MCU_STM32H7
{.start = 0x20000000, .end = 0x2001FFFF},
#elif CFG_TUSB_MCU == OPT_MCU_STM32H7RS
// DTCM (although USB DMA can't transfer to/from DTCM)
{.start = 0x20000000, .end = 0x2002FFFF},
#elif CFG_TUSB_MCU == OPT_MCU_STM32F7
// DTCM
{.start = 0x20000000, .end = 0x2000FFFF},
#else
#error "Cache maintenance is not supported yet"
#endif
CFG_DWC2_MEM_UNCACHED_REGIONS
};However, there are indeed certain addresses in STM32N6 that cannot be accessed by USB DMA. Therefore, no error should be reported here.
How to reproduce ?
in src/portable/synopsys/dwc2/dwc2_stm32.h
#define CFG_TUD_DWC2_DMA_ENABLE 1
#define CFG_TUSB_MCU OPT_MCU_STM32N6
Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)
No debugging logs were found.
Only the aforementioned compilation errors occurred.
Screenshots
No response
I have checked existing issues, discussion and documentation
- I confirm I have checked existing issues, discussion and documentation.