11.04.2019 (22:58:30)
RayeR
:
Prave ze G ma to DMA prekopany, tam zadny streamy uz neexistujou, coz me dost matlo, protoze vsechny examply, co lidi resili na netu, se tykaly starsich generaci a pro G/H poradne este nikod nic nenakodil/nenasdilel.
Pochybuju, ze kuli tobe budou neco precislovavat, kdyz uz to maji nekolik mesicu takto zavedeno v Cube headerech:
stm32g071xx.h:
#define DMA1_Channel1_BASE (DMA1_BASE + 0x00000008UL)
#define DMA1_Channel2_BASE (DMA1_BASE + 0x0000001CUL)
#define DMA1_Channel3_BASE (DMA1_BASE + 0x00000030UL)
#define DMA1_Channel4_BASE (DMA1_BASE + 0x00000044UL)
#define DMA1_Channel5_BASE (DMA1_BASE + 0x00000058UL)
#define DMA1_Channel6_BASE (DMA1_BASE + 0x0000006CUL)
#define DMA1_Channel7_BASE (DMA1_BASE + 0x00000080UL)
#define DMAMUX1_Channel0_BASE (DMAMUX1_BASE)
#define DMAMUX1_Channel1_BASE (DMAMUX1_BASE + 0x00000004UL)
#define DMAMUX1_Channel2_BASE (DMAMUX1_BASE + 0x00000008UL)
#define DMAMUX1_Channel3_BASE (DMAMUX1_BASE + 0x0000000CUL)
#define DMAMUX1_Channel4_BASE (DMAMUX1_BASE + 0x00000010UL)
#define DMAMUX1_Channel5_BASE (DMAMUX1_BASE + 0x00000014UL)
#define DMAMUX1_Channel6_BASE (DMAMUX1_BASE + 0x00000018UL)
Dokumentce v datasheetu je taky kapanek zavadejici:
Channel configuration procedure
The following sequence should be followed to configure both a DMAMUX x channel and the related DMA channel y:
1.Set and configure completely the DMA channel y, except enabling the channel y.
2. Set and configure completely the related DMAMUX y channel.
3. Last, activate the DMA channel y by setting the EN bit in the DMA y channel register.
Si tam ty indicky cmoudy srovnejte, at to pisou trochu poradne a ne cut&paste...