Hi All, I have, with the help of this forum, installed WinARM. i did following to created application: 1) open PN editor 2) create new project 3) add LPC21xx.h and that add makefile, crt0.s, LPC2138-ROM.ld manually(copied from some other application) 4) then create my own C file with name main.c. by default in makefile target file name is main that is why i have kept name of the file main.c now Questions is: 1) what other file i have to added, to crete application? 2) What the procedure to create executable module that can i download to my LPC2138 3) I tried, couldn't found any documentation that describe complete How to use WinARM. so if you find or have any documetion please forward me HUGE thanks in advance Dharmendra 09898455770
Starting with teh last one: > 3) I tried, couldn't found any documentation that describe complete How > to use WinARM. so if you find or have any documetion please forward me It is not that simple. WinARM is simply a distribution of tools from more than one source put together for your convenience. You need to consult the documentation for the individual tools (some of which is included with the distribution). Even then the GNU toolchain and Newlib library are not ARM specific, they are available for a number of architectures, so the documentation is mostly generic in nature. Information on how to use WinARM as a whole is provided mostly in the form of numerous examples. > 1) what other file i have to added, to crete application? Possibly nothing, some functions in the standard library call stubs that you must implement in order for the code to link or to work correctly. These are detailed in the syscalls section of the Newlib documentation, several working examples are provided with WinARM. If you are using stdio calls or dynamic memory allocation you need to implement these. > 2) What the procedure to create executable module that can i download to > my LPC2138 There are numerous examples for LPC313x provided with WInARM and at http://gandalf.arubi.uni-kl.de/avr_projects/arm_projects/. The compiler/linker produce an object module in ARM-ELF format. Some debuggers/programmers can load this format directly, otherwise you use the arm-elf-objcopy utility (documentation at http://sourceware.org/binutils/docs-2.17/binutils/objcopy.html#objcopy) to produce the format used by the tool you are using (typically an Intel Hex file). A FLASH programming tool for LPC2xxx devices can be downloaded from the Philips/NXP website (http://www.standardics.philips.com/support/techdocs/microcontrollers/zip/flash.isp.utility.lpc2000.zip). The makefiles in the WinARM LPC2xxx examples already invoke objcopy and the Philips ISP utility automatically to allow a build and program operation. Exammine the examples (or just use them directly) to see how it is done. Clifford
Just a small correction: I have included Martin Maurer's lpc21isp in WinARM for flashing thru the LPC2000 bootloader and this tool is configured in the makefiles and used for the "make program". lpc21isp's homepage: http://guest.engelschall.com/~martin/lpc21xx/isp/ The NXP/Philips utility offers a GUI so it may be interesting for beginners. There is also a tool from Embedded Artists ("sponsored by NXP") http://www.esacademy.com/software/flashmagic/fmfree.htm . Both not included in WinARM so far but available for free from the given URLs.
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
Log in with Google account
No account? Register here.