FRDM-KW40Z - Setting IRQ Handler results in interrupt

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

FRDM-KW40Z - Setting IRQ Handler results in interrupt

902件の閲覧回数
sammathews
Contributor I


Hi,

 

I'm attempting to set my own interrupt handler on the FRDM-KW40Z. The problem is, as soon as I call 'INT_SYS_InstallHandler', it causes an interrupt. I've attached GDB and found it occurs on line 80 of fsl_interrupt_manager.c, which is where the vector table is modified:

__VECTOR_RAM[irqNumber + 16] = (uint32_t)handler;

 

 

This is consistent with a question I spotted from last year, which hasn't had a follow up yet.

 

I am also quite new to this, so I'm not sure whether I can attribute this to my lack of knowledge of the system, or a fault. My current code works off of the "hello_world" example, and can be replicated in just a few lines. I have attached a working example.

 

In my example code, the error occurs on line 97 of main.c.

Original Attachment has been moved to: hello_world.zip

ラベル(1)
0 件の賞賛
返信
0 返答(返信)