Hi zusammen komischer Fehler und ich hab keine Dämmerung was schiefgeht. Ich hab an meinem Microblaze einen LED bus mit 5 LEDS und einen input bus der 12 bit breit ist angeschlossen. Dazu kommt dann noch ein UART. Für die ersten Tests hab ich den UART und den input port nicht im UCF file aktiviert - alles klappte prima. Led liess sich anschalten. Code siehe hier:
1 | ############################################################################ |
2 | ## This system.ucf file is generated by Base System Builder based on the |
3 | ## settings in the selected Xilinx Board Definition file. Please add other |
4 | ## user constraints to this file based on customer design specifications. |
5 | ############################################################################ |
6 | |
7 | Net sys_clk_pin LOC=P52; |
8 | Net sys_rst_pin LOC=P2 | PULLUP; |
9 | ## System level constraints |
10 | Net sys_clk_pin TNM_NET = sys_clk_pin; |
11 | TIMESPEC TS_sys_clk_pin = PERIOD sys_clk_pin 20000 ps; |
12 | Net sys_rst_pin TIG; |
13 | |
14 | ## IO Devices constraints |
15 | |
16 | #### Module RS232 constraints |
17 | |
18 | Net fpga_0_RS232_RX_pin LOC=P78; |
19 | Net fpga_0_RS232_TX_pin LOC=P77 |DRIVE = 12; |
20 | |
21 | #### Module LEDS constraints |
22 | |
23 | Net fpga_0_LEDS_GPIO_d_out_pin<0> LOC=P130 |DRIVE = 12; |
24 | Net fpga_0_LEDS_GPIO_d_out_pin<1> LOC=P25 |DRIVE = 12; |
25 | Net fpga_0_LEDS_GPIO_d_out_pin<2> LOC=P27 |DRIVE = 12; |
26 | Net fpga_0_LEDS_GPIO_d_out_pin<3> LOC=P30 |DRIVE = 12; |
27 | Net fpga_0_LEDS_GPIO_d_out_pin<4> LOC=P1 |DRIVE = 12; |
28 | |
29 | #### Module Push_Buttons constraints |
30 | |
31 | #Net fpga_0_Push_Buttons_GPIO_in_pin<0> LOC=P21 | PULLDOWN; |
32 | #Net fpga_0_Push_Buttons_GPIO_in_pin<1> LOC=P23 | PULLDOWN; |
33 | #Net fpga_0_Push_Buttons_GPIO_in_pin<2> LOC=P17 | PULLDOWN; |
34 | #Net fpga_0_Push_Buttons_GPIO_in_pin<3> LOC=P15 | PULLDOWN; |
35 | #Net fpga_0_Push_Buttons_GPIO_in_pin<4> LOC=P14 | PULLDOWN; |
36 | #Net fpga_0_Push_Buttons_GPIO_in_pin<5> LOC=P11 | PULLDOWN; |
37 | #Net fpga_0_Push_Buttons_GPIO_in_pin<6> LOC=P13 | PULLDOWN; |
38 | #Net fpga_0_Push_Buttons_GPIO_in_pin<7> LOC=P10 | PULLDOWN; |
39 | #Net fpga_0_Push_Buttons_GPIO_in_pin<8> LOC=P12 | PULLDOWN; |
40 | #Net fpga_0_Push_Buttons_GPIO_in_pin<9> LOC=P8 | PULLDOWN; |
41 | #Net fpga_0_Push_Buttons_GPIO_in_pin<10> LOC=P6 | PULLDOWN; |
42 | #Net fpga_0_Push_Buttons_GPIO_in_pin<11> LOC=P7 | PULLDOWN; |
43 | |
44 | Net adcclock LOC = P32; |
Das Problem ist nun wenn ich die Pushbuttons aktiviere und genau den gleichen C code ausführe wie vorher (nur das UCF file geändert) geht die LED nicht mehr an. Es scheint so als würde der Prozessor einfrieren und ich hab keine Ahnung wieso? Irgendjemand eine Idee? Tobi