how to configure "__initialized_intc_handlertable " to the flash

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to configure "__initialized_intc_handlertable " to the flash

511 Views
明伟张
Contributor III

Hi all

nomally,"__initialized_intc_handlertable "is configured in the ram of the mpc5606b.but APP project will configure the "__initialized_intc_handlertable "  in the flash address.hou to configure it.

thanks.

Labels (1)
3 Replies

397 Views
martin_kovar
NXP Employee
NXP Employee

Hello,

please check the example in the post attachment.

Example is created in S32 Design Studio with gcc toolchain.

Regards,

Martin

397 Views
明伟张
Contributor III

hello

need not to configure the  lcf file about the flash address?

I am confused about the"Mpc5606b_Example";

0 Kudos

397 Views
martin_kovar
NXP Employee
NXP Employee

Hello,

it depends on linker file you use. In CodeWarrior IDE, it was necessary to modify linker file and create section in flash for interrupt vector table, because by default, this table was placed in RAM.

In S32 Design Studio, different way is used, and interrupt vector table is placed in flash by default. In linker file, there is following section which serves to store the table:

.intc_vector_table   : ALIGN(0x1000)  
    {
      KEEP(*(.intc_vector_table))
    } > m_text

Please check the whole linker file and eventually whole project (I posted you above) and in case you have any question, please feel free to write me back.

Regards,

Martin