vector table location

cancel
Showing results for 
Search instead for 
Did you mean: 

vector table location

53 Views
AsafTv
Contributor II

I use MK64FN1M0xxx12

I configure The start Address of the program in the MCU Settings PROGRAM_FLASH to 0x26000

but the vector interrupt is placed in 0x28000 i see it in the map file

how can i move the vector to 0x26000?

What I'm doing wrong?

0x00026000                __base_PROGRAM_FLASH = 0x26000

                0x00026000                __base_Flash = 0x26000

                0x00100000                __top_PROGRAM_FLASH = 0x100000

                0x00100000                __top_Flash = 0x100000

                0x20000000                __base_SRAM_UPPER = 0x20000000

                0x20000000                __base_RAM = 0x20000000

                0x20030000                __top_SRAM_UPPER = 0x20030000

                0x20030000                __top_RAM = 0x20030000

                0x1fff0000                __base_SRAM_LOWER = 0x1fff0000

                0x1fff0000                __base_RAM2 = 0x1fff0000

                0x20000000                __top_SRAM_LOWER = 0x20000000

                0x20000000                __top_RAM2 = 0x20000000

                0x14000000                __base_FLEX_RAM = 0x14000000

                0x14000000                __base_RAM3 = 0x14000000

                0x14001000                __top_FLEX_RAM = 0x14001000

                0x14001000                __top_RAM3 = 0x14001000

 

.text           0x00028000    0x232d8

FILL mask 0xff

                0x00028000                __vectors_start__ = ABSOLUTE (.)

*(SORT_BY_ALIGNMENT(.isr_vector))

.isr_vector    0x00028000      0x198 ./startup/startup_mk64f12.o

                0x00028000                g_pfnVectors

                0x00028000                __Vectors

                0x00028198                . = ALIGN (0x4)

                0x00028198                __section_table_start = .

 

0 Kudos
1 Reply

39 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @AsafTv ,

Please download TWR-K64F sdk. There is a bootloader application demo in SDK_2_7_0_TWR-K64F120M .zip\boards\twrk64f120m\bootloader_examples\demo_apps.

It put application in 0xa000. The key is the link file(*.ld). You can refer to it.

 

Regards,

Jing

0 Kudos