Problem while creating HEX file in WinARM using programmers notepad

OP #2231491
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
Moderator #2231613
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.
#2379787
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......
Guest #2379889
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
#2381037
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.....
Guest #2381100
First thing is to check the toolchain.

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

Oliver
#2384241
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
Guest #2384683
> 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
#2388380
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....
#2388440
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
Guest #2388496
>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
#2388623
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

A question of your own? This thread is over 15 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.