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.
Hai all;
I am doing a project in LPC2368 using uVision3 such that ,I want to write datas to 512k of Flash and read back to RAM.
I reffered C:\Keil\ARM\Flash\LPC_IAP2_512 and using Real veiw toolset it is working in both simulator and in MCB 2300 board fine.
Because of size limitation ,I want to Convert the above project to GNU compiler.IN C:\Keil\ARM\Flash\LPC_IAP2_512 there was one assembly code IAP.s like this ;
AREA IAPEXE, CODE, READONLY
;void my_IAP_Execute (struct sIAP *pIAP); EXPORT my_IAP_Execute
my_IAP_Execute STMFD SP!,{LR} ; Save Return Address ADD R1,R0,#0x14 ; R0 = &IAP.cmd, R1 = &IAP.stat ADR LR,my_IAP_Exit ; Return Address LDR R2,=0x7FFFFFF1 ; IAP Entry (Thumb Mode) BX R2 ; Execute IAP Command
my_IAP_Exit LDMFD SP!,{LR} ; Restore Return Address MOV PC,LR ; Return
END
I changed this code to work in GNU compiler like this
.text .arm _start : .global _start .global IAP_Execute b IAP_Execute
IAP_Execute : STMFD SP!,{LR} /*Save Return Address */ ADD R1,R0,#0x14 /* R0 = &IAP.cmd, R1 = &IAP.stat */ ADR LR,IAP_Exit /* Return Address */ LDR R2,=0x7FFFFFF1 /* IAP Entry (Thumb Mode) */ BX R2 /* Execute IAP Command */
IAP_Exit : LDMFD SP!,{LR} /* Restore Return Address*/ MOV PC,LR /* Return */
.end
But still it is not working ,Will you please tell me that why I am not able to compile in GNU, OR will be there is any other method to do this.
Sincerely shamsudheen OP
First, please read and follow the instructions for posting source code - they are clearly stated above the 'Message' box when you make a post.
"it is not working, Will you please tell me that why I am not able to compile in GNU"
As you've given absolutely no details at all of why you say it's "not working", or in what way you are "unable to compile", it's impossible to say!
For specific information about the GNU tools, start here: http://gcc.gnu.org/
The GCC Documentation is available online here: http://gcc.gnu.org/onlinedocs/
You might like to take a look through this thread about using the GNU tools: http://www.keil.com/forum/docs/thread10545.asp
www.danlhenry.com/.../keil_code.png
Dear sir;
sorry for making an error.By refferring other forum, I got the solution for the above problem. Thanks for Helping.
sincerely shamsudheen OP