- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
I want to use the GPIO Ports from my DE2 Board. I have UCLinux running. First I tried to get the GPIOs running with a modified hello_led. I built a system based on the DE2_NET with the SOPC Builder and generated it. Then I compiled the project in Quartus and flashed the resulting image. But after booting my running Linux, the system freezes for about half a minute and then tells me about an error in RPC Port Mapper (I have a NFS mount running in the rc script). When taking a look at the /proc/interrupts, I have seen that no interrupts are generated by the DM9000A. The USB controller generates Interrupts, and the USB memory stick (PNY Attaché 512MB) plugged in works fine. Then I took an unmodified DE2_NET, but re-generated and re-compiled it in SOPC-Builder and Quartus. I flashed the result - and the network is up again, and there are interrupts counted in /proc/interrupts. The modifications, I made: - In SOPC-Builder, I added two PIO-Ports. The first is named GPIO_0 and is output-only. The second one is named GPIO_1 and is input-only for polling (no synchronous capture, no interrupt). - In DE2_NET.v I added two lines in one module block (added lines in bold): system_0 u0 ( // 1) global signals: .clk(CPU_CLK), .clk_50(CLOCK_50), .reset_n(CPU_RESET), // the_Audio_0 .iCLK_18_4_to_the_Audio_0(CLK_18_4), .oAUD_BCK_from_the_Audio_0(AUD_BCLK), .oAUD_DATA_from_the_Audio_0(AUD_DACDAT), .oAUD_LRCK_from_the_Audio_0(AUD_DACLRCK), .oAUD_XCK_from_the_Audio_0(AUD_XCK), //gpio.out_port_from_the_gpio_0(gpio_0),
.in_port_to_the_gpio_1(gpio_1),
// the_VGA_0 .VGA_BLANK_from_the_VGA_0(VGA_BLANK), .VGA_B_from_the_VGA_0(VGA_B), .VGA_CLK_from_the_VGA_0(VGA_CLK), .VGA_G_from_the_VGA_0(VGA_G), .VGA_HS_from_the_VGA_0(VGA_HS), .VGA_R_from_the_VGA_0(VGA_R), .VGA_SYNC_from_the_VGA_0(VGA_SYNC), .VGA_VS_from_the_VGA_0(VGA_VS), .iCLK_25_to_the_VGA_0(CLK_25), (...) ); When not adding these two lines, the GPIOs won't work (warning that they have no drivers specified, the input does not react to inputs, the output does not output anything but is stuck to 0.7V) but the DM9000A does work. When adding this line, inputs and outputs will work, but I don't receive any more interrupts from the DM9000. There are some other GPIO specific lines added to the DE2_NET.v automatically by SOPC-Builder, but these two lines, I have to add manually. Any idea what is going wrong?
Link Copied
0 Replies

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