EmbDev.net

Forum: ARM programming with GCC/GNU tools Problem while creating HEX file in WinARM using programmers notepad


Author: Rohan D. (rohan_d)
Posted on:

Rate this post
0 useful
not useful
when i click on "Make All" command . i m getting below output . is it 
the output should i get ? this is the sample programm from Examples.
what o/p should i get.

pls help.



this is the o/p i m getting.



///////////        o/p window       ///////////////


Creating load file for Flash: ledswitch.hex
arm-elf-objcopy -O ihex ledswitch.elf ledswitch.hex

You may have to bring the target in bootloader-mode now.
lpc21isp -control  ledswitch.hex com1 115200 14746
lpc21isp version 1.31
File ledswitch.hex:
  loaded...
  converted to binary format...
  image size : 476
Synchronizing........................................................... 
.........................................  no answer on '?'
C:\WinARM\WinARM\utils\bin\make.exe: *** [program] Error 4

> Process Exit Code: 2
> Time Taken: 01:31

Author: Martin Thomas (mthomas) (Moderator)
Posted on:

Rate this post
0 useful
not useful
Rohan D. wrote:
> when i click on "Make All" command .
>...

Sure? - it seems that "make program" has been selected.

>Creating load file for Flash: ledswitch.hex
>arm-elf-objcopy -O ihex ledswitch.elf ledswitch.hex
>...

So your message's topic is misleading: the output shows that the hex 
file has been created

> You may have to bring the target in bootloader-mode now.
> lpc21isp -control  ledswitch.hex com1 115200 14746
> lpc21isp version 1.31
> File ledswitch.hex:
>   loaded...
>   converted to binary format...
>   image size : 476
> Synchronizing........................................................... 
.........................................
> no answer on '?'

The utility lpc21isp gets called by make but can not snyc with the 
microcontroller's the internal bootloader. lpc21isp is similar to 
Flashmagic but does not offer a GUI. Read the Controllers manual, 
section ISP, the NXP AppNote on using the LPC2000's bootloader and 
output of lpc21isp -h for further information.

Author: vaibhav g. (vaibhav_g)
Posted on:

Rate this post
0 useful
not useful
when i click on make all......
after loading the examples -lpc2106_blink_switch

the following error is generated.


***********output window********************

> "make.exe" all

> Failed to create process: The system cannot find the file specified.

> Process Exit Code: 0
> Time Taken: 00:00


HELP!

why is this error is coming......

Author: Oliver (Guest)
Posted on:

Rate this post
0 useful
not useful
Progranmer's notepad is an editor, nothing else. It can be configured to 
call external programms, i.e. make. This requires that PN is configured 
to run the right make, that you have a suitable makefile in the right 
folder, and that there exists a propely installed complete toochain for 
ARM on your computer.

Do you have all this?

Oliver

Author: vaibhav g. (vaibhav_g)
Posted on:

Rate this post
0 useful
not useful
yes i have all this.......



but still i m getting the above mentioned error .........



the path i have defined in control panel/system/advanced/enviornment 
variable is also as per given in tutorials.................


plz help me on this.....

Author: Oliver (Guest)
Posted on:

Rate this post
0 useful
not useful
First thing is to check the toolchain.

Open a command window, navigate to the folder, where the makefile is 
located, and type "make".

Oliver

Author: vaibhav g. (vaibhav_g)
Posted on:

Rate this post
0 useful
not useful
heyy....

in the command window after navigating to the folder where make file is 
located when i enter make...
then it shows



**no target specified and no make file found....stop****

but when i write dir command then it do show a executable file with name 
make.......

i am not getting whats wrong with this thing......

HELP!!!
thanku

Author: Oliver (Guest)
Posted on:

Rate this post
0 useful
not useful
> and no make file found

Please do not navigate to the folder, where the program "make" is 
located, but to the folder, where the project you want to compile is 
located.

There must be somewhere a file called "makefile". From this folder you 
have to call make.

Oliver

Author: vaibhav g. (vaibhav_g)
Posted on:

Rate this post
0 useful
not useful
heyy thanks oliver......



 sample code in my winarm is running now.....


one more query:


now as my sanmple project is running but if i want to compile my own 
written C code ....watelse do i neeed along with a .c file to create the 
hex code........do i neeed to write my own make file.....


do help!
you are saviour oliver.....
thanks again....

Author: Oliver (Guest)
Posted on:

Rate this post
0 useful
not useful
>do i neeed to write my own make file

Probably yes. But to be very honest, writing your own C-programs for ARM 
might require some more knowledge, as you have right now.

Maybe you want to check this document:

http://www.state-machine.com/arm/Building_bare-met...

Oliver

Author: vaibhav g. (vaibhav_g)
Posted on:

Rate this post
0 useful
not useful
heyy oliver


wat are the topics you want me to read from that file you mentioned 
above..........

i mean i cant read all pages of it.......


i just want to generate a hex code of my own written c code for ARM7, 
nothing else...........



do reply!
thnks

Author: Oliver (Guest)
Posted on:

Rate this post
0 useful
not useful
>i mean i cant read all pages of it.......

That's your decision. I doubt that anybody in the world is a experineced 
programmer of microcontrollers, but has never ever worked with "make" 
before. And that means, you will have to read much, much, more, before 
you can think about writing own C-programs for ARM7.

The good news (for me) is, it's not my problem. Sorry, im am out of the 
discussion here. Good luck.

Oliver

Author: vaibhav g. (vaibhav_g)
Posted on:

Rate this post
0 useful
not useful
no problemo oliver......

thanks 4 helping till now.....

just let me know if you get to know anything about it.....

it will be very helpful for me.....



vbhv

Author: vaibhav g. (vaibhav_g)
Posted on:

Rate this post
0 useful
not useful
one more thing oliver ...

i think you may be misunderstanding my problem ....
i dont have to write a complex c code the ehing which i want is that 
which can convert a very simple c code to hex code for arm7......

thats all.......


i hope you understnd what i am saying......



vaibhav

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.