Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

TSE SGDMA isr problem

Hello to everybody.

I have CIII 3c120 dev kit with Marvell 88e1111 PHY on it.

I want to send and receive packets, so i use TSE (mac level).

I wrote software code to transmit packet (it works) and now i try to receive packet.

TSE works with 2 sgdma rx\tx.

When a packet comes from PC it causes an interreupt and to process it there is alt_avalon_sgdma_register_callback for user application.

So i registered my isr function in it, but during the debug I can't access it.

I ping 192.168.37.5 and PC sends broadcast packets, the rx led is on when the packet is coming, but in debug mode it doesn't access the isr function.

So, are there any ideas about this problem?

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Did you do your own hardware design in the FPGA or did you use a ready made design? Are you meeting timing requirements?

    Why did you comment the line "alt_irq_enable_all(sgdma_rx_dev);" ?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It's my own design.

    Yes i met timings.

    I commented it because there were no effect of this function.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Try to put some signaltap probes on the Avalon stream interface between the MAC and the rx DMA, to see if anything is transferred. It should help you find out if the problem is on the MAC or the DMA side.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    Could you please also send the hello_world.h file?

    Thanks,

    Mangesh