Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[ARM] LPC1768 NVIC SetPriority

Status
Not open for further replies.

amirelecom

Newbie level 1
Joined
Nov 3, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
9
Hi,
In my project i used lpc1768 with IAR compiler and CMSIS librarys.
My problem is that when i using the can interrupt and timer2 interrupt simultaneity my microcontroller enter in hult mode and
when i debug it i found that it in hard fault mode.
I know that the problem is priority of interrupts but i cant solve it.
Please help me.

Thank you.
 

It would help significantly if you could post your code for initialization of the NVIC, and CAN and timer peripherals. A common oversight is to enable interrupts in the NVIC, but to not have the vectors setup yet, so the NVIC vectors the interrupt into uninitialized address. You should initialize the peripherals and setup the interrupt vectors in the NVIC before enabling the interrupt in the NVIC registers.

Are you using nested interrupts, or non-nested interrupts ? Are you using the IAR pragma(__irq__arm) or (__irq__nested__arm) in your interrupt handler source code function definitions?

Are you writing 0x00000000 to VICVectorAddress register at the end of each interrupt service routine (I know this is necessary in the LPC21xx processors, but can't recall if it is also necessary in the LPC17xx)
 

I have the same problem with lpc 1768 timer0 interrupt.
timer0 is running but no interrupt.
I am using iar .
pls send me an sample code to solve my problem.
 

can any one tell me what is cstartup_m.s in iar?
have I write anything in this file to enable timer0 interrupt?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top