hello.I am writing a code.But I couldnt successful.It give error that is: arm.axf: Error: L6236E: No section matches selector - no section to be FIRST/LAST.
how can I edit it?
My code is:
/* Include header file depending upon device been used */ #include <LPC213X.H>
void Initialize(void); /* Macro Definitions */ #define TEMT (1<<6) #define LINE_FEED 0xA #define CARRIAGE_RET 0xD /************************* MAIN *************************/ int main() { int i; char c[]="Philips LPC"; Initialize(); /* Print forever */ while(1) { i=0; /* Keep Transmitting until Null character('\0') is reached */ while(c[i]) { U0THR=c[i]; i++; } U0THR=LINE_FEED; U0THR=CARRIAGE_RET; /* Wait till U0THR and U0TSR are both empty */ while(!(U0LSR & TEMT)){} } } /*************** System Initialization ***************/ void Initialize() { /* Initialize Pin Select Block for Tx and Rx */ PINSEL0=0x5; /* Enable FIFO's and reset them */ U0FCR=0x7; /* Set DLAB and word length set to 8bits */ U0LCR=0x83; /* Baud rate set to 9600 */ U0DLL=0x10; U0DLM=0x0; /* Clear DLAB */ U0LCR=0x03; }
Have people got some aversion to the 'pre' tags today?
your scatter file should contain something like this:
LR_IROM1 0x00004000 0x00028000 { ; load region size_region ER_IROM1 0x00004000 0x00028000 { ; load address = execution address *.o (RESET, +First) *(InRoot$$Sections) .ANY (+RO)
I am beginner and I dont know this code.pls Can you add this code in my program. Thnks
No, he can not. And even a beginner should have noticed that the posted information was not C, and should obviously not be inserted into your posted C code.
Have you tried to search for "scatter file"? You will forever stay a beginner unless you spend time learning.
pls Can you add this code in my program
not without a remote desktop connection :)
any Keil sample should contain a such an .sct file. you can see it by the Linker->Edit button.