- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Friend's
i am using DE2_115 board and over that i am running simple socket server example, i just strip out LED and 7-Seg Show Task's from my Code and compile it but when i run this peace of code, it stuck after display "simple socket server starting up". nothing else happen afterword. regards kaushalLink Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You must write 1 to the edge capture bit in order to clear irq.
Then the correct command in irq handler should be: IOWR_ALTERA_AVALON_PIO_EDGE_CAP(LOAD_BASE, 1); Probably the problem is simply here: irq is not cleared, thus keeps on retriggering and your code gets stuck.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- You must write 1 to the edge capture bit in order to clear irq. Then the correct command in irq handler should be: IOWR_ALTERA_AVALON_PIO_EDGE_CAP(LOAD_BASE, 1); Probably the problem is simply here: irq is not cleared, thus keeps on retriggering and your code gets stuck. --- Quote End --- Hello Cris72, I have do the change as you suggest, but it stiil stuck at same place....no change ...!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, I suggested IOWR_ALTERA_AVALON_PIO_EDGE_CAP(LOAD_BASE, 1)
but actually you should use IOWR_ALTERA_AVALON_PIO_EDGE_CAP(LOAD_BASE, 0xf) since I see you are using all 4 PIO inputs and the previous one would reset only irq for first button. This must be changed both in irq handler and before alt_ic_isr_register calls. Let me know if this way it works- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Cris72,
I have put IOWR_ALTERA_AVALON_PIO_EDGE_CAP(LOAD_BASE, 0xf) , but still it stuck at same point......!!! but when i increase the data cache from 8 kb to 32 kb it start working and come up to my code area. still it is not taking interrupt. please look at the print screen of my project. regards kaushal- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i am taking LOAD pulse as an interrupt

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page