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, i just wanted to start programming arm, i got an LPC1768 board ! i wrote my first program !
here is code
#include "LPC17xx.h" int main(void) { int a; LPC_GPIO1->FIODIR=1; while(1) { LPC_GPIO1->FIOSET=1; for(a=0;a<7200000;a++); LPC_GPIO1->FIOCLR=1; for(a=0;a<7200000;a++); } }
it says :
Rebuild target 'Target 1' assembling startup_LPC17xx.s... compiling main.c... main.c(15): warning: #1-D: last line of file ends without a newline } main.c: 1 warning, 0 errors linking... .\Blinky.axf: Error: L6218E: Undefined symbol SystemInit (referred from startup_lpc17xx.o). Not enough information to list image symbols. Finished: 1 information, 0 warning and 1 error messages. ".\Blinky.axf" - 1 Error(s), 1 Warning(s). Target not created
also if i create it , im not sure how to make it a bin file, my board manual says i must covert it to bin with -H!
The LPC1768 procesor does not boot from address 0x2000.
So it is only meaningful to store your program to that address if you from address 0x0000 have a boot loader that will check for any code at 0x2000 and jump there.
Do you have such a boot loader in your target board?
Does that boot loader support emitting any information - maybe some trace output on a serial port?
i don't know
here's my baord eshop.eca.ir/.../876-lpc1768-cortex-m3-header-board.html
the instruction told me to do so !