Vector Table on Kinetis K60

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Vector Table on Kinetis K60

跳至解决方案
2,659 次查看
NoeSerres
Contributor II

Hi,

I am working with Kinetis K60 microcontroller (TOWER K60N512 Kit + IAR + MQX 3.6)

I would like to implement an interrupt outside MQX. I should achieve that using _int_install_kernel_isr() function.

 

I switched MQX_ROM_VECTORS to 0 in user_config.h in order to have Vectors Table located in RAM.

I then recompiled both BSP and PSP of MQX.

 

When debugging the application, it looks like the vector table is still in ROM (address 0x00000000) instead of being in RAM (address 0x20000000).

 

Is there something I am doing wrong? Is it simply possible to work with vectors in RAM with this microcontroller?

 

Any advice would be appreciated.

标记 (3)
1 解答
1,507 次查看
DavidS
NXP Employee
NXP Employee

Hi Noe Serres,

The support for Kinetis having vector table in RAM is going to be in the FSLMQX3.7 release in March.  FSLMQX3.6 was not setup to enable this.

Regards,

David

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,508 次查看
DavidS
NXP Employee
NXP Employee

Hi Noe Serres,

The support for Kinetis having vector table in RAM is going to be in the FSLMQX3.7 release in March.  FSLMQX3.6 was not setup to enable this.

Regards,

David

0 项奖励
回复
1,507 次查看
dingo
Contributor III

I use MQX3.7 and IAR6.1 the vector table for TWR 60N512 still can't be moved to RAM, I 'm right ?

0 项奖励
回复
1,507 次查看
DavidS
NXP Employee
NXP Employee

Hi Dingo,

Yes this was implemented in MQX3.7.

By default the MQX_ROM_VECTORS is defined "1" in small_ram_config.h that gets included into user_config.h at bottom of header file.

To place the vector table to RAM add"

#define MQX_ROM_VECTORS 0

to your user_config.h to override the default setting.

Note you must recompile the BSP and PSP then your application.

Regards,

David

1,507 次查看
NoeSerres
Contributor II

Thank you for your answer.

Let's just wait then... :smileyhappy:

0 项奖励
回复