Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN,
Hello,
we need to use DMA channels in the chain . For example, to use DMA_CH1 to trigger DMA_CH2. It is easy, we set this chain in DMA control packet.
To make it works we must enable HW triggering for DMA_CH2. But this chain isn't the only one that can make a trigger. Second source depends on setting of DMA Request Assignment Register (DREQASI_x).
Problem is that this code is independent module and we can't tell which DMA Request HW line isn't used.
By my observation it could be solved by setting unused DMA request line to this like
dmaReqAssign(DMA_CH2, 63); // HalCoGen syntax to set DREQASI0 register as 63
Problem is that I don't know if this setting is valid. There is no information about setting outside range specified on SPNS195C chapter 6.17.3 Default DMA Request Map (range DMAREQ[0] - DMAREQ[47])
Best regards, Jiri Dobry
PS: SPNU563 technical reference manual chapter 20.3.1.13 DMA Request Assignment Register 0 (DREQASI0) contain bug. Valid channel setting is 0x00-0x1F. But 32-47 is valid setting too (SPNS195C chapter 6.17.3 Default DMA Request Map)