We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all, i have a problem with a fiq interrupt lpc2148. I use keil uvision4 and when i compile the code, return me the following
error: #130: expected a "{"
My code is:
#include <lpc214x.h> void tc0(void)__fiq; void main(void) { PLL0CFG=0x24; //Multipler and divider setup PLL0CON=0x01; //Enable PLL PLL0FEED=0xAA; //Feed sequence PLL0FEED=0x55; while(!(PLL0STAT & 0x0400)) ; //is locked? PLL0CON=0x03; //Connect PLL after PLL is locked PLL0FEED=0xAA; //Feed sequence PLL0FEED=0x55; VPBDIV=0x01; VICIntSelect = 0x10; VICIntEnable = 0x10; T0MCR = 0x03; T0MR0 = 0x00003000; T0TCR = 0x01; while(1) { //loop } } void tc0(void)__fiq { // code }
Where i wrong? Help me please. Thanks.
i have also this type of problem.
Why are you using such an old version ?
Download the latest MDK and legacy pack (for ARM7) versions from below link and try again:
https://www.keil.com/download/product/
http://www2.keil.com/mdk5/legacy
Why are you waking up a 7-year old thread ?