interrupt routine not work on ram building mode

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

interrupt routine not work on ram building mode

852 Views
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.

Labels (1)
0 Kudos
3 Replies

738 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

It looks like an issue in your linker file.

Which compiler are you using?

Peter

0 Kudos

738 Views
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 Kudos

738 Views
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 Kudos