EmbDev.net

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


von Rohan D. (rohan_d)


Rate this post
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

von Martin T. (mthomas) (Moderator)


Rate this post
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.

von vaibhav g. (vaibhav_g)


Rate this post
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......

von Oliver (Guest)


Rate this post
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

von vaibhav g. (vaibhav_g)


Rate this post
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.....

von Oliver (Guest)


Rate this post
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

von vaibhav g. (vaibhav_g)


Rate this post
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

von Oliver (Guest)


Rate this post
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

von vaibhav g. (vaibhav_g)


Rate this post
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....

von Oliver (Guest)


Rate this post
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-metal_ARM_with_GNU.pdf

Oliver

von vaibhav g. (vaibhav_g)


Rate this post
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

von Oliver (Guest)


Rate this post
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

von vaibhav g. (vaibhav_g)


Rate this post
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

von vaibhav g. (vaibhav_g)


Rate this post
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

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.