interrupt routine not work on ram building mode

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

interrupt routine not work on ram building mode

936 次查看
lognight
Contributor III

I wrote a  PIT channel 0 interrupt routine isr_pit_ch0 , it works well using flash building mode, but when i using ram building mode,it didn't work, how can i make it work well on ram building mode?  i am using MPC5604P chip.

标签 (1)
0 项奖励
回复
3 回复数

822 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hi,

It looks like an issue in your linker file.

Which compiler are you using?

Peter

0 项奖励
回复

822 次查看
lognight
Contributor III

Thanks for your help, I'm using CodeWarrior 10.5  compiler, and the attachment has all my project source files. The three functions related to this is   static void PIT0_isr(void) , static void PIT0_init(void), and static void Interrupts_init(void) ,you can find in main.c file.

0 项奖励
回复

822 次查看
martin_kovar
NXP Employee
NXP Employee

Hello,

open Prefix folder in your project  and open MPC5604P_RAM_VLE.prefix

Add #defineCALL_USR_INIT 1 macro to this file and save it. Please see figure below.

pastedImage_1.png

Recompile you project once again. Now it will work correct.

Regards,

Martin

0 项奖励
回复