Dma transfer on S32K310

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Dma transfer on S32K310

ソリューションへジャンプ
1,357件の閲覧回数
LeoYang-
NXP Employee
NXP Employee

 while i am testing the Dma function on S32K310, i find that the destination buffer is not updated. then tried to read the Dma status, this is the value of error register.

LeoYang_0-1724320806973.png

this is how the variables initialized

LeoYang_1-1724320955411.pngLeoYang_2-1724320978675.png

 

 

0 件の賞賛
返信
1 解決策
1,325件の閲覧回数
DanNguyenDuy
NXP Employee
NXP Employee

Hi @LeoYang-,

As per the debug session that I checked with you, we can conclude that the cause is: somehow, the CH0_ES[ERR] bit was set before calling the Dma_Ip_Init() function, and after, the destination address and source address can't be written into the DADDR and SADDR registers by Dma_Ip_SetLogicChannelTransferList() function.

This is the solution: write 1 to clear the CH0_ES[ERR] bit before calling the Dma_Ip_Init() function.

Best regards,

Dan

元の投稿で解決策を見る

2 返答(返信)
1,326件の閲覧回数
DanNguyenDuy
NXP Employee
NXP Employee

Hi @LeoYang-,

As per the debug session that I checked with you, we can conclude that the cause is: somehow, the CH0_ES[ERR] bit was set before calling the Dma_Ip_Init() function, and after, the destination address and source address can't be written into the DADDR and SADDR registers by Dma_Ip_SetLogicChannelTransferList() function.

This is the solution: write 1 to clear the CH0_ES[ERR] bit before calling the Dma_Ip_Init() function.

Best regards,

Dan

1,314件の閲覧回数
LeoYang-
NXP Employee
NXP Employee
thank you, good solution!
%3CLINGO-SUB%20id%3D%22lingo-sub-1938347%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K310%E3%81%A7%E3%81%AEDma%E8%BB%A2%E9%80%81%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1938347%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ES32K310%E3%81%A7Dma%E9%96%A2%E6%95%B0%E3%82%92%E3%83%86%E3%82%B9%E3%83%88%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E3%81%A8%E3%81%8D%E3%81%AB%E3%80%81%E5%AE%9B%E5%85%88%E3%83%90%E3%83%83%E3%83%95%E3%82%A1%E3%81%8C%E6%9B%B4%E6%96%B0%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%AA%E3%81%84%E3%81%93%E3%81%A8%E3%81%8C%E3%82%8F%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%E3%81%9D%E3%81%AE%E5%BE%8C%E3%80%81Dma%E3%82%B9%E3%83%86%E3%83%BC%E3%82%BF%E3%82%B9%E3%82%92%E8%AA%AD%E3%81%BF%E5%8F%96%E3%82%8D%E3%81%86%E3%81%A8%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8C%E3%80%81%E3%81%93%E3%82%8C%E3%81%8C%E3%82%A8%E3%83%A9%E3%83%BC%E3%83%AC%E3%82%B8%E3%82%B9%E3%82%BF%E3%81%AE%E5%80%A4%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeoYang_0-1724320806973.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LeoYang_0-1724320806973.png%22%20style%3D%22width%3A%20140px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294745iDAA8FB64E4D636DC%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeoYang_0-1724320806973.png%22%20alt%3D%22LeoYang_0-1724320806973.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E3%81%93%E3%82%8C%E3%81%8C%E5%A4%89%E6%95%B0%E3%81%AE%E5%88%9D%E6%9C%9F%E5%8C%96%E6%96%B9%E6%B3%95%E3%81%A7%E3%81%99%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeoYang_1-1724320955411.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LeoYang_1-1724320955411.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294747iBD0D194661EBB30E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeoYang_1-1724320955411.png%22%20alt%3D%22LeoYang_1-1724320955411.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeoYang_2-1724320978675.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LeoYang_2-1724320978675.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294748i496B470BCB3EDF57%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeoYang_2-1724320978675.png%22%20alt%3D%22LeoYang_2-1724320978675.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1939100%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E6%97%A5%E6%99%82%3AS32K310%E4%B8%8A%E3%81%AEDMA%E8%BB%A2%E9%80%81%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1939100%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%80%81%E8%89%AF%E3%81%84%E8%A7%A3%E6%B1%BA%E7%AD%96!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1939096%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E6%97%A5%E6%99%82%3AS32K310%E4%B8%8A%E3%81%AEDMA%E8%BB%A2%E9%80%81%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1939096%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F225112%22%20target%3D%22_blank%22%3E%40LeoYang-%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22fontstyle0%22%3E%E7%A7%81%E3%81%8C%E7%A2%BA%E8%AA%8D%E3%81%97%E3%81%9F%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E3%82%BB%E3%83%83%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%AB%E3%82%88%E3%82%8B%E3%81%A8%E3%80%81%E5%8E%9F%E5%9B%A0%E3%81%AF%E3%80%81Dma_Ip_Init()%E9%96%A2%E6%95%B0%E3%82%92%E5%91%BC%E3%81%B3%E5%87%BA%E3%81%99%E5%89%8D%E3%81%ABCH0_ES%5BERR%5D%E3%83%93%E3%83%83%E3%83%88%E3%81%8C%E8%A8%AD%E5%AE%9A%E3%81%95%E3%82%8C%E3%80%81%E3%81%9D%E3%81%AE%E5%BE%8C%E3%80%81Dma_Ip_SetLogicChannelTransferList()%E9%96%A2%E6%95%B0%E3%81%AB%E3%82%88%E3%81%A3%E3%81%A6%E5%AE%9B%E5%85%88%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9%E3%81%A8%E9%80%81%E4%BF%A1%E5%85%83%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9%E3%82%92DADDR%E3%83%AC%E3%82%B8%E3%82%B9%E3%82%BF%E3%81%A8SADDR%E3%83%AC%E3%82%B8%E3%82%B9%E3%82%BF%E3%81%AB%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%82%81%E3%81%AA%E3%81%8F%E3%81%AA%E3%81%A3%E3%81%9F%E3%81%93%E3%81%A8%E3%81%A7%E3%81%82%E3%82%8B%E3%81%A8%E7%B5%90%E8%AB%96%E4%BB%98%E3%81%91%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22fontstyle0%22%3E%E3%81%93%E3%82%8C%E3%81%8C%E8%A7%A3%E6%B1%BA%E7%AD%96%E3%81%A7%E3%81%99%3A%20Dma_Ip_Init()%20%E9%96%A2%E6%95%B0%E3%82%92%E5%91%BC%E3%81%B3%E5%87%BA%E3%81%99%E5%89%8D%E3%81%AB%201%20%E3%82%92%E6%9B%B8%E3%81%84%E3%81%A6%20CH0_ES%5BERR%5D%20%E3%83%93%E3%83%83%E3%83%88%E3%82%92%E3%82%AF%E3%83%AA%E3%82%A2%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22fontstyle0%22%3E%E3%82%88%E3%82%8D%E3%81%97%E3%81%8F%E3%81%8A%E9%A1%98%E3%81%84%E3%81%84%E3%81%9F%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22fontstyle0%22%3EDan%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E