Hi, I can confirm problems with GNU ARM interrupt keyword in versions v3.3.1 and previous. See bugzilla http://gcc.gnu.org/ml/gcc-bugs/2003-10/msg01184.html for the gory details. The workaround is that you need to do your context save/restore in assembler before branching to the "C" interrupt handler function (rather than depending on the GNU compiler to do this when it sees the "interrupt" keyword. Ashling customers can download a GNU example that shows how to do TIMER0 interrupts from our FAQ page as shown in the below link. The program toggles a LED that is specific to Ashling's LPC2100 EVBA7 board. Leon, I'm prepared to give you the source code to allow you to adapt it to your own board and post it on your site if you like. Email me directly. All the code is GNU, however, the build is done using our IDE (AsIDE). Hugh @ http://www.ashling.com/support/lpc2100/ -----Original Message----- From: Curt Powell [mailto:curt.powell@...] Sent: 10 December 2003 16:18 To: lpc2100@yahoogroups.com Subject: RE: [lpc2100] Interrupt works in Keil simulator but not in target Helge, Keil uses gnu, correct? There is an issue with the interrupt keyword in earlier versions of gnu compiler. Are you aware of this? The workaround is to call an assembler ISR which in turn calls the C function. Could this be your problem? Curt -----Original Message----- From: helgefh2003 [mailto:helge.fabricius@...] Sent: Wednesday, December 10, 2003 7:18 AM To: lpc2100@yahoogroups.com Subject: [lpc2100] Interrupt works in Keil simulator but not in target Hi, -------------------------------------- The example project from Keil running Timer0 as interrupt source, works in the simulator but in the target there is never an interrupt generated. Rewriting it, polling the interrupt flag works both in the simulator and the target. http://www.keil.com/download/files/lpc2100_blinky.zip Chip used is LPC2106. Anyone having a clue? //Helge To unsubscribe from this group, send an email to: lpc2100-unsubscribe@yahoogroups.com Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . Yahoo! Groups Sponsor ADVERTISEMENT <http://rd.yahoo.com/SIG=12cafvjm5/M=267637.4116730.5333196.1261774/D=eg roupweb/S=1706554205:HM/EXP=1071159512/A=1853618/R=0/*http://www.netflix .com/Default?mqso=60178338&partid=4116730> click here <http://us.adserver.yahoo.com/l?M=267637.4116730.5333196.1261774/D=egrou pmail/S=:HM/A=1853618/rand=592458958> To unsubscribe from this group, send an email to: lpc2100-unsubscribe@yahoogroups.com Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .
Message
RE: [lpc2100] Interrupt works in Keil simulator but not in target
2003-12-10 by Hugh O'Keeffe
Attachments
- No local attachments were found for this message.