Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 7 months ago.
LPC4088 quick start board
I am deciding on buying an LPC4088 quick start board and I want to know something. When I select "LPC4088 quick start board" in the compiler, what does this do to the project? Does it:
- supply appropriate "linker script",
- supply appropriate "makefile",
- supply appropriate "startup file"?
To which function does a startup file jumps - is it named "main()" or "c_entry()" or possibly something else?
When I worked on my LPC3141, I wrote programs (more like simple drivers) like the one below. In case of my LPC3141 "startup code" expected function "c_entry()" instead of "main()". I just defined pointers to my registers and toggled them easily. Could I use the same principle with LPC4088?
simplest LPC3141 example - source.c
#define GPIO_MODE0 (*((volatile unsigned int *) 0x130031D0)) #define GPIO_MODE1 (*((volatile unsigned int *) 0x130031E0)) #define GPIO_MODE0_SET (*((volatile unsigned int *) 0x130031D4)) #define GPIO_MODE1_SET (*((volatile unsigned int *) 0x130031E4)) #define GPIO_MODE0_RESET (*((volatile unsigned int *) 0x130031D8)) #define GPIO_MODE1_RESET (*((volatile unsigned int *) 0x130031E8)) void delay(void); void c_entry(void){ GPIO_MODE1_SET = 0x4000; while(1){ GPIO_MODE0_SET = 0x4000; delay(); GPIO_MODE0_RESET = 0x4000; delay(); } } void delay(void){ volatile int stej = 1000000; while(count){ count = count - 1; } }