Hi,
I am working on MCB2300 Board (LPC2368 chip) and using newest Keil uVision3. I would like to use GNU to compile. But right now, I can't find the startup.s and link file for the LPC2368 chip.
Please give me a hand
Thanks
Thank for your reply!
But I have a problem: I compile a program for LPC2368 (MCB2300 Board) using startup.s and arm.ld of MCB2130 Blinky examle. It compiles well, but when I load to the board. It can not run.
Regards Tran Hoan
PS: here is program's code:
#include <LPC23xx.h>
/* Function that initializes LEDs */ void LED_Init(void) { PINSEL10 = 0; /* Disable ETM interface, enable LEDs */ FIO2DIR = 0x000000FF; /* P2.0..7 defined as Outputs */ FIO2MASK = 0x00000000; }
/* Function that turns on requested LED */ void LED_On (char num) { FIO2SET = FIO2SET | num; }
/* Function that turns off requested LED */ void LED_Off (char num) { FIO2CLR = FIO2CLR | num; }
int main(void) { int i = 0;
LED_Init();
while(1){ LED_On(0xFF); for(i = 0; i < 1000000; i++); LED_Off(0xFF); for(i = 0; i < 1000000; i++); } }