Hi all,
I got the source code and binary code from an extern co-developper 2 months ago. Since then I have just tried to download the binary file on the board and it works. MCU: NXP LPC1114/302
One week ago we realised there is a mistake in the design and are looking for a way to recompile the source file. The company doesn't exist anymore and all we have is the C file and not the whole prject file. For that I create a new project and inserted the source file. Now I can build and compile but the generated file looks quite different from the original and the board didn't startup with my compiled version.
Please could anyone give me an advice how to solve this issue?
Well that is an absolutely fundamental mistake!
It really is imperative that you get the complete project!
This is a very important lesson for you to learn for next time - but doesn't help you now.
Are you sure that there is absolutely no possibility to get the original project?
"Now I can build and compile but the generated file looks quite different from the original"
Do you even have the same compiler? And at the same version?
"the board didn't startup with my compiled version"
So you'll have to get the debugger out, and see where the problem(s) is/are.
Or perhaps you can start with a basic "blinky" that does work on your board, and then merge your 'C' code into that...
Seeing as the original developer now is jobless, perhaps direct contact would work? LinkedIn works well for people other than John Smith, or Michael Jones, who apparently work everywhere.
Always helpful to get all the project details, and information about tools used and versions, libraries, etc when you accept the original deliverable.
Your options now are to learn all you can about the code supplied, what you can determine from object files, or map files. Basically reverse engineer the materials you have now, and hope to meet somewhere in the middle between the source and executable you have to work with.
Or start again from the original specification...?
Hello
Where is the program getting stuck when it runs on your board?
Often, it is stopped at a BKPT istruction, so you should either enable microlib, or add a retarget.c file http://www.keil.com/support/man/docs/gsac/gsac_retargetcortex.htm http://www.keil.com/support/man/docs/gsac/gsac_retargetarm7.htm
http://www.keil.com/arm/microlib.asp