cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
4,054 Views
Registered: ‎07-20-2010

SDK 14.7 interrupt vector table not complete when import project

Jump to solution

Hi,

I am using XPS and EDK 14.7 with Spartan6 LX9 Microboard. I am generating XPS system and SDK project using step described in document AvtS6LX9MicroBoard_SW201_lwIP_Apps_14_4_01.pdf.

The harware project has three source of interrupt: MAC ethernet, AXI Timer and AXI Uartlite.

Software project is not working because Microblaze interrupt vector table is not initialized correctly, when an interrupt is asserting there is a crash. This is a fragment of map file:

 

........................................................

.........................................................

.vectors.reset             0x00000000              0x8

*(.vectors.reset)

.vectors.reset

                                     0x00000000            0x8            c:/xilinx/14.7/ise_ds/edk/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-elf/4.6.4/../../../../microblaze-xilinx- elf/lib/bs/m/le/crt0.o

                                        0x00000000                     _start

.vectors.sw_exception

*(.vectors.sw_exception)

.vectors.interrupt

*(.vectors.interrupt)

.vectors.hw_exception

*(.vectors.hw_exception)

.................................................

................................................

 

It is missing data about other entry point than .reset.

In fact in an other point of map file I see that some vector table entry point are discarded:

 

....................................................

................................................

Discarded input sections

.data                0x00000000     0x0                       c:/xilinx/14.7/ise_ds/edk/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-                                                                                  elf/4.6.4/../../../../microblaze-xilinx-elf/lib/bs/m/le/crt0.o

 

.bss                 0x00000000     0x0                       c:/xilinx/14.7/ise_ds/edk/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-                                                                                   elf/4.6.4/../../../../microblaze-xilinx-elf/lib/bs/m/le/crt0.o

.vectors.sw_exception        0x00000000 0x8    c:/xilinx/14.7/ise_ds/edk/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-                                                                                  elf/4.6.4/../../../../microblaze-xilinx-elf/lib/bs/m/le/crt0.o

.vectors.interrupt                  0x00000000 0x8    c:/xilinx/14.7/ise_ds/edk/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-                                                                                  elf/4.6.4/../../../../microblaze-xilinx-elf/lib/bs/m/le/crt0.o

.vectors.hw_exception        0x00000000 0x8    c:/xilinx/14.7/ise_ds/edk/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-                                                                                  elf/4.6.4/../../../../microblaze-xilinx-elf/lib/bs/m/le/crt0.o

........................................................

........................................................

........................................................

 

I don't know why this sections are discarded. If I repeat same step with EDK and XPS 14.4 it si all ok and my vector table is complete.

 

If I generate a sw project using SDK wizard it is all ok, if I import a project I have an interrupt vector table not complete. How can I fix this issue?

 

I attach map file for documentation.

 

Begos

 

 

 

 

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Observer
Observer
5,352 Views
Registered: ‎09-12-2007

Re: SDK 14.7 interrupt vector table not complete when import project

Jump to solution

Hi,

 

Just regenerate the linker script.

The old linker script is not compatible with 14.7

 

Best regards

Lasse

View solution in original post

2 Replies
Highlighted
Observer
Observer
5,353 Views
Registered: ‎09-12-2007

Re: SDK 14.7 interrupt vector table not complete when import project

Jump to solution

Hi,

 

Just regenerate the linker script.

The old linker script is not compatible with 14.7

 

Best regards

Lasse

View solution in original post

Highlighted
Adventurer
Adventurer
4,016 Views
Registered: ‎07-20-2010

Re: SDK 14.7 interrupt vector table not complete when import project

Jump to solution

Hi,

I have regenerated linker script and now It works fine. SDK 14.7 needs keywords KEEP in vector interrupt labels.

Thanks,

 

Begos

0 Kudos