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!
Have a look at Keils tutorials how to create new project.
You are missing one or more libraries that are needed when linking the project.
thanks, i will google for them and take a look, i will post back the results :P
thanks, i added some files into it and now it works, but it made like 5 blinky files one of them has axf format, how can creat binary from them?!
also i want to change starting adress too 0x2000 let me google that!
http://www.keil.com/support/docs/189.htm thers no files named .a51 in my keil directory :(
Do you need a bin file?
The Keil tools doesn't.
But your installation includes a program "fromelf" that can convert the axf file to a bin file.
So when you Google - maybe not Google for how to play around with 8051 projects and focus more on how to play around with ARM projects. The tools are named MDKARM for a reason ;)
View all questions in Keil forum