This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

starterware下定时发ip包,结果cpsw的bd耗尽,请教下原因

用DMTimer定时为5ms,每次发一个以太包。

初始化一块全局变量用来当做buf,调用lwip的初始化buf的函数,和发ip包的函数,由于是自己申请的全局变量,也不会释放。

初始时显示有203个bd,也就是0xcc,发过233个包后,显示cpsw的bd耗尽,发不出去了

看了下,bd增加是在以cpsw发包的中断中。

DMTimer的定时中断优先级是0,cpsw的发包的中断的优先级也是0。把前者优先级降低,改为1后也无效。