Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - devnp driver for imx53: Page 1 of 5 (5 Items)
   
devnp driver for imx53  
Hi,

I am seeing corrupt packets being transmitted that I am trying to debug. About 1 in 10.

Using the driver logging, which dumps the mbuf, I see that packet data is correct.

I also added the same logging code to just before the FEC is told that the packets are ready to be transmitted.

The packets are also correct.


In transmit.c I see the lines....

  ...
  uint32_t  mbuf_phys_addr= mbuf_phys(m2);
  uint16_t  mbuf_phys_len	= m2->m_len;
					
  tx_bd->buffer = mbuf_phys_addr;
  tx_bd->length = mbuf_phys_len;
  CACHE_FLUSH(&mx51->cachectl, m2->m_data, mbuf_phys_addr, m2->m_len);
  ...


Is there any way to dump "tx_bd->buffer"? Its of type "uint32_t". How do I access this?
I have tried and I get either hangs or seg violation (possibly due to access being denied).

I see the corruption with tcp and udp packets.
The throughput is extremely low. 2-3 packets at a time.
Th network is private point to point (QNX to PC).

Any ideas. Help appreciated.

Thanks
Simon