Search found 6 matches
- Fri Oct 15, 2021 7:11 am
- Forum: Hardware
- Topic: 「solved」Is there any problem with ESP32-C3 SPI running DMA function!
- Replies: 3
- Views: 5184
Re: Is there any problem with ESP32-C3 SPI running DMA function!
What ESP-IDF version are you using? If it's not the latest master, would you mind trying that to see if the issue is still there? Do you have a minimal but complete project you can share so we can quickly replicate your problems?
Thank you very much, the problem has been solved!
This is a ...
- Fri Oct 15, 2021 7:08 am
- Forum: 硬件问题讨论
- Topic: [已解决」C3 SPI 运行 DMA 功能是否有问题!
- Replies: 4
- Views: 11891
Re: C3 SPI 运行 DMA 功能是否有问题!
Hi, 从观察到的情况看,似乎通过 DMA 读取 64bytes 数据出错时,只正确读到了第一个字节,后面的数据是重复的。从你的示例看是 SPI 与 网卡进行通信,你能否试一下两个 C3 进行通信,看看是否有问题,这样能确定问题是 SPI 驱动的问题还是网卡这边驱动的问题
十分感谢你的回讯!
刚刚已解决问题了,问题是 SDK V4.3.1 的问题! 出错点不知在何处! 重新下载了 master 重新测试过,就一切正常了! 测试速度也由 10Mbps -> 15Mbps 以上了!
mode=tcp-client sip=192.168.123.167:5001, dip ...
- Fri Oct 15, 2021 1:34 am
- Forum: 硬件问题讨论
- Topic: [已解决」C3 SPI 运行 DMA 功能是否有问题!
- Replies: 4
- Views: 11891
Re: C3 SPI 运行 DMA 功能是否有问题!
Hi, 从观察到的情况看,似乎通过 DMA 读取 64bytes 数据出错时,只正确读到了第一个字节,后面的数据是重复的。从你的示例看是 SPI 与 网卡进行通信,你能否试一下两个 C3 进行通信,看看是否有问题,这样能确定问题是 SPI 驱动的问题还是网卡这边驱动的问题
我手上只有一片 C3 ,此段代码是放在 dm9051 的 init 段之前,也就是把 dm9051 当做一个 ram 读写使用!
同样的代码在 S2 上运行是正常的,不管 DMA 长度為多少! (也使用 64byte 区块读写测试过)
我用 64byte 是因為 c3 非使用 dma 模式时,只能使用 ...
- Thu Oct 14, 2021 7:13 am
- Forum: Hardware
- Topic: 「solved」Is there any problem with ESP32-C3 SPI running DMA function!
- Replies: 3
- Views: 5184
「solved」Is there any problem with ESP32-C3 SPI running DMA function!
I recently purchased ESP32-c3 for testing and found a strange problem!
After the DMA function of SPI is enabled, SPI will go wrong in a very strange way at this time!
(1) Do not use DMA, SPI reads and writes normally with a length of 64 bytes
(2) DMA is enabled, there is no limit to the size of ...
After the DMA function of SPI is enabled, SPI will go wrong in a very strange way at this time!
(1) Do not use DMA, SPI reads and writes normally with a length of 64 bytes
(2) DMA is enabled, there is no limit to the size of ...
- Thu Oct 14, 2021 3:29 am
- Forum: 硬件问题讨论
- Topic: [已解决」C3 SPI 运行 DMA 功能是否有问题!
- Replies: 4
- Views: 11891
Re: C3 SPI 运行 DMA 功能是否有问题!
参考资料! 使用 IDF v4.3.1
--- idf_monitor on com3 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ESP-ROM:esp32c3-20200918
Build:Sep 18 2020
rst:0x1 (POWERON),boot:0xd (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x17c4
load:0x403ce000,len ...
--- idf_monitor on com3 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ESP-ROM:esp32c3-20200918
Build:Sep 18 2020
rst:0x1 (POWERON),boot:0xd (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x17c4
load:0x403ce000,len ...
- Wed Oct 13, 2021 8:47 am
- Forum: 硬件问题讨论
- Topic: [已解决」C3 SPI 运行 DMA 功能是否有问题!
- Replies: 4
- Views: 11891
[已解决」C3 SPI 运行 DMA 功能是否有问题!
最近购买了 c3 进行测试,发现了一个奇怪的问题!
当 SPI 啟用的 DMA 功能之后, 此时 SPI 会以十分怪异的方式出错!
(1) 不使用 DMA , SPI 以长度 64byte 读写正常
(2) 啟用 DMA , 写入不限制大小, 读取使用 FIFO 一个 byte 读取,读写正常
(3) 啟用 DMA , 读取不限制大小, 写入使用 FIFO 一个 byte 读取,读写正常
(4) 啟用 DMA , 读写不限制大小,此时读取正常,但是写入的资料第一笔正常 (350byte) , 之后所有的资料,出现了错误 了。 但是此时若是有用 SPI FIFO 方式的写入 (一个 ...
当 SPI 啟用的 DMA 功能之后, 此时 SPI 会以十分怪异的方式出错!
(1) 不使用 DMA , SPI 以长度 64byte 读写正常
(2) 啟用 DMA , 写入不限制大小, 读取使用 FIFO 一个 byte 读取,读写正常
(3) 啟用 DMA , 读取不限制大小, 写入使用 FIFO 一个 byte 读取,读写正常
(4) 啟用 DMA , 读写不限制大小,此时读取正常,但是写入的资料第一笔正常 (350byte) , 之后所有的资料,出现了错误 了。 但是此时若是有用 SPI FIFO 方式的写入 (一个 ...