Any one please help!!!! I've written a code for simple transmission of single character serially but when i compile it the following error comes UART0.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST. "UART0.axf" - 1 Error(s), 0 Warning(s). I've also tried to edit the scatter file from options for target1-->linker tab-->scatter file--> edit but i'm unable to edit the scatter file. The code is
#include <LPC214x.h> int main() { char a = 'P'; PINSEL0 = 0x01; U0LCR = 0x80; U0DLM = 0x00; U0DLL = 0x61; U0LCR = 0x03; while(1) { while(!(U0LSR & 0x20)) U0THR = a; } }
The .sct file is
; ************************************************************* ; *** Scatter-Loading Description File generated by uVision *** ; ************************************************************* LR_IROM1 0x00000000 0x00080000 { ; load region size_region ER_IROM1 0x00000000 0x00080000 { ; load address = execution address *.o (RESET, +First) *(InRoot$$Sections) .ANY (+RO) } RW_IRAM1 0x40000000 0x00008000 { ; RW data .ANY (+RW +ZI) } }
Please help me!!