H-JTAG
 

 
Subject: Lpc2148 Interrupt Problem
alp_sayin
Assist Engineer
Rank: 1



UID 2329
Digest Posts 0
Credits 0
Posts 2
Reading Access 10
Registered 2009-9-5
Location Turkey
Status Offline
Post at 2009-9-20 01:10  Profile P.M. 
Lpc2148 Interrupt Problem

Hi,

I am using an Olimex LPC-P2148 board. It has an ARM7TDMI-S based LPC2148 on it. I am using the ARM-JTAG parallel connector to debug it and I am using Keil uVision3 as compiler and debugger. I configured Keil with the ToolConf utility that came with HJTAG When i write a program without interrupts there is no problem running and debugging it on chip. Also there is no problem when I use interrupts and run the software without the debug adapter(no connections with PC at all). But when I run the program in uVision with debugging facility, the interrupts become disabled, even if the flags are raised, the interrupt jumps just don't happen.

So in short, i don't know why interrupts work without debugging, and why they stop working while debugging. As far as i thought of it there may be two sources, first is the ARM-JTAG connector and second is the HJTAG.

Things I tried:
I tried disabling semihosting and vector catch(and combinations), that didn't change anything.
I tried decreasing the connection speed, that only slowed down the debugging and uploading.

If anyone could help me, I would be very glad.

Alp Sayın
Top
twentyone
Super Moderator
Rank: 8Rank: 8Rank: 8Rank: 8Rank: 8Rank: 8Rank: 8Rank: 8



UID 2
Digest Posts 1
Credits 0
Posts 2512
Reading Access 150
Registered 2008-2-15
Status Offline
Post at 2009-9-28 19:54  Profile Blog P.M. 
Could you check the value of  CPSR and see if the interrupt is disabled? Thx a lot.
Top
m_sankar_eee
Assist Engineer
Rank: 1



UID 2508
Digest Posts 0
Credits 0
Posts 2
Reading Access 10
Registered 2009-11-6
Status Offline
Post at 2009-11-6 21:22  Profile P.M. 
send the sample program i wiil try to solve
Top
alp_sayin
Assist Engineer
Rank: 1



UID 2329
Digest Posts 0
Credits 0
Posts 2
Reading Access 10
Registered 2009-9-5
Location Turkey
Status Offline
Post at 2010-2-4 06:20  Profile P.M. 
very sorry for the late reply;

it seems when lpc2148 is in debug mode with jtag connector, the interrupts are disabled, i've read it in the datasheet of thelpc2148. To walkthrough this problem ARM suggests using RealMonitor, which i found to be a little difficult. Therefore I amkind of actually stuck in my project Well, I think I'll just code well, simulate and hope it will work for real

Anyways, thanks for the replies...
Top
twentyone
Super Moderator
Rank: 8Rank: 8Rank: 8Rank: 8Rank: 8Rank: 8Rank: 8Rank: 8



UID 2
Digest Posts 1
Credits 0
Posts 2512
Reading Access 150
Registered 2008-2-15
Status Offline
Post at 2010-2-4 07:33  Profile Blog P.M. 
In debug mode, the interrupts are disabled. But, the interrupts will occur after the mcu returns to running mode.
Could you make sure that the CPSR and interrupt has been initialized appropriately?
Top
applezzy
Assist Engineer
Rank: 1



UID 2998
Digest Posts 0
Credits 0
Posts 2
Reading Access 10
Registered 2010-5-18
Status Offline
Post at 2010-5-18 21:31  Profile Site P.M. 
The changes to class mechanics, particularly for warlocks, is a wild shift in perspective. Warlocks, typically known for a slow burn approach, suddenly becomes a cooldown class that plays with soul shards to achieve dramatic effects. The three soul shard limit per combat (Blizzard has mentioned the possibility of generating soul shards) makes warlocks an extremely strategic and fun class to play. Some will go all in and use their soul shards for maximum burn, perhaps with a succession of instant cast Soul Fires, which can result in spectacular victories or crashing defeats. Others will play conservatively and use soul shards as an emergency resource, such as gaining a speed burst after casting Demonic Circle: Teleport to flee from an opponent. Playing as and against a warlock has never promised to be so much fun. One question that hasn't been answered is if soul shards will become an enemy-visible resource. Since warlocks will retain mana, it will be interesting to see if soul shards can also be tracked by opponents or hidden similar to death knight runes. In a perfect world, both soul wow power leveling shards and runes will be viewable sdfjkagfuy  by opposing players, making combat more strategic and less of a guessing game.

Thanks for reading and have a good time.


                                                                                                Editor: DoterYang
Top
 


All times are GMT+8, the time now is 2010-9-6 15:47
京ICP备07007783号

 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
 Processed in 0.028388 second(s), 9 queries , Gzip enabled

Clear Cookies - Contact Us - H-JTAG - Archiver