STM32F1 ETHERNET

Started by tha, February 11, 2021, 08:40:30 AM

Previous topic - Next topic

tha

Ethernet DMA missed frame and buffer overflow counter register (ETH_DMAMFBOCR)

Address offset: 0x1020
Reset value: 0x0000 0000

The DMA ค้ำจุน two counters เพื่อติดตามจำนวนของ missed frames ในระหว่าง reception. register นี้รายงาน the current value ของ the counter. The counter ถูกใช้สำหรับ diagnostic purposes. Bits [15:0] แสดงให้เห็น missed frames เนื่องจาก the STM32F107xx buffer ไม่มีให้ใช้งาน (ไม่มี receive descriptor ให้ใช้งาน). Bits [27:17] แสดงให้เห็น missed frames เนื่องจาก Rx FIFO overflow conditions และ runt frames (good frames ที่น้อยกว่า 64 bytes).



Bits 31:29 Reserved, must be kept at reset value.

Bit 28 OFOC: Overflow bit for FIFO overflow counter

Bits 27:17 MFA: Missed frames by the application
แสดงให้เห็นจำนวนของ frames ที่พลาดโดย the application

Bit 16 OMFC: Overflow bit for missed frame counter

Bits 15:0 MFC: Missed frames by the controller
แสดงให้เห็นจำนวนของ frames ที่พลาดโดย the Controller เนื่องจาก the host receive buffer ไม่พร้อมให้ใช้งาน. counter นี้ถูกเพิ่มแต่ละครั้งที่ the DMA ละทิ้ง an incoming frame.

tha

Ethernet DMA current host transmit descriptor register (ETH_DMACHTDR)

Address offset: 0x1048
Reset value: 0x0000 0000

The Current host transmit descriptor register ชี้ไปยัง the start address ของ the current transmit descriptor ที่ถูกอ่านโดย the DMA.



Bits 31:0 HTDAP: Host transmit descriptor address pointer
Cleared . Pointer ที่ถูกอัปเดตโดย DMA ในระหว่าง operation.

tha

Ethernet DMA current host receive descriptor register (ETH_DMACHRDR)

Address offset: 0x104C
Reset value: 0x0000 0000

The Current host receive descriptor register ชี้ไปยัง the start address ของ the current receive descriptor ที่ถูกอ่านโดย the DMA



Bits 31:0 HRDAP: Host receive descriptor address pointer
Cleared On Reset. Pointer ที่ถูกอัปเดตโดย DMA ในระหว่าง operation.


tha

Ethernet DMA current host transmit buffer address register (ETH_DMACHTBAR)

Address offset: 0x1050
Reset value: 0x0000 0000

The Current host transmit buffer address register ชี้ไปยัง the current transmit buffer address กำลังถูกอ่านโดย the DMA.



Bits 31:0 HTBAP: Host transmit buffer address pointer
Cleared On Reset. Pointer ที่ถูกอัปเดตโดย DMA ในระหว่าง operation.

tha

Ethernet DMA current host receive buffer address register (ETH_DMACHRBAR)

Address offset: 0x1054
Reset value: 0x0000 0000

The current host receive buffer address register ชี้ไปยัง the current receive buffer address กำลังถูกอ่านโดย the DMA.



Bits 31:0 HRBAP: Host receive buffer address pointer
Cleared On Reset. Pointer ที่ถูกอัปเดตโดย DMA ในระหว่าง operation.

tha

29.8.5 Ethernet register maps

Table 218 ให้ the ETH register map และ reset values.








tha