On Nov 27, 6:24=A0pm, bish <bishes...@gmail.com> wrote:> On Nov 27, 10:08=A0pm, bish <bishes...@gmail.com> wrote: > > > > > > > On Nov 27, 6:14=A0am, Bryan <bryan.fletc...@avnet.com> wrote: > > > > Not sure what the problem is with your code. =A0Here's an example wit=h> > > one timer. =A0It's 10.1, but there weren't any changes in the interru=pt> > > stuff between 9.2 and 10.1 (so I'm told). =A0This is based on a lab f=rom> > > one of Avnet's Speedway trainings. =A0I ran it on the Xilinx Spartan-=3A> > > DSP 1800A Starter and verified that the interrupts are indeed > > > happening. =A0There is a bit file in the project directory if you don='t> > > want to rebuild the project. > > > > Bryan > > > > The following file has been made available for you to download from > > > Avnet's File Transfer web site:http://xfer.avnet.com/uploads/Xil3S180=0ADSP_Interrupt_v10.1.03.zip> > > I downloaded the timer_interrupt.bit file into FPGA using impact, the > > timer example worked FINE. > > It generated the required output and interrrupt was working. BUT > > > I could not use the system.xmp present inhttp://xfer.avnet.com/uploads/=Xil3S1800ADSP_Interrupt_v10.1.03.zip> > because > > I have edk 9.2i, but it was developed with later version of edk. > > > And here is the mysterious problem yet to be solved!! > > So I developed a base system and used xps interrupt controller and > > timer. The MHS file is: > > > # > > #######################################################################=####=AD=AD###> > # Created by Base System Builder Wizard for Xilinx EDK 9.2 Build > > EDK_Jm.16 > > # Sun Nov 16 21:24:15 2008 > > # Target Board: =A0Xilinx Spartan-3A DSP 1800A Starter Board Rev 1 > > # Family: =A0 =A0 =A0 =A0spartan3adsp > > # Device: =A0 =A0 =A0 =A0xc3sd1800a > > # Package: =A0 =A0 =A0 fg676 > > # Speed Grade: =A0 -4 > > # Processor: microblaze_0 > > # System clock frequency: 62.000000 MHz > > # On Chip Memory : =A0 8 KB > > # > > #######################################################################=####=AD=AD###> > =A0PARAMETER VERSION =3D 2.1.0 > > > =A0PORT fpga_0_RS232_Uart_1_RX_pin =3D fpga_0_RS232_Uart_1_RX, DIR =3D =I> > =A0PORT fpga_0_RS232_Uart_1_TX_pin =3D fpga_0_RS232_Uart_1_TX, DIR =3D =O> > =A0PORT sys_clk_pin =3D dcm_clk_s, DIR =3D I, SIGIS =3D CLK, CLK_FREQ ==3D> > 125000000 > > =A0PORT sys_rst_pin =3D sys_rst_s, DIR =3D I, RST_POLARITY =3D 0, SIGIS==3D RST> > =A0PORT dip_GPIO_in_pin =3D dip_GPIO_in, DIR =3D I, VEC =3D [0:7] > > =A0PORT push_GPIO_in_pin =3D push_GPIO_in, DIR =3D I, VEC =3D [0:3] > > =A0PORT led_GPIO_IO_pin =3D led_GPIO_IO, DIR =3D IO, VEC =3D [0:7] > > > BEGIN microblaze > > =A0PARAMETER HW_VER =3D 7.00.a > > =A0PARAMETER INSTANCE =3D microblaze_0 > > =A0PARAMETER C_INTERCONNECT =3D 1 > > =A0PARAMETER C_DEBUG_ENABLED =3D 1 > > =A0PARAMETER C_AREA_OPTIMIZED =3D 1 > > =A0BUS_INTERFACE DLMB =3D dlmb > > =A0BUS_INTERFACE ILMB =3D ilmb > > =A0BUS_INTERFACE DPLB =3D mb_plb > > =A0BUS_INTERFACE IPLB =3D mb_plb > > =A0BUS_INTERFACE DEBUG =3D microblaze_0_dbg > > =A0PORT RESET =3D mb_reset > > =A0PORT INTERRUPT =3D Interrupt > > END > > > BEGIN plb_v46 > > =A0PARAMETER INSTANCE =3D mb_plb > > =A0PARAMETER HW_VER =3D 1.00.a > > =A0PORT PLB_Clk =3D sys_clk_s > > =A0PORT SYS_Rst =3D sys_bus_reset > > END > > > BEGIN lmb_v10 > > =A0PARAMETER INSTANCE =3D ilmb > > =A0PARAMETER HW_VER =3D 1.00.a > > =A0PORT LMB_Clk =3D sys_clk_s > > =A0PORT SYS_Rst =3D sys_bus_reset > > END > > > BEGIN lmb_v10 > > =A0PARAMETER INSTANCE =3D dlmb > > =A0PARAMETER HW_VER =3D 1.00.a > > =A0PORT LMB_Clk =3D sys_clk_s > > =A0PORT SYS_Rst =3D sys_bus_reset > > END > > > BEGIN lmb_bram_if_cntlr > > =A0PARAMETER INSTANCE =3D dlmb_cntlr > > =A0PARAMETER HW_VER =3D 2.10.a > > =A0PARAMETER C_BASEADDR =3D 0x00000000 > > =A0PARAMETER C_HIGHADDR =3D 0x00003fff > > =A0BUS_INTERFACE SLMB =3D dlmb > > =A0BUS_INTERFACE BRAM_PORT =3D dlmb_port > > END > > > BEGIN lmb_bram_if_cntlr > > =A0PARAMETER INSTANCE =3D ilmb_cntlr > > =A0PARAMETER HW_VER =3D 2.10.a > > =A0PARAMETER C_BASEADDR =3D 0x00000000 > > =A0PARAMETER C_HIGHADDR =3D 0x00003fff > > =A0BUS_INTERFACE SLMB =3D ilmb > > =A0BUS_INTERFACE BRAM_PORT =3D ilmb_port > > END > > > BEGIN bram_block > > =A0PARAMETER INSTANCE =3D lmb_bram > > =A0PARAMETER HW_VER =3D 1.00.a > > =A0BUS_INTERFACE PORTA =3D ilmb_port > > =A0BUS_INTERFACE PORTB =3D dlmb_port > > END > > > BEGIN xps_uartlite > > =A0PARAMETER INSTANCE =3D RS232_Uart_1 > > =A0PARAMETER HW_VER =3D 1.00.a > > =A0PARAMETER C_BAUDRATE =3D 115200 > > =A0PARAMETER C_ODD_PARITY =3D 0 > > =A0PARAMETER C_USE_PARITY =3D 0 > > =A0PARAMETER C_SPLB_CLK_FREQ_HZ =3D 62500000 > > =A0PARAMETER C_BASEADDR =3D 0x84000000 > > =A0PARAMETER C_HIGHADDR =3D 0x8400ffff > > =A0BUS_INTERFACE SPLB =3D mb_plb > > =A0PORT RX =3D fpga_0_RS232_Uart_1_RX > > =A0PORT TX =3D fpga_0_RS232_Uart_1_TX > > END > > > BEGIN clock_generator > > =A0PARAMETER INSTANCE =3D clock_generator_0 > > =A0PARAMETER HW_VER =3D 1.00.a > > =A0PARAMETER C_EXT_RESET_HIGH =3D 1 > > =A0PARAMETER C_CLKIN_FREQ =3D 125000000 > > =A0PARAMETER C_CLKOUT0_FREQ =3D 62500000 > > =A0PARAMETER C_CLKOUT0_PHASE =3D 0 > > =A0PARAMETER C_CLKOUT0_GROUP =3D NONE > > =A0PORT CLKOUT0 =3D sys_clk_s > > =A0PORT CLKIN =3D dcm_clk_s > > =A0PORT LOCKED =3D Dcm_all_locked > > =A0PORT RST =3D net_gnd > > END > > > BEGIN mdm > > =A0PARAMETER INSTANCE =3D debug_module > > =A0PARAMETER HW_VER =3D 1.00.a > > =A0PARAMETER C_MB_DBG_PORTS =3D 1 > > =A0PARAMETER C_USE_UART =3D 1 > > =A0PARAMETER C_UART_WIDTH =3D 8 > > =A0PARAMETER C_BASEADDR =3D 0x84400000 > > =A0PARAMETER C_HIGHADDR =3D 0x8440ffff > > =A0BUS_INTERFACE SPLB =3D mb_plb > > =A0BUS_INTERFACE MBDEBUG_0 =3D microblaze_0_dbg > > =A0PORT Debug_SYS_Rst =3D Debug_SYS_Rst > > END > > > BEGIN proc_sys_reset > > =A0PARAMETER INSTANCE =3D proc_sys_reset_0 > > =A0PARAMETER HW_VER =3D 2.00.a > > =A0PARAMETER C_EXT_RESET_HIGH =3D 0 > > =A0PORT Slowest_sync_clk =3D sys_clk_s > > =A0PORT Dcm_locked =3D Dcm_all_locked > > =A0PORT Ext_Reset_In =3D sys_rst_s > > =A0PORT MB_Reset =3D mb_reset > > =A0PORT Bus_Struct_Reset =3D sys_bus_reset > > =A0PORT MB_Debug_Sys_Rst =3D Debug_SYS_Rst > > END > > > BEGIN xps_gpio > > =A0PARAMETER INSTANCE =3D push > > =A0PARAMETER HW_VER =3D 1.00.a > > =A0PARAMETER C_GPIO_WIDTH =3D 4 > > =A0PARAMETER C_ALL_INPUTS =3D 1 > > =A0PARAMETER C_IS_BIDIR =3D 0 > > =A0PARAMETER C_BASEADDR =3D 0x8141c200 > > =A0PARAMETER C_HIGHADDR =3D 0x8141c3ff > > =A0BUS_INTERFACE SPLB =3D mb_plb > > =A0PORT GPIO_in =3D push_GPIO_in > > END > > > BEGIN xps_gpio > > =A0PARAMETER INSTANCE =3D dip > > =A0PARAMETER HW_VER =3D 1.00.a > > =A0PARAMETER C_GPIO_WIDTH =3D 8 > > =A0PARAMETER C_ALL_INPUTS =3D 1 > > =A0PARAMETER C_IS_BIDIR =3D 0 > > =A0PARAMETER C_BASEADDR =3D 0x81420000 > > =A0PARAMETER C_HIGHADDR =3D 0x8142ffff > > =A0BUS_INTERFACE SPLB =3D mb_plb > > =A0PORT GPIO_in =3D dip_GPIO_in > > END > > > BEGIN xps_gpio > > =A0PARAMETER INSTANCE =3D led > > =A0PARAMETER HW_VER =3D 1.00.a > > =A0PARAMETER C_GPIO_WIDTH =3D 8 > > =A0PARAMETER C_IS_BIDIR =3D 0 > > =A0PARAMETER C_BASEADDR =3D 0x81400000 > > =A0PARAMETER C_HIGHADDR =3D 0x8140ffff > > =A0BUS_INTERFACE SPLB =3D mb_plb > > =A0PORT GPIO_IO =3D led_GPIO_IO > > END > > > BEGIN xps_timer > > =A0PARAMETER INSTANCE =3D xps_timer_0 > > =A0PARAMETER HW_VER =3D 1.00.a > > =A0PARAMETER C_BASEADDR =3D 0x81418000 > > =A0PARAMETER C_HIGHADDR =3D 0x814181ff > > =A0PARAMETER C_ONE_TIMER_ONLY =3D 1 > > =A0BUS_INTERFACE SPLB =3D mb_plb > > =A0PORT Interrupt =3D xps_timer_0_Interrupt > > END > > > BEGIN xps_intc > > =A0PARAMETER INSTANCE =3D xps_intc_0 > > =A0PARAMETER HW_VER =3D 1.00.a > > =A0PARAMETER C_BASEADDR =3D 0x81414000 > > =A0PARAMETER C_HIGHADDR =3D 0x814141ff > > =A0BUS_INTERFACE SPLB =3D mb_plb > > =A0PORT Irq =3D Interrupt > > =A0PORT Intr =3D xps_timer_0_Interrupt > > END > > > In xps_intc I have connected only timer interrupt to its Intr pin and > > other interrupts like > > from push buttons and other are NOT CONNECTED. > > In the configure ip.. option for xps interrupt controller I could not > change the no. of interrupt inputs (by default it is 2), as it is set > to 2 and disabled. > So I used two timers and connected interrupt pins of these timers to > interrupt controller just make intr inputs 2. Then again I checked > with the "timer.c" file from the link, and still the same result: > Timer example failed !!! > > This has already taken so many days and problem is becoming more > mysterious (but frustrating)!!! > > > > > Then I used "timer.c" provided in the link (I have not used external > > DDR2 SDRAM), and the result: > > > Starting Timer example > > Timer example FAILED > > > So, I am really confused here!! > > > > Click on the hyperlink or enter this URL into your web browser to > > > retrieve the file. > > > This file will remain on the server for approximately 5 days from the > > > date of the upload at which time it will be deleted. =A0Please be sur=e> > > to download it before the expiration time. > > > This file will expire on Dec =A01, 2008. > > > > File Size: 232357 Bytes > > > > On Nov 26, 12:22=A0am, bish <bishes...@gmail.com> wrote: > > > > > On Nov 26, 4:58=A0am, David <simianfe...@gmail.com> wrote: > > > > > > On Nov 26, 2:37=A0am, bish <bishes...@gmail.com> wrote: > > > > > > > On Nov 25, 12:25=A0pm, Matthias Alles <REMOVEallesCAPIT...@NOei=t.SPAMuni-> > > > > > > kl.de> wrote: > > > > > > > Hi! > > > > > > > > I wonder, whether "one_second_flag" is declared as volatile? =If not, the> > > > > > > compiler optimizes your if-statement in the while(1) loop awa=y. You can> > > > > > > check this by using mb-objdump. > > > > > > > I tried using the volatile for one_second_flag, still it does n=ot> > > > > > work. It just prints "the value of count =3D 1" once in termina=l and> > > > > > nothing happens then. > > > > > > > > Cheers, > > > > > > > Matthias > > > > > > > > bish schrieb: > > > > > > > > > I am trying to use a timer for regular interrupt in microbl=aze. I am> > > > > > > > using edk 9.2i and spartan 3a dsp 1800a. > > > > > > > > Even following a simple lab example widely used by beginner=s didn't> > > > > > > > work:http://users.utcluj.ro/~baruch/ssce/labor/EDK-L5-e.pdf > > > > > > > > > I have connected all the interrupt ports correctly as evide=nt from the> > > > > > > > following portion of the mhs file: > > > > > > > > BEGIN microblaze > > > > > > > > =A0PARAMETER HW_VER =3D 7.00.a > > > > > > > > ........... > > > > > > > > ........... > > > > > > > > PORT INTERRUPT =3D interrupt > > > > > > > > END > > > > > > > > > BEGIN xps_timer > > > > > > > > =A0PARAMETER INSTANCE =3D delay > > > > > > > > =A0PARAMETER HW_VER =3D 1.00.a > > > > > > > > =A0PARAMETER C_ONE_TIMER_ONLY =3D 1 > > > > > > > > =A0PARAMETER C_BASEADDR =3D 0x8141c200 > > > > > > > > =A0PARAMETER C_HIGHADDR =3D 0x8141c3ff > > > > > > > > =A0BUS_INTERFACE SPLB =3D mb_plb > > > > > > > > =A0PORT Interrupt =3D timer1 > > > > > > > > =A0PORT CaptureTrig0 =3D net_gnd > > > > > > > > END > > > > > > > > > BEGIN xps_intc > > > > > > > > =A0PARAMETER INSTANCE =3D xps_intc_0 > > ... > > read more =BB- Hide quoted text - > > - Show quoted text -- Hide quoted text - > > - Show quoted text -Hi, What compilator options do you use when compiling timer.c? Can you email me the .elf file? G=F6ran
timer interrupt problem: microblaze
Started by ●November 24, 2008
Reply by ●November 28, 20082008-11-28
Reply by ●November 28, 20082008-11-28
On Nov 28, 2:01=A0pm, Goran_Bilski <goran.bil...@xilinx.com> wrote:> On Nov 27, 6:24=A0pm, bish <bishes...@gmail.com> wrote: > > > On Nov 27, 10:08=A0pm, bish <bishes...@gmail.com> wrote: > > > > On Nov 27, 6:14=A0am, Bryan <bryan.fletc...@avnet.com> wrote: > > > > > Not sure what the problem is with your code. =A0Here's an example w=ith> > > > one timer. =A0It's 10.1, but there weren't any changes in the inter=rupt> > > > stuff between 9.2 and 10.1 (so I'm told). =A0This is based on a lab=from> > > > one of Avnet's Speedway trainings. =A0I ran it on the Xilinx Sparta=n-3A> > > > DSP 1800A Starter and verified that the interrupts are indeed > > > > happening. =A0There is a bit file in the project directory if you d=on't> > > > want to rebuild the project. > > > > > Bryan > > > > > The following file has been made available for you to download from > > > > Avnet's File Transfer web site:http://xfer.avnet.com/uploads/Xil3S1=800ADSP_Interrupt_v10.1.03.zip> > > > I downloaded the timer_interrupt.bit file into FPGA using impact, the > > > timer example worked FINE. > > > It generated the required output and interrrupt was working. BUT > > > > I could not use the system.xmp present inhttp://xfer.avnet.com/upload=s/Xil3S1800ADSP_Interrupt_v10.1.03.zip> > > because > > > I have edk 9.2i, but it was developed with later version of edk. > > > > And here is the mysterious problem yet to be solved!! > > > So I developed a base system and used xps interrupt controller and > > > timer. The MHS file is: > > > > # > > > #####################################################################=######=AD=AD=AD###> > > # Created by Base System Builder Wizard for Xilinx EDK 9.2 Build > > > EDK_Jm.16 > > > # Sun Nov 16 21:24:15 2008 > > > # Target Board: =A0Xilinx Spartan-3A DSP 1800A Starter Board Rev 1 > > > # Family: =A0 =A0 =A0 =A0spartan3adsp > > > # Device: =A0 =A0 =A0 =A0xc3sd1800a > > > # Package: =A0 =A0 =A0 fg676 > > > # Speed Grade: =A0 -4 > > > # Processor: microblaze_0 > > > # System clock frequency: 62.000000 MHz > > > # On Chip Memory : =A0 8 KB > > > # > > > #####################################################################=######=AD=AD=AD###> > > =A0PARAMETER VERSION =3D 2.1.0 > > > > =A0PORT fpga_0_RS232_Uart_1_RX_pin =3D fpga_0_RS232_Uart_1_RX, DIR ==3D I> > > =A0PORT fpga_0_RS232_Uart_1_TX_pin =3D fpga_0_RS232_Uart_1_TX, DIR ==3D O> > > =A0PORT sys_clk_pin =3D dcm_clk_s, DIR =3D I, SIGIS =3D CLK, CLK_FREQ==3D> > > 125000000 > > > =A0PORT sys_rst_pin =3D sys_rst_s, DIR =3D I, RST_POLARITY =3D 0, SIG=IS =3D RST> > > =A0PORT dip_GPIO_in_pin =3D dip_GPIO_in, DIR =3D I, VEC =3D [0:7] > > > =A0PORT push_GPIO_in_pin =3D push_GPIO_in, DIR =3D I, VEC =3D [0:3] > > > =A0PORT led_GPIO_IO_pin =3D led_GPIO_IO, DIR =3D IO, VEC =3D [0:7] > > > > BEGIN microblaze > > > =A0PARAMETER HW_VER =3D 7.00.a > > > =A0PARAMETER INSTANCE =3D microblaze_0 > > > =A0PARAMETER C_INTERCONNECT =3D 1 > > > =A0PARAMETER C_DEBUG_ENABLED =3D 1 > > > =A0PARAMETER C_AREA_OPTIMIZED =3D 1 > > > =A0BUS_INTERFACE DLMB =3D dlmb > > > =A0BUS_INTERFACE ILMB =3D ilmb > > > =A0BUS_INTERFACE DPLB =3D mb_plb > > > =A0BUS_INTERFACE IPLB =3D mb_plb > > > =A0BUS_INTERFACE DEBUG =3D microblaze_0_dbg > > > =A0PORT RESET =3D mb_reset > > > =A0PORT INTERRUPT =3D Interrupt > > > END > > > > BEGIN plb_v46 > > > =A0PARAMETER INSTANCE =3D mb_plb > > > =A0PARAMETER HW_VER =3D 1.00.a > > > =A0PORT PLB_Clk =3D sys_clk_s > > > =A0PORT SYS_Rst =3D sys_bus_reset > > > END > > > > BEGIN lmb_v10 > > > =A0PARAMETER INSTANCE =3D ilmb > > > =A0PARAMETER HW_VER =3D 1.00.a > > > =A0PORT LMB_Clk =3D sys_clk_s > > > =A0PORT SYS_Rst =3D sys_bus_reset > > > END > > > > BEGIN lmb_v10 > > > =A0PARAMETER INSTANCE =3D dlmb > > > =A0PARAMETER HW_VER =3D 1.00.a > > > =A0PORT LMB_Clk =3D sys_clk_s > > > =A0PORT SYS_Rst =3D sys_bus_reset > > > END > > > > BEGIN lmb_bram_if_cntlr > > > =A0PARAMETER INSTANCE =3D dlmb_cntlr > > > =A0PARAMETER HW_VER =3D 2.10.a > > > =A0PARAMETER C_BASEADDR =3D 0x00000000 > > > =A0PARAMETER C_HIGHADDR =3D 0x00003fff > > > =A0BUS_INTERFACE SLMB =3D dlmb > > > =A0BUS_INTERFACE BRAM_PORT =3D dlmb_port > > > END > > > > BEGIN lmb_bram_if_cntlr > > > =A0PARAMETER INSTANCE =3D ilmb_cntlr > > > =A0PARAMETER HW_VER =3D 2.10.a > > > =A0PARAMETER C_BASEADDR =3D 0x00000000 > > > =A0PARAMETER C_HIGHADDR =3D 0x00003fff > > > =A0BUS_INTERFACE SLMB =3D ilmb > > > =A0BUS_INTERFACE BRAM_PORT =3D ilmb_port > > > END > > > > BEGIN bram_block > > > =A0PARAMETER INSTANCE =3D lmb_bram > > > =A0PARAMETER HW_VER =3D 1.00.a > > > =A0BUS_INTERFACE PORTA =3D ilmb_port > > > =A0BUS_INTERFACE PORTB =3D dlmb_port > > > END > > > > BEGIN xps_uartlite > > > =A0PARAMETER INSTANCE =3D RS232_Uart_1 > > > =A0PARAMETER HW_VER =3D 1.00.a > > > =A0PARAMETER C_BAUDRATE =3D 115200 > > > =A0PARAMETER C_ODD_PARITY =3D 0 > > > =A0PARAMETER C_USE_PARITY =3D 0 > > > =A0PARAMETER C_SPLB_CLK_FREQ_HZ =3D 62500000 > > > =A0PARAMETER C_BASEADDR =3D 0x84000000 > > > =A0PARAMETER C_HIGHADDR =3D 0x8400ffff > > > =A0BUS_INTERFACE SPLB =3D mb_plb > > > =A0PORT RX =3D fpga_0_RS232_Uart_1_RX > > > =A0PORT TX =3D fpga_0_RS232_Uart_1_TX > > > END > > > > BEGIN clock_generator > > > =A0PARAMETER INSTANCE =3D clock_generator_0 > > > =A0PARAMETER HW_VER =3D 1.00.a > > > =A0PARAMETER C_EXT_RESET_HIGH =3D 1 > > > =A0PARAMETER C_CLKIN_FREQ =3D 125000000 > > > =A0PARAMETER C_CLKOUT0_FREQ =3D 62500000 > > > =A0PARAMETER C_CLKOUT0_PHASE =3D 0 > > > =A0PARAMETER C_CLKOUT0_GROUP =3D NONE > > > =A0PORT CLKOUT0 =3D sys_clk_s > > > =A0PORT CLKIN =3D dcm_clk_s > > > =A0PORT LOCKED =3D Dcm_all_locked > > > =A0PORT RST =3D net_gnd > > > END > > > > BEGIN mdm > > > =A0PARAMETER INSTANCE =3D debug_module > > > =A0PARAMETER HW_VER =3D 1.00.a > > > =A0PARAMETER C_MB_DBG_PORTS =3D 1 > > > =A0PARAMETER C_USE_UART =3D 1 > > > =A0PARAMETER C_UART_WIDTH =3D 8 > > > =A0PARAMETER C_BASEADDR =3D 0x84400000 > > > =A0PARAMETER C_HIGHADDR =3D 0x8440ffff > > > =A0BUS_INTERFACE SPLB =3D mb_plb > > > =A0BUS_INTERFACE MBDEBUG_0 =3D microblaze_0_dbg > > > =A0PORT Debug_SYS_Rst =3D Debug_SYS_Rst > > > END > > > > BEGIN proc_sys_reset > > > =A0PARAMETER INSTANCE =3D proc_sys_reset_0 > > > =A0PARAMETER HW_VER =3D 2.00.a > > > =A0PARAMETER C_EXT_RESET_HIGH =3D 0 > > > =A0PORT Slowest_sync_clk =3D sys_clk_s > > > =A0PORT Dcm_locked =3D Dcm_all_locked > > > =A0PORT Ext_Reset_In =3D sys_rst_s > > > =A0PORT MB_Reset =3D mb_reset > > > =A0PORT Bus_Struct_Reset =3D sys_bus_reset > > > =A0PORT MB_Debug_Sys_Rst =3D Debug_SYS_Rst > > > END > > > > BEGIN xps_gpio > > > =A0PARAMETER INSTANCE =3D push > > > =A0PARAMETER HW_VER =3D 1.00.a > > > =A0PARAMETER C_GPIO_WIDTH =3D 4 > > > =A0PARAMETER C_ALL_INPUTS =3D 1 > > > =A0PARAMETER C_IS_BIDIR =3D 0 > > > =A0PARAMETER C_BASEADDR =3D 0x8141c200 > > > =A0PARAMETER C_HIGHADDR =3D 0x8141c3ff > > > =A0BUS_INTERFACE SPLB =3D mb_plb > > > =A0PORT GPIO_in =3D push_GPIO_in > > > END > > > > BEGIN xps_gpio > > > =A0PARAMETER INSTANCE =3D dip > > > =A0PARAMETER HW_VER =3D 1.00.a > > > =A0PARAMETER C_GPIO_WIDTH =3D 8 > > > =A0PARAMETER C_ALL_INPUTS =3D 1 > > > =A0PARAMETER C_IS_BIDIR =3D 0 > > > =A0PARAMETER C_BASEADDR =3D 0x81420000 > > > =A0PARAMETER C_HIGHADDR =3D 0x8142ffff > > > =A0BUS_INTERFACE SPLB =3D mb_plb > > > =A0PORT GPIO_in =3D dip_GPIO_in > > > END > > > > BEGIN xps_gpio > > > =A0PARAMETER INSTANCE =3D led > > > =A0PARAMETER HW_VER =3D 1.00.a > > > =A0PARAMETER C_GPIO_WIDTH =3D 8 > > > =A0PARAMETER C_IS_BIDIR =3D 0 > > > =A0PARAMETER C_BASEADDR =3D 0x81400000 > > > =A0PARAMETER C_HIGHADDR =3D 0x8140ffff > > > =A0BUS_INTERFACE SPLB =3D mb_plb > > > =A0PORT GPIO_IO =3D led_GPIO_IO > > > END > > > > BEGIN xps_timer > > > =A0PARAMETER INSTANCE =3D xps_timer_0 > > > =A0PARAMETER HW_VER =3D 1.00.a > > > =A0PARAMETER C_BASEADDR =3D 0x81418000 > > > =A0PARAMETER C_HIGHADDR =3D 0x814181ff > > > =A0PARAMETER C_ONE_TIMER_ONLY =3D 1 > > > =A0BUS_INTERFACE SPLB =3D mb_plb > > > =A0PORT Interrupt =3D xps_timer_0_Interrupt > > > END > > > > BEGIN xps_intc > > > =A0PARAMETER INSTANCE =3D xps_intc_0 > > > =A0PARAMETER HW_VER =3D 1.00.a > > > =A0PARAMETER C_BASEADDR =3D 0x81414000 > > > =A0PARAMETER C_HIGHADDR =3D 0x814141ff > > > =A0BUS_INTERFACE SPLB =3D mb_plb > > > =A0PORT Irq =3D Interrupt > > > =A0PORT Intr =3D xps_timer_0_Interrupt > > > END > > > > In xps_intc I have connected only timer interrupt to its Intr pin and > > > other interrupts like > > > from push buttons and other are NOT CONNECTED. > > > In the configure ip.. option for xps interrupt controller I could not > > change the no. of interrupt inputs (by default it is 2), as it is set > > to 2 and disabled. > > So I used two timers and connected interrupt pins of these timers to > > interrupt controller just make intr inputs 2. Then again I checked > > with the "timer.c" file from the link, and still the same result: > > Timer example failed !!! > > > This has already taken so many days and problem is becoming more > > mysterious (but frustrating)!!! > > > > Then I used "timer.c" provided in the link (I have not used external > > > DDR2 SDRAM), and the result: > > > > Starting Timer example > > > Timer example FAILED > > > > So, I am really confused here!! > > > > > Click on the hyperlink or enter this URL into your web browser to > > > > retrieve the file. > > > > This file will remain on the server for approximately 5 days from t=he> > > > date of the upload at which time it will be deleted. =A0Please be s=ure> > > > to download it before the expiration time. > > > > This file will expire on Dec =A01, 2008. > > > > > File Size: 232357 Bytes > > > > > On Nov 26, 12:22=A0am, bish <bishes...@gmail.com> wrote: > > > > > > On Nov 26, 4:58=A0am, David <simianfe...@gmail.com> wrote: > > > > > > > On Nov 26, 2:37=A0am, bish <bishes...@gmail.com> wrote: > > > > > > > > On Nov 25, 12:25=A0pm, Matthias Alles <REMOVEallesCAPIT...@NO=eit.SPAMuni-> > > > > > > > kl.de> wrote: > > > > > > > > Hi! > > > > > > > > > I wonder, whether "one_second_flag" is declared as volatile=? If not, the> > > > > > > > compiler optimizes your if-statement in the while(1) loop a=way. You can> > > > > > > > check this by using mb-objdump. > > > > > > > > I tried using the volatile for one_second_flag, still it does=not> > > > > > > work. It just prints "the value of count =3D 1" once in termi=nal and> > > > > > > nothing happens then. > > > > > > > > > Cheers, > > > > > > > > Matthias > > > > > > > > > bish schrieb: > > > > > > > > > > I am trying to use a timer for regular interrupt in micro=blaze. I am> > > > > > > > > using edk 9.2i and spartan 3a dsp 1800a. > > > > > > > > > Even following a simple lab example widely used by beginn=ers didn't> > > > > > > > > work:http://users.utcluj.ro/~baruch/ssce/labor/EDK-L5-e.p=df> > > > > > > > > > I have connected all the interrupt ports correctly as evi=dent from the> > > > > > > > > following portion of the mhs file: > > > > > > > > > BEGIN microblaze > > > > > > > > > =A0PARAMETER HW_VER =3D 7.00.a > > > > > > > > > ........... > > > > > > > > > ........... > > > > > > > > > PORT INTERRUPT =3D interrupt > > > > > > > > > END > > > > > > > > > > BEGIN xps_timer > > > > > > > > > =A0PARAMETER INSTANCE =3D delay > > > > > > > > > =A0PARAMETER HW_VER =3D 1.00.a > > > > > > > > > =A0PARAMETER C_ONE_TIMER_ONLY =3D 1 > > > > > > > > > =A0PARAMETER C_BASEADDR =3D 0x8141c200 > > > > > > > > > =A0PARAMETER C_HIGHADDR =3D 0x8141c3ff > > > > > > > > > =A0BUS_INTERFACE SPLB =3D mb_plb > > > > > > > > > =A0PORT Interrupt =3D timer1 > > > > > > > > > =A0PORT CaptureTrig0 =3D net_gnd > > > > > > > > > END > > > > > > > > > > BEGIN xps_intc > > > > > > > > > =A0PARAMETER INSTANCE =3D xps_intc_0 > > > ... > > > read more =BB- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text - > > Hi, > > What compilator options do you use when compiling timer.c?mb-gcc The compiler option for "debug and optimization" is: Debug level: Generate Debug symbols(-g) Optimization Level: No Optimization(-00)> Can you email me the .elf file?I have emailed you with the elf file.> > G=F6ran
Reply by ●December 10, 20082008-12-10





