Problem while creating HEX file in WinARM using programmers notepad

OP #2231491
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
Moderator #2231613
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.
#2379787
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......
Guest #2379889
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
#2384241
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
Guest #2384683
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
#2388380
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....
Guest #2388496
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

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now