This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

What is the reason to defines the "type = VECT_INIT" in linker command file ?

Hi everyone,

What is the reason to defines the "type = VECT_INIT" in linker command file ?

It is described as follows in the SLAU131G(187page).

But the warning is not output, even if interrupt wasn't initialized using Pragma vector.
(I used CCSv6.1 : Compiler version TI v4.4.6)

Why isn't the warning output ?

Isn't this define("type = VECT_INIT") necessary ?

Best regards,

Mino.M

  • Hi Mino,

    A VECT_INIT section type will generate a linker warning if the peripheral does not have an associated ISR and is not using the default ISR.  This is further explained in the newest release of SLAU131(K):

    The difference you are missing is the default vector handler now provided by the run-time support (RTS) library.  The warning will therefore not be output if a vector pragma for the ISR is initialized or if the default vector handler is provided by the RTS library.

    Regards, Ryan

  • Hi Ryan,

    Thank you for your reply.
    In other words, it is no problem that I don't write "type = VECT_INIT" ?

    Best regards,

    Mino.M
  • Hi Mino,

    That is correct, the linker command file has been designed such that you shouldn't have to make changes to the initialization of interrupt vectors.

    Regards,
    Ryan
  • Hi Ryan,

    Thank you for your reply.
    I understood it.

    Best regards,

    Mino.M

**Attention** This is a public forum